首页新闻找找看学习计划

IIS7.5部署 ASP.NET MVC3.5 访问静态资源报错

0
悬赏园豆:15 [已关闭问题] 关闭于 2011-11-02 09:38

异常信息

[HttpException (0x80004005): 未能执行 URL。]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl(String url, String method, String childHeaders, Boolean sendHeaders, Boolean addUserIndo, IntPtr token, String name, String authType, Byte[] entity, AsyncCallback cb, Object state) +2456793
System.Web.HttpResponse.BeginExecuteUrlForEntireResponse(String pathOverride, NameValueCollection requestHeaders, AsyncCallback cb, Object state) +417
System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) +192
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8898152
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

应用程序池是经典模式,.net4.0

web.config

<configuration>
<connectionStrings>
</connectionStrings>

<appSettings>
<add key="RouteDebug" value="false"/>
</appSettings>

<system.web>

<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>

<authentication mode="Forms">
</authentication>

<membership>
<providers>
<clear />
</providers>
</membership>

<profile>
<providers>
<clear />
</providers>
</profile>

<roleManager enabled="false">
<providers>
<clear />
</providers>
</roleManager>

<pages>
<namespaces>
<clear />
<add namespace="System"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Linq"/>
<add namespace="System.Text"/>

<add namespace="System.Web"/>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
</system.web>

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="mvc" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
</handlers>
<modules runAllManagedModulesForAllRequests="true"></modules>
</system.webServer>

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

 

传说的青蛙的主页 传说的青蛙 | 初学一级 | 园豆:2
提问于:2011-10-04 20:47
< >
分享
所有回答(1)
0

映射关系没有加,在mvc3中你的访问地址是control/Action,地址栏写这个地址,服务器就无法解析

参考:http://www.cnblogs.com/highend/archive/2011/09/12/2174191.html

王元勋 | 园豆:413 (菜鸟二级) | 2011-10-08 09:00
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册