简体   繁体   English

将网站从IIS6迁移到IIS 7.5后未显示内容

[英]Content not displayed after migrate Website from IIS6 to IIS 7.5

New server is Windows 2008 R2 + IIS 7.5 There are websites working fine there, but were made using latest technologies (MVC4 etc). 新服务器是Windows 2008 R2 + IIS 7.5。有些网站可以正常运行,但是使用最新技术(MVC4等)制作。 The website with issues is using Frm 3.5 and was working in Server 2003 IIS6. 有问题的网站使用的是Frm 3.5,并且正在Server 2003 IIS6中工作。 I moved to the new server and looks like the CSS and JS are not displayed/working. 我移到新服务器,看起来CSS和JS没有显示/正常工作。 I tried all the other answers to similar issues in StackOverflow and MSDN (yes Static Content is enabled and MIME Types are correct). 我在StackOverflow和MSDN中尝试了类似问题的所有其他答案(是,启用了静态内容,并且MIME类型正确)。

Then I change the App Pool of this website to 2.0 Classic (was in Integrated) and is working fine. 然后,我将该网站的应用程序池更改为2.0 Classic(已集成),并且运行良好。 This is not a solution, sounds to me more a workaround. 这不是解决方案,对我来说更像是一种解决方法。 What I am missing here? 我在这里想念的是什么? The differences between Classic app pool and Integrated does not mention anything in particular, apart that Classic works as IIS6. Classic应用程序池和Integrated应用程序池之间的区别没有特别提及,除了Classic可作为IIS6使用。

PS: Same website in Server 2012 with IIS8 works fine with Integrated App Pool , I am about to get crazy !!!! PS:Server 2012中带有IIS8的同一网站与集成应用程序池配合正常,我快要疯了!!!!

Please help ! 请帮忙 !

Use IIS6 but your problem is CSS and JS are not displayed/working. 使用IIS6,但是您的问题是CSS和JS无法显示/工作。

Solution Is 解决方案是

Running IIS6, I had luck adding permissions for the local computer user IUSR.

"Application pool" > "Advanced Settings" > "Identity" > "Custom account"

Set your website to "Applicaton user (pass-through authentication)" and not "Specific user", in the Advanced Settings.

Now give that IUSR_[identifier] the appropriate NTFS permissions on files and folders

reference link 参考链接

other link 其他连结

Hey please try this ..... i hope it work..... 嘿,请尝试这个.....我希望它能工作.....

You may need to enable the IIS:ASP role service either in Server Manager or via the Web Platform Installer. 您可能需要在服务器管理器中或通过Web平台安装程序启用IIS:ASP角色服务。 Then once that is installed, you can create a new Application Pool with the following attributes: 然后,一旦安装,就可以使用以下属性创建一个新的应用程序池:

Configure the App Pool ".Net Framework version" to use "No Managed Code" 将应用程序池“ .Net Framework版本”配置为使用“无托管代码”

Set the "Managed pipeline mode" to "Classic" 将“托管管道模式”设置为“经典”

Set "Enable 32 bit Applications" to true, in the "Advanced Settings". 在“高级设置”中将“启用32位应用程序”设置为true。

Set the "Identity" to "Network Service", in the "Advanced Settings". 在“高级设置”中,将“身份”设置为“网络服务”。

Once you configure the new App Pool just set your site to run in the new App Pool in the Advanced Site Settings. 配置新的应用程序池后,只需将您的站点设置为在“高级站点设置”中的新应用程序池中运行。 This should get your site up and running on IIS 7.5 这应该可以使您的站点启动并在IIS 7.5上运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM