Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2005

Tip: Looking for answers? Try searching our database.

Wrong COM version for Interop Assembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Strahl [MVP] - 16 Jan 2005 03:16 GMT
HI all,

I have a COM Interop assembly I'm accessing through VB and VFP. I'm trying
to debug the thing in VS.NET and it turns out I can't because it's loading V
2.0 of the .NET framework. If I debug the component as soon as it is
accessed with the VS 2003 debugger attached VS closes the running
application and stops debugging. If I just run the component and return the
version number back (Environment.Version) it returns 2.0...

This component is CodeBase registered - not installed in the GAC and this
would have to be so for debugging I suppose. If I look in the registry I can
see that the RuntimeVersion is correctly compiled as 1.1.4 and the entry is
there in the InProcServer subkey.

Why is .NET firing up the wrong version?

Any ideas?

+++ Rick ---

Signature

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web

Rick Strahl [MVP] - 16 Jan 2005 05:18 GMT
Ok, I foudn my own answer:

I need to create a config file with:

<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>

and name it the same as the EXE that's running.

In this case VFP9.exe.config or MyApp.exe.Config.

Nothing to see here <g>...

+++ Rick ---

Signature

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web

> HI all,
>
[quoted text clipped - 15 lines]
>
> +++ Rick ---

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.