Michael.Young

months ago, i installed a version of .net framework 3.0 & 3.5, maybe the beta1.

And when the VS2008 beta released last week, i downloaded it and installed its owing .net framework 3.5 again(without installing the VS2008 itself)

Before i installed this new version, i can use the csc.exe to compile codes in command window, however after this installed, when i tried to run this csc.exe again, i just encountered this error:

Code Snippet

C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

and i found a csc.exe.config file in the same directory, its content is the following:

Code Snippet
< xml version ="1.0" >
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" safemode="true"/>
<requiredRuntime version="v2.0.50727" safemode="true"/>
</startup>
</configuration>

I'm just confused, whether should i modify this one, or something else or just reinstall it




Re: Visual C# General why this error "configuration is incorrect"?

Michael.Young

and i just DID re-downloaded a single .net framework 3.5 beta2 installation file, and re-installed it.

of course, it told me the process is fablously OK

And of course, i still can not use this csc.exe

why






Re: Visual C# General why this error "configuration is incorrect"?

Aaronru - MSFT

Can you use the tool explained in Aaron Stebner's blog to collect the logs and post them somewhere

http://blogs.msdn.com/astebner/archive/2007/08/01/4172276.aspx

I am basically looking to verify that the *error.txt files are all empty. if you see any that have anything in them please post that information.

If it is installed ok, then I would suspect that this is a bug and will move this thread to the C# forum.





Re: Visual C# General why this error "configuration is incorrect"?

Michael.Young

Hi,Aaronru

sorry about late

i have tried you mentioned collection tool just now, as you said, it got a file named 'dd_dotnetfx35error.txt' in it, whose content is all empty. why

it means that .net framework 3.5 installed no any error however why the csc can not work now

csc in fx2.0 still works.

Thanks

Michael






Re: Visual C# General why this error "configuration is incorrect"?

kurry

I have similar issue. Keep getting that same error while compiling with C# using VS2008 Beta2.

But the problem seems to be intermitent. I can not figure out a pattern though.

My dd_dotnetfx35error.txt file is also empty.





Re: Visual C# General why this error "configuration is incorrect"?

Jerry16

I'm having a similar problem after installing VS 2008 Beta 2. Right now I can't launch the IDE at all - I get "This application has failed to start because the application configuration is incorrect". Here's a little of my history on this :

Back in July I installed :

1) VS 2008 - Orcas (Beta 1)

2) Originally installed Expression Blend 2 May preview and successfully upgraded to the August Preview.

This all played together nicely - until this week. I tried upgrading to VS208 Beta 2 but had two GUID issues in the registry after successfully installing VS2008 Beta 2 the first time. Decided to remove the Beta 1 Orcas........and since have not been able to get the Beta 2 to even launch.

And yes, I have uninstalled and re-installed the Beta 2 several times with no effect. Every install says it worked correctly but I can't ever get the IDE to load. FYI - all of this has not apparently affected my VS2005 installation.

Any ideas





Re: Visual C# General why this error "configuration is incorrect"?

Aaronru - MSFT

if the dd_dotnetfx35error.txt is empty then it means that the framework believes that it has installed successfully.

This log file will append to any errors you've had in installing, so if you install 3 times, the first 2 times error, then you will see the first 2 errors logged in this file, but nothing from the 3rd will be logged. The User Interface will only direct you to the errorlog if it has written something to it, which results in a failed install.

This seems to be a CSC issue, so it should go to the C# forum.





Re: Visual C# General why this error "configuration is incorrect"?


Re: Visual C# General why this error "configuration is incorrect"?

Ed Maurer - MSFT

This error appears when the C runtime libraries (CRT) cannot be found. Csc.exe (and other v3.5 framework binaries) count on the installation script to successfully install the side-by-side CRT libraries on which they depend. Unfortunately, I do not know how to tell you to resolve this setup issue. The installation script needs to be coaxed into installing the SxS CRT.