且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在Web服务器上运行ASP.net页面

更新时间:2021-11-01 07:40:43

我终于能够正常工作 - 最初我已经将项目创建为Web应用程序而不是Web站点。在重新创建网站并发布后,所有服务器都可以正常运行。我注意到Web.config文件没有system.codedom部分,Web App也没有。所以我想网站不需要这样做。

另外 - 为什么网站项目只有DEBUG配置和RELEASE配置?这有什么意义?

我想了解Web App和Web Site之间的区别。有什么建议吗?



顺便说一下 - 我创建了针对.NET Framework 4.0而不是4.5.2的网站 - 不知道是否与此有任何关系它 - 可能不是。
I was finally able get this working - Initially I had created the project as a Web Application instead of Web Site. After recreating as a Web Site and publishing, all runs fine from the server. I noticed the Web.config file has no system.codedom section as does the one for Web App. so I guess that is not needed for a website.
Also - why is there only a DEBUG configuration and no RELEASE configuration for a Web Site project? What is the significance of that?
I would like to understand the difference between Web App and Web Site. Any suggestions?

By the way - I created the Web Site targeting .NET Framework 4.0 instead of 4.5.2 - don't know if that had anything to do with it - probably not.