发布我的网站我的本地磁盘会导致异常显示通路,包括我的本地磁盘

StackOverflow https://stackoverflow.com/questions/2542205

  •  23-09-2019
  •  | 
  •  

我发表我的网站很多次。但没想到这虽然直到我碰到这个问题。所以,我决定我的WAP项目第一次发布到本地文件夹,我的C盘上。然后用FTP将其上传到discountasp.net我的共享主机。在运行时期间我注意到堆栈跟踪仍然引用该本地文件夹和示数进行。

任何人都知道的配置设置发布时会受到影响?显然,事情仍然是指向我的C盘,我已经搜查了我的整个解决方案,不知道为什么。

下面是运行时错误,我得到时,我的代码试图在discountasp.net的Web服务器上运行

 Cannot write into the public directory - check permissions
Description: 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: ScrewTurn.Wiki.PluginFramework.InvalidConfigurationException: Cannot write into the public directory - check permissions

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidConfigurationException: Cannot write into the public directory - check permissions]
   ScrewTurn.Wiki.SettingsStorageProvider.Init(IHostV30 host, String config) in C:\www\Wiki\Screwturn3_0_2_509\Core\SettingsStorageProvider.cs:90
   ScrewTurn.Wiki.StartupTools.Startup() in C:\www\Wiki\Screwturn3_0_2_509\Core\StartupTools.cs:69
   ScrewTurn.Wiki.Global.Application_BeginRequest(Object sender, EventArgs e) in C:\www\Wiki\Screwturn3_0_2_509\WebApplication\Global.asax.cs:29
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Discountasp说,这是不是一个权限问题,但显然它。

有帮助吗?

解决方案

.pdb文件是什么指向本地目录,这并不是说在任何场地是,这是一个不相关的问题。无论该项目被编译广告创建.pdb文件,这些都将出现在堆栈跟踪的路径。

这些目录条目有该应用程序的实际部署没有关系,它主要只是让你能看到的是出错了该类位于(希望你作为一个开发者可以去“的噢,那该死再次类“)。如果您发布的堆栈,我们也许能够帮助...但事实目录指向你的C:\驱动没什么后顾之忧,这是绝对正常的。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top