[提问]
web.config问题 asp.net运行不了
|
|
因为自己不懂.net刚玩.所以问几个比较笨的问题.请各位移电流前辈多多指教.谢谢!
GD win主机 IIS7
主域名abc.com 为些HTML做的一个个人主页,就简单几个页面.一切正常.
子目录123 绑定域名123.com 想装个CMS .net 2.0 + MSSQL的
问题:
1.web.config 是不是一定要放在主(根)目录?放在123子目录下面就不行?
2.把CMS所有文件上传到子目录123后 出现500错误提示.
3.我坛子找了下说可能是web.config配置总问题,可我不会弄,我试过把web.config重名命,再运行,出现以下错误提示:- Server Error in '/iusglobal' Application.
- --------------------------------------------------------------------------------
- Runtime Error
- Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
- Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
- <!-- Web.Config Configuration File -->
- <configuration>
- <system.web>
- <customErrors mode="Off"/>
- </system.web>
- </configuration>
-
- Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
- <!-- Web.Config Configuration File -->
- <configuration>
- <system.web>
- <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
- </system.web>
- </configuration>
-
复制代码 请问怎样才能让子目录123里的CMS安装成功?谢谢. |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2009-8-10 15:50:41
|
显示全部楼层
让你用web.config文件显示错误
见:http://bbs.idcspy.com/thread-50823-1-1.html
放在哪个目录你可以测试下嘛 ,应该是根目录吧 |
|
|
|
|
|
|
|
|
|
|
sdteam
发表于 2009-8-13 11:05:36
|
显示全部楼层
看不懂!~~
一般标准的WEB.CONFIG文件是怎样的?有没朋友能帮忙写一个!~快晕了. |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2009-8-13 11:25:09
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
sdteam
发表于 2009-8-13 13:13:35
|
显示全部楼层
|
因为我清空了根目录里的所有文件,是不是系统会自动生成一个默认的web.config文件?如果是,能不能发一份? |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2009-8-13 13:32:37
|
显示全部楼层
记事本复制下面内容
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
另存为web.config,然后传到空间根目录 |
|
|
|
|
|
|
|
|