DNN错误:代码子目录“/Do/App_Code/HTML/”不存在
原创
©著作权归作者所有:来自51CTO博客作者apl330的原创作品,请联系作者获取转载授权,否则将追究法律责任
在设置好虚拟目录,和IIS后,在IIS中右击选择“浏览”,出现如下错误:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: 代码子目录“/Do/App_Code/HTML/”不存在。
Source Error:
Line 101: -->
Line 102: <codeSubDirectories>
Line 103: <add directoryName="HTML" />
Line 104: <add directoryName="Survey" />
Line 105: </codeSubDirectories>
|
后来以为是连接字符串的问题,改了以后,谁知出现如下问题:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: “providerName”是一个意外标记。应为空格。 行 24,位置 82。
Source Error:
Line 22: <add
Line 23: name="SiteSqlServer"
Line 24: connectionString="Server=(local);Database=cadata;uid=cadata;pwd=359848184;"providerName="System.Data.SqlClient" />
Line 25: </connectionStrings>
Line 26: <appSettings>
|
后来,又改了几次连接字符串,出现了第一问题。后来,我把“默认网站”的主目录直接指向网站文件夹。浏览,居然行了。