Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have just uploaded all of my files for my website via FTP to their filing system and all of the *.aspx.cs files are no longer attached to the *.aspx pages.

When I run the application through the browser I can access pages that do not use the code behind but as soon as I click, for example login, I get an error saying the .aspx.cs page can not be found. It does show where it is looking for the file and it is looking in the old file directory but I can't see anywhere you can actually point a *.aspx page towards a location for the *aspx.cs.

I am sorry if that isn't perfect English, it is getting late and my eyes are starting to struggle!

Thank you.

Dan
Posted

1 solution

Sounds like you have a problem with the location of your web.config file perhaps, or your IIS settings more likely. Is a web application set up in IIS at the app root ?
 
Share this answer
 
Comments
DanHodgson88 17-Dec-12 18:16pm    
I think your right about the web.config, the web host I am using have a default web.config in the root of the application and when I remove it for my own the website simply fails to run. To be honest I am pretty new to asp.net and I am not sure if the web application is set up in the IIS at the app root.
Christian Graus 17-Dec-12 18:17pm    
Well, you need to learn how to use IIS, there's plenty of tutorials online.
DanHodgson88 17-Dec-12 18:19pm    
Cheers Christian I will get reading.
DanHodgson88 18-Dec-12 18:40pm    
I don't know who gave you 1 star but your advice worked, I had a nice reading session today, found the problem and its fixed. thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900