Я публиковал свой сайт много раз. Но я не думал об этом, пока не столкнулся с этой проблемой. Поэтому я решил сначала опубликовать свой WAP-проект в локальной папке на диске C. Затем использовал FTP, чтобы загрузить его на мой общий хост на discountasp.net. Во время выполнения я заметил, что трассировка стека все еще ссылается на эту локальную папку и выдает ошибку.
Кто-нибудь знает, какие настройки конфигурации влияют на публикацию? Очевидно, что-то все еще указывает на мой локальный диск C, и я искал все свое решение и не понимаю почему.
Вот ошибка времени выполнения, которую я получаю, когда мой код пытается запустить на веб-сервере discountasp.net
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 говорит, что это не проблема разрешения, но, очевидно, это так.