虚拟主机ASP.NET网站不幸遇到HTTP 500错误,请问该如何编写用于发布的web.config文件?
服务器环境:
网络服务商提供的虚拟主机,.NET版本为2.0.50727。
运行asp程序没有任何问题,Access数据库的查询与修改都没有问题。
错误:
运行ASP.NET时遇到了无情的HTTP 500错误,与提供商交涉的结果就是他们一口咬定是web.config错误,号称有成功的asp.net 2.0的案例,但他们又不提供可以正常使用的web.config样例。
以下是网络服务商提供的IIS错误信息,麻烦各位高手给分析下,谢谢!
Event code: 3006
Event message: A parser error has occurred.
Event time: 2007-8-6 9:30:19
Event time (UTC): 2007-8-6 1:30:19
Event ID: d7e269a3c1d548c891cb1080bb9e06d4
Event sequence: 17
Event occurrence: 4
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1167871086/Root/wow-29-128308371389218750
Trust level: Full
Application Virtual Path: /abc
Application Path: X:******\abc\
Machine name: ***********
Process information:
Process ID: 1576
Process name: aspnet_wp.exe
Account name: ***********
Exception information:
Exception type: HttpParseException
Exception message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ' or one of its dependencies. 系统找不到指定的文件。
Request information:
Request URL: *********
Request path:*********
User host address: **********
User:
Is authenticated: False
Authentication Type:
Thread account name: **********
Thread information:
Thread ID: 1
Thread account name: ********
Is impersonating: False
Stack trace: at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()