简体   繁体   中英

How to publish MVC3 razor with WCF service on IIS 7.5

I have created a service-oriented MVC3 application in Visual Studio 2010. I have used layered architecture for my application. It has a separate project for WCF Services,and separate projects for BLL and DAL, and also one for Entities. Now I want to publish my MVC application on IIS 7.5. I have Windows 7 Home Premium, and I use SQL Server 2008 R2 for my database. How can I publish it in IIS 7.5?

Note: I have created library projects for Entities, BLL, and DAL and use MVC3 for web project and WCF Service Application for WCF services.

I already tried to publish it by using this tutorial , but when I run the application in a browser, it does not load my Javascript, jquery and CSS files, and it give Network error 404 file not found .

使用@ Url.Content(“〜/ blah / blah”)将相对路径转换为应用程序绝对路径。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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