问题描述
在本机上调试好好的可一发布到服务器上就出如下错误怎么回事拜托好急呀!配置错误说明:在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。分析器错误信息:找不到文件或程序集名称“CommunityServer.Components”,或找不到它的一个依赖项。源错误:行154:<!--START-CommunityServerspecificapplicationsettings-->行155:<httpModules>行156:<addname="CommunityServer"type="CommunityServer.CSHttpModule,CommunityServer.Components"/>行157:<addname="Profile"type="Microsoft.ScalableHosting.Profile.ProfileModule,MemberRole,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b7c773fb104e7562"/>行158:<addname="RoleManager"type="Microsoft.ScalableHosting.Security.RoleManagerModule,MemberRole,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b7c773fb104e7562"/>源文件:E:原C盘资料原C盘WEBcha.ccweb.config行:156程序集加载跟踪:下列信息有助于确定程序集“CommunityServer.Components”无法加载的原因。===Pre-bindstateinformation===LOG:DisplayName=CommunityServer.Components(Partial)LOG:Appbase=file:///E:/原C盘资料/原C盘/WEB/网站/testLOG:InitialPrivatePath=binCallingassembly:(Unknown).===LOG:Policynotbeingappliedtoreferenceatthistime(private,custom,partial,orlocation-basedassemblybind).LOG:Post-policyreference:CommunityServer.ComponentsLOG:AttemptingdownloadofnewURLfile:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/TemporaryASP.NETFiles/test/c2e62af1/ac64eee1/CommunityServer.Components.DLL.LOG:AttemptingdownloadofnewURLfile:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/TemporaryASP.NETFiles/test/c2e62af1/ac64eee1/CommunityServer.Components/CommunityServer.Components.DLL.LOG:AttemptingdownloadofnewURLfile:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components.DLL.LOG:AttemptingdownloadofnewURLfile:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components/CommunityServer.Components.DLL.LOG:AttemptingdownloadofnewURLfile:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/TemporaryASP.NETFiles/test/c2e62af1/ac64eee1/CommunityServer.Components.EXE.LOG:AttemptingdownloadofnewURLfile:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/TemporaryASP.NETFiles/test/c2e62af1/ac64eee1/CommunityServer.Components/CommunityServer.Components.EXE.LOG:AttemptingdownloadofnewURLfile:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components.EXE.LOG:AttemptingdownloadofnewURLfile:///E:/原C盘资料/原C盘/WEB/网站/test/bin/CommunityServer.Components/CommunityServer.Components.EXE
解决方案
解决方案二:
行155:<httpModules>行156:<addname="CommunityServer"type="CommunityServer.CSHttpModule,CommunityServer.Components"/>行157:<addname="Profile"type="Microsoft.ScalableHosting.Profile.ProfileModule,MemberRole,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b7c773fb104e7562"/>行158:<addname="RoleManager"type="Microsoft.ScalableHosting.Security.RoleManagerModule,MemberRole,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b7c773fb104e7562"/>--这里用到了自定义的http模块,那这个模块是否已经放到服务器上了呢
解决方案三:
你先去webconfig里面把着3个删除掉<addname="CommunityServer"type="CommunityServer.CSHttpModule,CommunityServer.Components"/><addname="Profile"type="Microsoft.ScalableHosting.Profile.ProfileModule,MemberRole,Version=1.0.0.0,Culture=neutral,PublicKeyToken=b7c773fb104e7562"/><addname="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"