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 > .NET General

Vista - ASP.NET MVC (Un)Installation Issue

Reply
 
Old 08-30-2008   #1 (permalink)
Fao, Sean


 
 

ASP.NET MVC (Un)Installation Issue

I'm not really sure which newsgroup best fit this question, so I
apologize ahead of time if this message is off-topic.

About a month ago, I started getting into ASP.NET MVC with Preview 4.
Yesterday, I uninstalled Preview 4 and installed Preview 5. Upon doing
so, I ran into an issue with running both new and existing MVC projects.
Immediately upon running the application, the following exception is
thrown:

Could not load type 'System.Web.Routing.StopRoutingHandler' from
assembly 'System.Web.Routing, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

I had already updated the project references from the Preview 4
assemblies to the Preview 5 assemblies, so I checked the GAC and noticed
that the assemblies had indeed been registered. The problem is that the
assemblies that are registered are for Preview 4 (I verified this by
opening them in Reflector and observed that the
System.Web.Routing.StopRoutingHandler class was non-existent) and I have
been unable to unregister them.

In an attempt to recover, I uninstalled Preview 5, which did not
automatically unregister the assemblies. I then proceeded to attempt to
manually unregister the assemblies. Running gacutil /uf resulted in the
following error:

Assembly could not be uninstalled because it is required by Windows
Installer

At this point, I'm not really sure how to recover from the error. In
all honesty, I'm not sure if the Preview 4 installer registered the
assemblies in GAC or if I did it. All I know is that I can't get them
back out!

Any ideas on what I can do to recover?

Thank you in advance,

Sean

My System SpecsSystem Spec
Old 08-30-2008   #2 (permalink)
Fao, Sean


 
 

Re: ASP.NET MVC (Un)Installation Issue

By the way, I forgot to mention that my development machine is running
Windows Vista SP1.
My System SpecsSystem Spec
Old 08-30-2008   #3 (permalink)
Fao, Sean


 
 

Re: ASP.NET MVC (Un)Installation Issue

Fao, Sean wrote:
Quote:

> At this point, I'm not really sure how to recover from the error. In
> all honesty, I'm not sure if the Preview 4 installer registered the
> assemblies in GAC or if I did it. All I know is that I can't get them
> back out!

I've figured it out. The assemblies had a pin in the registry. To
remove them, I went to
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Assemblies\Global and
removed the keys.

Hope this helps somebody else!

--
Sean
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: installation issue Live Messenger
Installation Issue Vista installation & setup
Installation Issue Vista installation & setup
installation issue Vista installation & setup
Installation Issue Vista installation & setup


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