Click here to Skip to main content
12,699,807 members (37,884 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
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.

Posted 17-Dec-12 13:10pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 ?
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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100