1

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.

5
  • is this a web site (File->New Web Site) or a web application (File->New Project)? Commented Sep 17, 2010 at 15:41
  • @John Saunders: How can I tell... I've inherited this? Commented Sep 17, 2010 at 15:46
  • Actually, is it a reasonable assumption to say it's a web application because each of the aspx files has an associated designer page? Commented Sep 17, 2010 at 15:58
  • if there's a .csproj file then it's a web app Commented Sep 17, 2010 at 16:53
  • @John Saunders: It's a Web App Commented Sep 20, 2010 at 8:26

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

OK, so if I copy the missing source page into the correct directory it works. But this isn't correct? Why does it require the .cs files.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.