Click here to Skip to main content
Rate this: bad
good
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.
 
Dan
Posted 17-Dec-12 12:10pm

1 solution

Rate this: bad
good
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 ?
  Permalink  
Comments
DanHodgson88 at 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 at 17-Dec-12 18:17pm
   
Well, you need to learn how to use IIS, there's plenty of tutorials online.
DanHodgson88 at 17-Dec-12 18:19pm
   
Cheers Christian I will get reading.
DanHodgson88 at 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
0 Sergey Alexandrovich Kryukov 359
1 Richard MacCutchan 320
2 OriginalGriff 240
3 Jared Sanow 145
4 Snehasish_Nandy 115
0 Sergey Alexandrovich Kryukov 5,969
1 OriginalGriff 5,005
2 CPallini 2,473
3 Richard MacCutchan 1,547
4 Abhinav S 1,507


Advertise | Privacy | Mobile
Web01 | 2.8.140814.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
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