mts1701
mts1701

Reputation: 165

Site preview cannot find files that exist

Me and a coworker are building an application in asp.net (C#). Recently, I reorganized the file structure... I moved a file (login.aspx) from the root, to a sub-folder. Everything works fine on my machine (in my development environment).

So I upload the changes to our source control solution (StarTeam), and my co-worker downloads the entire project (a complete fresh copy) to her box. She opens the solution, and attempts to run it, and she get's an error that says the login.aspx page cannot be found in the location it is supposed to be at (inside that subfolder I talked about). But when I look in the solution explorer, IT'S THERE!.

Moreover, while attempting to run the site, if I alter the path to look for the login page at it's original location (the root), it actually comes up. BUT, if you look in the solution explorer, no such file exists.

I've tried cleaning the solution, and rebuilding multiple times, but I keep getting the same results. I'm especially flummoxed by the fact it can pull up a file that plainly doesn't exist in the solution. It's like it's holding on to a cached version somehow regardless of my attempts to clean the solution.

Upvotes: 0

Views: 54

Answers (1)

mts1701
mts1701

Reputation: 165

Another developer suggested that I clear out the temporary files built by .Net when the solution is built. He pointed me to "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root", and told me to delete the contents therein.

After I did that, the entire problem disappeared. So it's my interpretation that when I use the "Clean Solution" feature under Build, that "everything" isn't actually cleaned.

I may be interpreting the evidence wrong, and if so, I welcome clarification. However, I can attest that this solved my problem.

Upvotes: 1

Related Questions