|
-
March 24th, 2012, 08:41 AM
#1
[RESOLVED] Solution file got corrupt, and now all sorts of problems are occurring.
Alright here's the thing. I was developing a web application with VS2010 using N-Tier architecture. I had 3 projects : BOL_ECMS_NIT, DAL_ECMS_NIT, and ECMS_NIT.
One day all of a sudden, outta nowhere, the solution file got corrupted and it refused to open as a proper solution. Each time it would say, "One or more projects were not loaded properly.". It loads only one project. My sir managed to fix the problem by adding the projects to the solution again. But then we ha to add all the referrences again. But our troubles didn't stop there. All the web forms had their *******.designer.cs files separated from them. And in the code-behind files intellisense doesn't show any of the controls that're present on the form. Not only that, it also doesn't access the events properly. Breakpoints don't work either. And going to any of the events in the property window and double-clicking it, just creates the same event, but this time, in the asp code. It's all a big mess. I've to recreate each for again in order to get rid of this problem. I've come way to far on this project to just let it go like that. Can someone help me?
-
March 24th, 2012, 10:57 AM
#2
Re: Solution file got corrupt, and now all sorts of problems are occurring.
Alright I've found a solution. Once your solution file gets corrupt, you need to create a new solution, add all the 3 projects again, and save it. However, I was having trouble with ECMS_NIT. I kept saying that there was a problem with the project file. Something about a root element missing. I checked on the internet and found a solution for that as well. You've got a '.csproj.user' file. It should start with the name of your project. You need to delete this file.
BE CAREFUL. Delete ONLY the .csproj.user file. I don't know what will happen if you accidentally delete the .csproj file.
So anyways, delete the .csproj.user file, and you'll be able to add your project to the solution again.
Also, an update on my previous problem. All the references and designer.cs files are in place. Everything is working the same as before. However, a few changes that I'd made yesterday, had to be done again. I had to add a few files, for example. Reports, controls and forms that I'd created in the past 2 days had to be added again. This was only in ECMS_NIT. Changes made to other projects remained intact.
Anyways, hope this helps ya'll.
I learnt something new. Hooray for me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|