Click to See Complete Forum and Search --> : Need help for VS .net installation


fongjeffrey
June 4th, 2003, 02:17 AM
Hi all,

I have installed VS .net for several times, but everytime I got the same problem "cannot create c# compiler" when I tried to run after installation completed. Can anyone tell me why this happened and how to correct this error?
Thank you so much and I am really appreciated!
Jeff.

mdmd
June 4th, 2003, 09:32 PM
Ahh, when you buy the compiler you get free technical support.
Handy when you run into install problems.

And would be nice to know the OS you're on.
Have any beta installed.
Have 2002 installed before upgrading to 2003.
Info, info.

fongjeffrey
June 5th, 2003, 02:55 AM
I have finished installing VS .net and when I tried to create a new project in ASP .net C#, I got an error msg " project could not be opened because the Microsoft visual C# .net compiler could not be created. Please re-install Visual studio." However I have installed VS .net for 3 or 4 times, I still got the same error...
I am running Window XP pro.
Please help

carmness
July 19th, 2003, 02:36 PM
I got that error too. It told me that I had to reinstall Visual Studio. I got the install disk, but went into the Visual Studio.Net setup instead. I ran the Windows Component Update and the Service Releases. After that, it worked fine.

fsudaman
August 19th, 2003, 10:29 PM
I had got the same problem and worse, it happened to me a several times and reinstalling VS.NET over and over again got me so frustrated. It means sitting in front of my PC idling for hours and hours and flipping CD after CD. Luckily I found the real cause to this problem.

I am working on .NET interop stuff and my registry got really messy with all the typelib and prog id registered for object that doesn't exist or with different GUID, as a result of using regasm. I attempted to use some registry cleaning tool to unregister them. Every single time after I did that, I've got that "cannot create compiler" error message when opening up my C# projects. Finally I realize that .NET-COM object is actually registered to point to the mscoree.dll (located in Windows System32 directory) that is shared/used across .NET framework, rather than the actual assembly. Forcing the unregistration will unregister this shared component and we are all doomed after! Knowing the cause, I did a regsvr32 on this dll and it magically fixed the compiler error.

So if you have this problem, try the above! You will be a happy chap again :)

Fadrian:

robw
May 14th, 2004, 08:59 PM
Dear all,

Tried registering mscoree.dll, to no effect, still have this exact problem. Reinstallation also does not help.

Any more ideas ?!?

Thanks!
Rob in NYC

Steef
May 27th, 2004, 01:43 PM
Every Visual Studio project will create a obj directory under the project root. If this project is inaccessible you will get the error
"the Microsoft Visual C# .NET compiler could not be created"