Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - .NET Runtime Optimization Service has encountered a problem

Reply
 
Old 4 Weeks Ago   #1 (permalink)
Al Fansome


 
 

.NET Runtime Optimization Service has encountered a problem

I just installed PowerShell 2.0 on Windows XP. When I run it, I get a
popup that says ".NET Runtime Optimization Service has encountered a
problem and needs to close". Other than the popup, I don't see any
evidence of a problem.

Any idea what is causing this?
Should I go back to 1.0?

Thanks,

Al

My System SpecsSystem Spec
Old 4 Weeks Ago   #2 (permalink)
Larry__Weiss


 
 

Re: .NET Runtime Optimization Service has encountered a problem

What .NET version is installed?

I'm using .NET Framework 3.5 Service Pack 1 on XP SP3 with no problems like that.

- Larry


Al Fansome wrote:
Quote:

> I just installed PowerShell 2.0 on Windows XP. When I run it, I get a
> popup that says ".NET Runtime Optimization Service has encountered a
> problem and needs to close". Other than the popup, I don't see any
> evidence of a problem.
>
> Any idea what is causing this?
> Should I go back to 1.0?
>
My System SpecsSystem Spec
Old 4 Weeks Ago   #3 (permalink)
Al Fansome


 
 

Re: .NET Runtime Optimization Service has encountered a problem

I am running the same versions of both .NET and XP.

I now don't think that this happens when I run PowerShell. The .NET
Runtime Optimization Service is a service; it was probably running until
I installed PowerShell 2, at which point it started failing. I tried
uninstalling .NET and then reinstalling it, but the problem continues.
Eventually the service no longer restarts, so I don't see the popup any
more.

From what I've read I might be able to get by without it, but it would
be nice to know why it started failing, and why reinstalling .NET and
PowerShell doesn't fix the problem.

Larry__Weiss wrote:
Quote:

>
> What .NET version is installed?
>
> I'm using .NET Framework 3.5 Service Pack 1 on XP SP3 with no problems
> like that.
>
> - Larry
>
>
> Al Fansome wrote:
Quote:

>> I just installed PowerShell 2.0 on Windows XP. When I run it, I get a
>> popup that says ".NET Runtime Optimization Service has encountered a
>> problem and needs to close". Other than the popup, I don't see any
>> evidence of a problem.
>>
>> Any idea what is causing this?
>> Should I go back to 1.0?
>>
My System SpecsSystem Spec
Old 4 Weeks Ago   #4 (permalink)
Larry__Weiss


 
 

Re: .NET Runtime Optimization Service has encountered a problem

http://social.msdn.microsoft.com/For...e-e4376a6f7075
mentions a removal tool that helps remedy this.

- Larry


Al Fansome wrote:
Quote:

> I am running the same versions of both .NET and XP.
>
> I now don't think that this happens when I run PowerShell. The .NET
> Runtime Optimization Service is a service; it was probably running until
> I installed PowerShell 2, at which point it started failing. I tried
> uninstalling .NET and then reinstalling it, but the problem continues.
> Eventually the service no longer restarts, so I don't see the popup any
> more.
>
> From what I've read I might be able to get by without it, but it would
> be nice to know why it started failing, and why reinstalling .NET and
> PowerShell doesn't fix the problem.
>
> Larry__Weiss wrote:
Quote:

>> What .NET version is installed?
>> I'm using .NET Framework 3.5 Service Pack 1 on XP SP3 with no problems
>> like that.
>>
>>
>> Al Fansome wrote:
Quote:

>>> I just installed PowerShell 2.0 on Windows XP. When I run it, I get a
>>> popup that says ".NET Runtime Optimization Service has encountered a
>>> problem and needs to close". Other than the popup, I don't see any
>>> evidence of a problem.
>>> Any idea what is causing this?
>>> Should I go back to 1.0?
>>>
My System SpecsSystem Spec
Old 4 Weeks Ago   #5 (permalink)
Al Fansome


 
 

Re: .NET Runtime Optimization Service has encountered a problem

I am using the procedure described here, and I seem to be making
progress:
http://blogs.msdn.com/powershell/arc...-download.aspx

This service, known as "ngen", precompiles .NET intermediate code in the
background. Apparently a bunch of non-existent assemblies got queued to
this service; they appear to be leftovers from when I installed PS 1 and
then uninstalled it. When the service tries to compile them, it crashes
because they got uninstalled.

"ngen uninstall" will remove these from the queue, one at a time. So,
you have to go to C:\windows\microsoft.net\framework\v2.0.50727, and
look at the last entry in ngen_service.log: "(cat
ngen_service.log)[-10..-1]". Then use ngen uninstall to remove this last
entry, e.g.

v2.0.50727> .\ngen uninstall
"System.Management.Automation.resources,Version=1.0.0.0,Culture=%PowerShell_Culture%,Public
KeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"

Then start the service again. When it fails again, do the above again;
rinse and repeat. I think it finally is ok now; I believe I had to do
this for about five or six assemblies.

Larry__Weiss wrote:
Quote:

> http://social.msdn.microsoft.com/For...e-e4376a6f7075
>
> mentions a removal tool that helps remedy this.
>
> - Larry
>
>
> Al Fansome wrote:
Quote:

>> I am running the same versions of both .NET and XP.
>>
>> I now don't think that this happens when I run PowerShell. The .NET
>> Runtime Optimization Service is a service; it was probably running
>> until I installed PowerShell 2, at which point it started failing. I
>> tried uninstalling .NET and then reinstalling it, but the problem
>> continues. Eventually the service no longer restarts, so I don't see
>> the popup any more.
>>
>> From what I've read I might be able to get by without it, but it
>> would be nice to know why it started failing, and why reinstalling
>> .NET and PowerShell doesn't fix the problem.
>>
>> Larry__Weiss wrote:
Quote:

>>> What .NET version is installed?
>>> I'm using .NET Framework 3.5 Service Pack 1 on XP SP3 with no
>>> problems like that.
>>>
>>>
>>> Al Fansome wrote:
>>>> I just installed PowerShell 2.0 on Windows XP. When I run it, I get
>>>> a popup that says ".NET Runtime Optimization Service has encountered
>>>> a problem and needs to close". Other than the popup, I don't see any
>>>> evidence of a problem.
>>>> Any idea what is causing this?
>>>> Should I go back to 1.0?
>>>>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Anyone know what .NET Runtime Optimization Service is? General Discussion
Why does .NET Optimization Service keep trying to connect? .NET General
encountered a problem Vista mail
How to retrieve service name at runtime .NET General
Media Center Receiver Service has encountered a problem and needs .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46