views:

75

answers:

3

I have switched to a new PC and got the latest version out of source safe but now when I do a ReBuild I get Could not load type then the name of my namespace.the name of my pages?

It seems ok if I do a Build.

Any ideas?

UPDATE: Once a Rebuild is done it removes the Namespace.dll and then doing a Build it fails with the same errors.

UPDATE 2: I think it has something to do with aspnet_compiler.exe? Do standard Web Applications run this after a build? I have setup another test Web Application and it runs Csc.exe but not aspnet_compiler.exe but I can't see anywhere in my project where its configured to run this.

A: 

maybe you have refferenced a DLL directly, instead of a project in a solution.

This could cause a rebuild to work

Heiko Hatzfeld
re-added all my references
Jon
A: 

I've lost references before when I've moved to a new machine. So, I would start by checking the references on the projects with the errors.

Jeff Siver
re-added all my references
Jon
Have you installed all of the VS service packs on the new machine?
Jeff Siver
As far as I am aware. I am running Version 9.0.30729.1 SP
Jon
My next step would be to delete the solution (not the projects; just the solution) and manually create a new one. Then verify that project references are all still working and see what happens.
Jeff Siver
A: 

I found in my csproj file the following:

<AspNetCompiler PhysicalPath="C:\Projects\MyProject" Debug="false" VirtualPath="/MyProject" />

Not sure what this is doing, I think it was put in there for some reason.

Jon