Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have been developing a webapp with VS2008 with .NET 3.5 and I moved to VS2010 and .NET 4.0.
I moved the solution folder to my new computer with VS2010 and I began the process of converting it to .NET 4.
After this everything appears to work fine, but now when I make redirect to any page I get a HTTP Error 400 - Bad Request.

Thanks all
Posted
Updated 1-Jun-11 0:44am
v2

1 solution

I should not be related to the conversion itself: Framework 4.0 is backward-compatible with 3.5. It looks like your solution itself has bugs which makes it not movable (hard-coded path strings could be one reason). Do one step at a time. Make moved site working without conversion to 4.0, and them convert. Alternatively, convert your solution first on the same location and make sure it works first.

One more advice: clean up the solution from any artifacts except pure source code. You need to know exactly which files belong to the source code. Always work under some revision control system. Move solution not manually, but by wiping your local directory and checking out the code to a different location. Try to move solution around on the same computer first, to make sure you're not missing something.

At lest, you won't blame the innocent Visual Studio conversion procedure.

—SA
 
Share this answer
 
Comments
Abhinav S 1-Jun-11 14:04pm    
Good advice. 5.
Sergey Alexandrovich Kryukov 1-Jun-11 14:06pm    
Thank you, Abhinav.
--SA

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