When .Net Framework 2.0 Beta Messes You Up

If you installed .Net Framework 2.0 Beta and suddenly VS2K3.Net refuses to attach to your existing 1.1 apps with a very cool error message “Unable to attach to process”, don’t get panic! Looks like side-by-side promise of Framework versions doesn’t work in some rare cases (which somehow I always get in to). Unfortunately you can’t uninstall 2.0 (even though it gets installed in separate folder, core DLLs such as mscorlib.dll is already replaced by 2.0 version). The best way to make things work is to live with it and add this little snippet in your [myapp].exe.config:

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
   <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfstartup.asp"><startup></a>
      <supportedRuntime version="v1.1.4322"/>

Even better way is, off course, install betas only in your VPC!

PS: If you ask what was that rare situation: This happens with Groove tools you write with 100% managed code. In this case, you expose your DMD with CCW which Groove loads dynamically using ProgID and somehow it gets bind to 2.0 version. One more thing, I’ve heard that 2.0+ Frameworks will upgrade existing framework version rather then getting installed side-by-side. That might be it! In any case, your VS2003.Net will get screwed up, so above step is necessary.

Shital Shah

A program trying to understand what it’s computing.

comments powered by Disqus