简体   繁体   中英

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.

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.

Thanks in advance.

The code behind files are compiled into your output dll which ends up in the bin folder. 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.

Sorted (and some kudos to @John Saunders for sending me in the right direction)...

It was a web site after all... quick convert to Web Application and it works fine.

Should be noted that there was a csproj file in the solution before the conversion.

Problem solved - thanks guys.

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