我正在本地 SQL 服务器 2008 R2 上通过 WebMatrix 2 运行 Umbraco 4.8.0。除了我尝试通过“媒体”选项卡上传媒体图像外,一切正常。我明白了
“/”应用程序中的服务器错误。
找不到路径“\C:\xxxxxxxx\media\id\picture.png”的一部分。
说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.IO.DirectoryNotFoundException:找不到路径“\C:\xxxxxxxx\media\id\picture.png”的一部分。
源错误:
在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。
堆栈跟踪:
[DirectoryNotFoundException:找不到路径的一部分 '\markerstudy.local\data\Users\sirwin\My Web Sites\caabWebsite\media\109\bg-red-centre.png'。] System.IO.__Error.WinIOError (Int32 errorCode, String maybeFullPath) +224 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +1142 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +83 System.IO.File.WriteAllBytes(String path, Byte[] bytes) +86 umbraco.cms。 businesslogic.Files.UmbracoFile.Save(Byte[] file, String fullFileName) +323 umbraco.cms.businesslogic.Files.UmbracoFile.Save(Stream inputStream, String fullFileName) +188 umbraco.cms.businesslogic.datatype.FileHandlerData.set_Value(Object value) +404 umbraco.editorControls.uploadField.Save() +369 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158 System.Web.UI.WebControls。 ImageButton.OnClick(ImageClickEventArgs e) +115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) + 10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563set_Value(对象值) +404 umbraco.editorControls.uploadField.Save() +369 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) + 115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page .RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint) +5563set_Value(对象值) +404 umbraco.editorControls.uploadField.Save() +369 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) + 115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page .RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint) +5563saveClick(Object Sender, ImageClickEventArgs e) +158 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI. WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+5563saveClick(Object Sender, ImageClickEventArgs e) +158 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI. WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+5563Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent (NameValueCollection postData)+36 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+5563Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent (NameValueCollection postData)+36 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint)+5563
Umbraco 在系统的其他地方创建另一个媒体文件夹并将图像保存在那里。当我复制文件夹(ID 编号文件夹)时,我可以毫无问题地将图像上传到 Umbraco。
有没有办法让 Umbraco 默认指向我电脑中正确的媒体文件夹?