ASP. NET MVC Publishing IIS failed to load Css,js and pictures

Source: Internet
Author: User

Today is really depressing, encountered in the local can run the project to the IIS server there is no way to load css,js and pictures, here to make it clear first, there are many things about ASP. Studio runtime can not load the CSS and JS files, the situation is generally a path problem, change the page code on the line, many online tutorials, and this is actually a CMS open source system. Orchard, National Day is really boring, want to play under this ASP. NET MVC framework CMS, and Microsoft recommended open-source CMS, mentioned to say this bar, and other domestic CMS compared to the words, the advantages of this is less bug, at least to now have not met, and run more efficient , the disadvantage is that the information is too little, the English version of the resources are quite many, although this site can be Chinese, recently xmfdsh in the study of this, we work together to/cy.

Go back to that topic, download Open source source code, has been compiled well, should not have problems, directly published to IIS can be, but unexpectedly found Css,js, and pictures can't load, the final solution, is the ASP. NET pipeline must be selected integrated, there are two places, the following:

In fact, it's so simple, alas ... It took me 5 hours to search the internet for so much information before it was done, and I tried it out myself, depressed. It's still not going to be here, and I'm having this problem.

Failed to load type from assembly "System.ServiceModel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"

The workaround is as follows:

According to Microsoft's hints, this error may have been caused by the installation of a high-version. NET Framework. There is a solution in this.
First step: Modify the configuration file%windir%/system32/inetsrv/config/applicationhost
<add name= "ServiceModel" type= "System.ServiceModel.Activation.HttpModule, System.ServiceModel, version=3.0.0.0, Culture=neutral, publickeytoken=b77a5c561934e089 "precondition=" managedhandler,runtimeversionv2.0 "/>
Step Two: Open the (%windir%/microsoft.net/framework/v4.0.30319) Aspnet_regiis.exe-iru file at the following address

OK, finally fix, that tear ran Ah, to see the success of:

ASP. NET MVC Publishing IIS failed to load Css,js and pictures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.