Solved

Visual C# crash when I try to open or create new project / files

Posted on 2012-03-24
7
322 Views
Last Modified: 2012-03-25
I have installed Visual Studio 2010 (VB.net) and work without problem, but C# 4.0 don't work.

Attached some Screenshot about the errors.

I have installed C# 4.0 and not work and after uninstall it I was installed C# 4.0 (express edition) with some result.

I have win7 and 4.0 framework installed.

Someone can help me to solve this problem ?
error1.png
error2.png
error3.png
error4.png
0
Comment
Question by:luca345
  • 3
  • 3
7 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 37762235
Looking at your messages and the 4th picture.
There seems to be a problem with the target framework (of .net) for the app - version 4 is specified BUT the highest version you have available is 3.5


What I would suggest is to do a complete uninstall of the express version of C# and VS 2010.
Reboot.  Now do a complete install of VS 2010.
Once that is done try to create a new C# project using the .net 4 framework and see if that works OK.
Hopefully it will.  (This current project might be corrupt somehow - I'd test a completely new project before attempting to open/compile this one again).
0
 

Author Closing Comment

by:luca345
ID: 37762321
I' have installed the VS SP1 and now there is no crash, the warring is also present but the application run.

Thank you !
0
 
LVL 3

Expert Comment

by:Simplist
ID: 37762506
You are missing the right framework. Re-install .net framework 4. Apply all microsoft updates after that.
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:luca345
ID: 37762527
Yes. I will do, thank you !

P.S.

Do you known if exist a way do prevent the debug in some specific module ?
0
 
LVL 3

Expert Comment

by:Simplist
ID: 37762549
While debugging you will find in the Debug entry of your Main menu options like "Step Into F10", "Step Over F11" and "Step Out Shift+F11" that will behave differently on a call to a specific module. 1st option will debug the statement, 2nd option will just execute the statement without debugging and stop on the next, last option will execute all remaining statements of the current module and stop on the first statement following the call to the module you were in.
Step through your code or place breakpoints to debug the parts of your code to investigate why it creates errors in spite of your excellent program design.
0
 

Author Comment

by:luca345
ID: 37762559
Thank you , but I mean at run time (some lines in the module)
0
 
LVL 3

Expert Comment

by:Simplist
ID: 37762574
Sorry, never encountered that option. You'd better start another thread for that question.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question