ASP.net MVC项目未编制在IIS [英] ASP.net MVC project not compiling on IIS

查看:104
本文介绍了ASP.net MVC项目未编制在IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前只是上传asp.net网站到实时服务器和IIS会自动编译它们。

I used to just upload asp.net websites to the live server, and IIS compiles them automatically.

但是,当我做同样的asp.net MVC项目,我只是得到错误,我需要释放生成项目我上传之前。

But when I do the same with asp.net MVC projects I just get errors, and I need to release Build the project before I upload it.

注1:我使用VWD 2008年防爆preSS

注2:该项目可以正常使用,如果我松开建立它在我的机器上,然后上传到服务器

推荐答案

查尔斯Boyung的评论应该有被认为是一个答案。

Charles Boyung's comment should have been considered as an answer.

MVC应用程序是像网络
  项目,在Visual不是网站
  工作室 - 他们必须在编译
  部署。 -

MVC applications are like Web Projects, not Web Sites in Visual Studio - they must be compiled before deployment. –

暂时不编译服务器上的Web应用程序项目(无线接入点)和网站项目(水安全计划)

Being not compiling on the server is one of the difference points between Web Application Projects (WAPs) and Web Site Projects (WSPs)

<一个href=\"http://vishaljoshi.blogspot.com/2009/08/web-application-project-vs-web-site.html\">http://vishaljoshi.blogspot.com/2009/08/web-application-project-vs-web-site.html

Q1。你打算在生产服务器上部署源$ C ​​$ c和修改自己的服务器上,如果有一个报道时效性错误?

如果你的回答是上述
  问题,你要使用网站
  项目(水安全计划)...在网站的情况下,
  项目Visual Studio中并没有真正的
  编译源$ C ​​$ C对你的开发
  中,它仅仅使用aspnet_compiler到
  验证源$ C ​​$ C会
  实际编译和运行
  服务器......因此,当您尝试部署
  一个网站的人通常也
  部署服务器上的源$ C ​​$ C
  这使得他们能够编辑源
  右边的生产服务器上,如果
  曾经有一段时间敏感的bug
  报道

If you answered Yes to the above question, you want to use Web Site projects (WSPs)… In case of Web Site projects Visual Studio does not really compile your source code on your dev box, it merely uses aspnet_compiler to validate that your source code will actually compile and run on the server… Hence when you try to deploy a web site people typically also deploy the source code on the server which allows them to edit the source right on the production server if there was a time sensitive bug reported

这篇关于ASP.net MVC项目未编制在IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆