简体   繁体   English

ASP.NET 4 VS2010 Web应用程序部署

[英]ASP.NET 4 VS2010 Web Application Deployment

I must be missing something quite basic here... 我一定在这里缺少一些基本的东西...

Trying to release my site to a test server... click on the publish option... and off it goes. 尝试将我的站点发布到测试服务器...单击发布选项...然后关闭。 The site is 'successfully' to the webserver... the odd thing is none of the code behind files have been copied. 该站点已“成功”访问了Web服务器...奇怪的是,没有文件的背后代码已被复制。

Should they be there? 他们应该在那里吗? Why aren't they? 他们为什么不呢? What have I done wrong!?? 我做错了什么!?

I've looked for some help on the web, can't see it, so any pointers to a URL would be gratefully received. 我在网上寻找了一些帮助,看不到它,因此将不胜感激地收到指向URL的任何指针。

Thanks in advance. 提前致谢。

The code behind files are compiled into your output dll which ends up in the bin folder. 文件后面的代码被编译到输出dll中,该文件最终位于bin文件夹中。 As for the site url not working or whatever, it could be a number of issues.. make sure you're publishing to the correct directory first of all. 至于网站网址无法正常工作或其他问题,可能是许多问题..确保首先发布到正确的目录。 Then if that doesn't work, is probably an IIS issue. 如果这样不起作用,则可能是IIS问题。

Sorted (and some kudos to @John Saunders for sending me in the right direction)... 排序(以及对@John Saunders的一些敬意,以正确的方向发送给我)...

It was a web site after all... quick convert to Web Application and it works fine. 毕竟这一个网站...快速转换为Web应用程序,它可以正常工作。

Should be noted that there was a csproj file in the solution before the conversion. 应该注意的是,转换之前解决方案中有一个csproj文件。

Problem solved - thanks guys. 问题已解决-谢谢大家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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