Click here to Skip to main content
15,896,474 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have VS2008 and VS2010 installed on my computer , all of my program has written with VS2008....there's 2 problem

1_ when i want open my project (written VS2008) , the forms cant be loaded and i encounter a message that it is : object may not reference to an......

2_ i cant open none of my project (that VS2008 installed on) in the another PC(VS2008 installed on ) ..when i wanna open them (source code) nothing will shown ...and i encounter a message again that is about csproj....


please help me ... I have to share my project , with the situation i have involved in , I cant show any of my project t(source code) to no body .

[edit]Spurious bold removed - OriginalGriff[/edit]
Posted
Updated 25-Jan-12 21:04pm
v4
Comments
Sergey Alexandrovich Kryukov 26-Jan-12 2:37am    
Our access to your hard drive is somewhat limited, you know... :-)
--SA

1 solution

The problem is probably that one of your forms or user controls is doing something wrong right from the start - in the constructor most likely. VS tries to laod it into the designer, and it fails - that causes a problem with VS and your difficulties loading.

Try this: create a new project. Add one file from your old project. Build. Close the solution, and re-open it. Continue to add files until it fails. You then know which one is the problem. Open that using a text editor (notepad is fine) and comment our the constructor code. Your should then be able to load your original project, and sort out your problem in the code.
 
Share this answer
 
Comments
maria anders 26-Jan-12 3:15am    
thanks for ur answer , but in the project i mention , i havent used any user control ,its completely simple ...a form with its coded...nothing more ....why I can not be opened it in another PC( does it related to VS2010)???
OriginalGriff 26-Jan-12 3:33am    
Right. Did you create this in VS2008, then open it in VS2010? If so, then it has been converted, and you cannot open the project in VS2008 again - your will have been asked if you wanted a backup, which you still can, but it will not include any changes since the conversion.

If so, then the easiest way to do it is to create a new project in VS2008 and add each of the files from your VS2010 project. That will then be transportable to other VS2008 installations. Or upgrade to VS2010 :laugh:
maria anders 26-Jan-12 3:48am    
yes , i did it ...whats ur opinion if i unistall VS2010 from my computer?????
does it solve my problem or not , its useful for keep opening the another my projct to open with it
OriginalGriff 26-Jan-12 4:18am    
I wouldn't - I ran with both installed (but mostly using VS2008) for about a year, with no problems.
At some point, you are going to meet a problem that needs .NET 4 - it would waste a lot of time to re-install something just to create a small app!

Just because it is there, doesn't mean you have to use it - they co-exist very well from my experience.
Just if you open a project and it says "upgrading" - press the cancel button! :laugh:

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