[英]Precompiling: Directory doesn't exists '~\projectName\obj\Release\AspnetCompileMerge\Source\Config' C#
我正在嘗試發布帶有預編譯的 ASP.NET MVC web 應用程序。 在發布應用程序時,會出現Directory doesn't exist Directory '~\projectName\obj\Release\AspnetCompileMerge\Source\Config'. Failed to start monitoring file changes.
Directory doesn't exist Directory '~\projectName\obj\Release\AspnetCompileMerge\Source\Config'. Failed to start monitoring file changes.
Non-Updatable User Interface
和Updatable User Interface
都會出現錯誤,但是當我嘗試關閉預編譯時,應用程序會成功發布。
我已查看此表格,並已授予IUSER
許可,但錯誤仍然存在。 我找不到ASPNET
所以無法添加。
應用程序連接字符串未存儲在web.config
文件中,但位於項目根級別的Config\connectionStrings.config
文件中。 我使用configSource來引用web.config
中的文件。 Config\connectionStrings.config
未包含在項目中,但包含在 git .ignore
文件中。
當我在解決方案中包含Config\connectionStrings.config
文件並使用預編譯構建項目時,一切都按預期工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.