Merhaba publish ettiğim sayfada sık sık aldığım bir hata bu konuda yardımcı olursanız sevinirim
Des c r i p tion: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\Publish\App_GlobalResources\Locales.xml'. Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: < % @ Page Language="C#" Debug="true" % >or:2) Add the following section to the configuration file of your application:<configuration> <system.web> <compilation debug="true"/> </system.web></configuration>Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
[DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\Publish\App_GlobalResources\Locales.xml'.]System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193System.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) +1162System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +64System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +77System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74System.Threading.CompressedStack.runTryCode(Object userData) +70System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108System.Xml.XmlTextReaderImpl.OpenUrl() +186System.Xml.XmlTextReaderImpl.Read() +208System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112System.Xml.XmlDocument.Load(XmlReader reader) +108System.Xml.XmlDocument.Load(String filename) +87DotNetNuke.Services.Localization.Localization.UseBrowserLanguage() +128DotNetNuke.Framework.PageBase.get_PageCulture() +561DotNetNuke.Framework.PageBase.OnInit(EventArgs e) +35System.Web.UI.Control.InitRecursive(Control namingContainer) +333System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378[PageLoadException: Could not find a part of the path 'C:\Inetpub\wwwroot\Publish\App_GlobalResources\Locales.xml'.]DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +325DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +380System.Web.UI.TemplateControl.OnError(EventArgs e) +8689450System.Web.UI.Page.HandleError(Exception e) +84System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242System.Web.UI.Page.ProcessRequest() +80System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21System.Web.UI.Page.ProcessRequest(HttpContext context) +49ASP.default_aspx.ProcessRequest(HttpContext context) +37System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
C:\Inetpub\wwwroot\Publish\App_GlobalResources\Locales.xml diye bir dosya varmi bilgisayarinda?
Publish yapmadan önce var ancak visiual studio da sağ tıklayıp yeni klasöre publish yapınca bu dosya klasörde olmuyor ben ekleyince bu dosyayı bu sefer sayfa hiç açılmıyor
Mutlaka hata vermesi lazım. Biraz bekle belki timeout olması gerekiyordur. Olmadı Event Viewer'a bak en azından orada bir şeyler çıkması lazım.
Birde Locales.xml dosyasının içeriğini yolarsan bendeki ile karşılaştırma yapabiliriz.
C:\Inetpub\wwwroot\Publish\App_GlobalResources\Locales.xml böyle bir dosya yok ama publish yapmadan önceki proje dosyasında locales.xml içeriği
"
eventlarda verdiği hata