出错信息如下:Server Error in '/' Application. --------------------------------------------------------------------------------Bad IL format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Bad IL format.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [BadImageFormatException: Bad IL format.] V5Shop.Page.HttpModule.Init(HttpApplication O11llO1) +0 System.Web.HttpApplication.InitModulesCommon() +80 System.Web.HttpApplication.InitModules() +43 System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828 System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327
--------------------------------------------------------------------------------Bad IL format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Bad IL format.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[BadImageFormatException: Bad IL format.]
V5Shop.Page.HttpModule.Init(HttpApplication O11llO1) +0
System.Web.HttpApplication.InitModulesCommon() +80
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327
aspnet_regiis -r修复一下
然后看看相关的目录权限是否有
网站目录、临时文件夹目录和Framework\v2.0.50727目录
你的方法,我试过,我升级完,然后重启IIS,再清空临时文件,也不行。
kb928365,这个补丁,这个没有试过,按道理升级应该支持的。不升级.net就平安没事。
不是说图片格式问题吗,看看呢
不是格式问题 ,用.net 2.0可以运行的。我估计程序本身问题 ,3.5版本下无法去运行
我安装net 2.0与net 4.0就可以,一升级到net 3.5就出事。
my blog
http://ufo-crackerx.blog.163.com/
c:\cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727Aspnet_regiis -ir 可以修复C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727下的临时文件的写入权限然后把网站放到一个新的目录,设置好权限,注意加上ASP.NET权限
好PP,可能是程序的问题:V5Shop有源代码的话,最好本地安装3.5调试下V5Shop.Page.HttpModule.Init
dll调老的,也不行,超闷的事情。
查看代码 在08下跑 是不是有问题,不行 就吧08 变成2.0 下运行
貌似在属性页 可以改 运行 的环境 是2.0还是3.5
试试吧。
你好, 运行 的环境 是2.0还是3.5,我在属性试过,1.1,2.0,3.5都试过,也清空才NET缓存文件,如果安装SP1那我的SP2补丁是不是要删掉,我安装是2003系统的。大小: 69.2 MBMicrosoft .NET Framework 3.5 Service Pack 1 是包含许多新功能的完整累积更新程序(包括 .NET Framework 2.0 和 .NET Framework 3.0 子组件的累积服务更新程序),这些新功能以递增方式构建在 .NET Framework 2.0、3.0、3.5 上。.NET Framework 3.5 Family Update 提供了重要的应用程序兼容性更新。此合并的 Service Pack 和更新适用于 .NET 版本 2.0 至 3.5。 现在服务器一直提示要我安装这个,我都不敢更新。
分析得很好,web.config这个没有重设置过,属性当然则是保持到.net2.0了。浏览出错,我在想是不是他里面的什么文件不兼容还是怎样的。
web.config 下的默认内容<?xml version="1.0"?>
<configuration>
<!-- EnterpriseLibrary相关配置 -->
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>