asp.net2.0的网站发出错 个位老大 救救小弟呀
在本机上调试好好的 可一发布到服务器上就 出如下错误 怎么回事 拜托 好急呀!配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: 找不到文件或程序集名称“CommunityServer.Components”,或找不到它的一个依赖项。
源错误:
行 154: <!-- START - CommunityServer specific application settings -->
行 155: <httpModules>
行 156: <add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
行 157: <add name="Profile" type="Microsoft.ScalableHosting.Profile.ProfileModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
行 158: <add name="RoleManager" type="Microsoft.ScalableHosting.Security.RoleManagerModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
源文件: E:\原C盘资料\原C盘\WEB\cha.cc\web.config 行: 156
程序集加载跟踪: 下列信息有助于确定程序集“CommunityServer.Components”无法加载的原因。
=== Pre-bind state information ===
LOG: DisplayName = CommunityServer.Components
(Partial)
LOG: Appbase = file:///E:/原C盘资料/原C盘/WEB/网站/test
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: CommunityServer.Components
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c2e62af1/ac64eee1/CommunityServer.Components.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c2e62af1/ac64eee1/CommunityServer.Components/CommunityServer.Components.DLL.
LOG: Attempting download of new URL file:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components.DLL.
LOG: Attempting download of new URL file:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components/CommunityServer.Components.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c2e62af1/ac64eee1/CommunityServer.Components.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c2e62af1/ac64eee1/CommunityServer.Components/CommunityServer.Components.EXE.
LOG: Attempting download of new URL file:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components.EXE.
LOG: Attempting download of new URL file:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components/CommunityServer.Components.EXE
--------------------编程问答-------------------- 行 155: <httpModules>
行 156: <add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
行 157: <add name="Profile" type="Microsoft.ScalableHosting.Profile.ProfileModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
行 158: <add name="RoleManager" type="Microsoft.ScalableHosting.Security.RoleManagerModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
--
这里用到了自定义的http模块,那这个模块是否已经放到服务器上了呢
--------------------编程问答-------------------- 你先去webconfig 里面把着3个删除掉
<add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
<add name="Profile" type="Microsoft.ScalableHosting.Profile.ProfileModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
<add name="RoleManager" type="Microsoft.ScalableHosting.Security.RoleManagerModule, MemberRole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b7c773fb104e7562" />
然后在看!
--------------------编程问答-------------------- 我的 web.xml总共没有这么多行! 也没使用http模块 好郁闷呀 --------------------编程问答-------------------- type="CommunityServer.CSHttpModule, CommunityServer.Components"
这句应该有问题把!
type="程序集, 类型FULLNAME"
补充:.NET技术 , ASP.NET