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