【★需要强名称程序集★】 程序有时候会不定时出现“需要强名称程序集”错误,刷新一下又没了,过一会儿又出来。……怎么回事啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的asp.net程序加强名称了吗? 樓主用的是vs2005吧?vs2005經常會出現這樣的情況的。我也不知道怎麽回事兒。可能是它的一個bug吧,vs2005還有一些其它的bug,總之有易用性強的地方,也有不太好用的地方。 不,不是vs2005的问题,应该是强名称的问题,我猜是和Web Deployment插件有关,删掉再试…… 不是不能访问,偶尔就会出现。错误提示:“/”应用程序中的服务器错误。--------------------------------------------------------------------------------需要强名称程序集。 (异常来自 HRESULT:0x80131044) 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileLoadException: 需要强名称程序集。 (异常来自 HRESULT:0x80131044)源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪: [FileLoadException: 需要强名称程序集。 (异常来自 HRESULT:0x80131044)] System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72 System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58 System.Type.GetType(String typeName) +48 System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +9 System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +1800 System.Web.Configuration.CompilationSection.get_RecompilationHash() +68 System.Web.Compilation.BuildResultCompiledType.ComputeHashCode(HashCodeCombiner hashCodeCombiner) +159 System.Web.Compilation.BuildResultCompiledTemplateType.ComputeHashCode(HashCodeCombiner hashCodeCombiner) +15 System.Web.Compilation.BuildResult.ComputeHashCode(Int64 hashCode1, Int64 hashCode2) +66 System.Web.Compilation.PreservationFileWriter.SaveBuildResultToFile(String preservationFile, BuildResult result, Int64 hashCode) +548 System.Web.Compilation.DiskBuildResultCache.CacheBuildResult(String cacheKey, BuildResult result, Int64 hashCode, DateTime utcStart) +82 System.Web.Compilation.BuildManager.CacheBuildResultInternal(String cacheKey, BuildResult result, Int64 hashCode, DateTime utcStart) +72 System.Web.Compilation.BuildManager.CacheBuildResult(String cacheKey, BuildResult result, DateTime utcStart) +52 System.Web.Compilation.BuildManager.CacheVPathBuildResultInternal(VirtualPath virtualPath, BuildResult result, DateTime utcStart) +26 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +3366776 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 --------------------------------------------------------------------------------版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42 如何直接显示SQL查询结果!??? 新闻列表生成静态页 GridView可以拆分行吗? 如何弹出对话框? ASP.NET中写入COOKIE的问题 <%# 请问一下如何在ASP.NET中读取select表单中的内容?急 Submit HTML控件提交后,如果没有进行选择或输入数据的话将会出现错误?请问如何解决? SQL l连表查询 求大神帮忙看看 循环体内Invoke的问题 阿里云服务器mvc3项目单个传参页面接收不到,其他的页面正常使用。求解决。。 Web打印预览的问题 请问在web(C#)里怎样读取系统硬件的信息啊?
可能是它的一個bug吧,vs2005還有一些其它的bug,總之有易用性強的地方,也有不太好用的地方。
错误提示:“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------需要强名称程序集。 (异常来自 HRESULT:0x80131044)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileLoadException: 需要强名称程序集。 (异常来自 HRESULT:0x80131044)源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 堆栈跟踪:
[FileLoadException: 需要强名称程序集。 (异常来自 HRESULT:0x80131044)]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +72
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName) +48
System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +9
System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +1800
System.Web.Configuration.CompilationSection.get_RecompilationHash() +68
System.Web.Compilation.BuildResultCompiledType.ComputeHashCode(HashCodeCombiner hashCodeCombiner) +159
System.Web.Compilation.BuildResultCompiledTemplateType.ComputeHashCode(HashCodeCombiner hashCodeCombiner) +15
System.Web.Compilation.BuildResult.ComputeHashCode(Int64 hashCode1, Int64 hashCode2) +66
System.Web.Compilation.PreservationFileWriter.SaveBuildResultToFile(String preservationFile, BuildResult result, Int64 hashCode) +548
System.Web.Compilation.DiskBuildResultCache.CacheBuildResult(String cacheKey, BuildResult result, Int64 hashCode, DateTime utcStart) +82
System.Web.Compilation.BuildManager.CacheBuildResultInternal(String cacheKey, BuildResult result, Int64 hashCode, DateTime utcStart) +72
System.Web.Compilation.BuildManager.CacheBuildResult(String cacheKey, BuildResult result, DateTime utcStart) +52
System.Web.Compilation.BuildManager.CacheVPathBuildResultInternal(VirtualPath virtualPath, BuildResult result, DateTime utcStart) +26
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +3366776
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +580
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42