[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

"Class not registered" error when assembly registered with multiple versions

msnews.microsoft.com

9/20/2007 6:45:00 PM

Hello!

I have registered a C# private assembly with two versions (using regasm),
so that the registry contains entries like this:

....\InprocServer32\1.0.0.0 <= I want this
....\InprocServer32\1.0.2819.34866 <= unfortunate mistake

This was before I fixed the assembly version to 1.0.0.0. Now I'm trying to
create COM objects from C++, but COM reports Class not registered. It is
the 1.0.2819.34866 entry that messes things up. If I remove this entry (it
should not be there, really) everything works fine. Unfortunately, while
this is easy for me to do, for my clients it is not.

Is there a way I can force my application to load a specific version? I am
not using the GAC, but COM.

I have created a geo.exe.config like this:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Roadrunner"
version="1.0.0.0"
publicKeyToken="baaf840ae384ab38"
culture="neutral" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

This hasn't helped though. Any help is much appreciated!

Thanks in advance!

--
Daniel
9 Answers

Phil Wilson

9/21/2007 9:35:00 PM

0

Try a bindingredirect from 1.0.2819.34866 to 1.0.0.0. IIRC that should
work. When the framework starts up to look for your assembly I believe it
takes note of redirects in your config file.

Alternatively you need to fix up the CLSID registration entries. There'll
be registration that refers to an assembly version of 1.0.2819.34866 that
you want to change to 1.0.0.0.
--
Phil Wilson
[MVP Windows Installer]

"Daniel Lidström" <someone@microsoft.com> wrote in message
news:5y3hth6nxzhf.ft4kzxbtm0dg$.dlg@40tude.net...
> Hello!
>
> I have registered a C# private assembly with two versions (using regasm),
> so that the registry contains entries like this:
>
> ...\InprocServer32\1.0.0.0 <= I want this
> ...\InprocServer32\1.0.2819.34866 <= unfortunate mistake
>
> This was before I fixed the assembly version to 1.0.0.0. Now I'm trying to
> create COM objects from C++, but COM reports Class not registered. It is
> the 1.0.2819.34866 entry that messes things up. If I remove this entry (it
> should not be there, really) everything works fine. Unfortunately, while
> this is easy for me to do, for my clients it is not.
>
> Is there a way I can force my application to load a specific version? I am
> not using the GAC, but COM.
>
> I have created a geo.exe.config like this:
>
> <?xml version ="1.0"?>
> <configuration>
> <startup>
> <supportedRuntime version="v1.1.4322" />
> </startup>
> <runtime>
> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
> <dependentAssembly>
> <assemblyIdentity name="Roadrunner"
> version="1.0.0.0"
> publicKeyToken="baaf840ae384ab38"
> culture="neutral" />
> </dependentAssembly>
> </assemblyBinding>
> </runtime>
> </configuration>
>
> This hasn't helped though. Any help is much appreciated!
>
> Thanks in advance!
>
> --
> Daniel


The Wiz

11/9/2009 5:14:00 AM

0

Bill Shatzer wrote:
> SMITH29 wrote:
>
>> I suspect this will get R E A L lame before it's over.
>>
>> http://www.msnbc.msn.com/id/33766545/ns/us_news-washi...
>
> "Quiet loner".
>
> Rather the standard after the fact description of folks who engage in
> these types of shootings, quite regardless of their religion.
>
> peace and justice,
>
Except that this guy was a Muslim radical. An anti-American Mohammad
loving, towel headed freak. He followed a religion that advocates
killing non-Muslims, and he said that Muslim suicide bombers were
justified.

Bill Shatzer

11/9/2009 6:25:00 AM

0

The Wiz wrote:

> Bill Shatzer wrote:

>> SMITH29 wrote:

>>> I suspect this will get R E A L lame before it's over.

>>> http://www.msnbc.msn.com/id/33766545/ns/us_news-washi...

>> "Quiet loner".

>> Rather the standard after the fact description of folks who engage in
>> these types of shootings, quite regardless of their religion.

> Except that this guy was a Muslim radical. An anti-American Mohammad
> loving, towel headed freak. He followed a religion that advocates
> killing non-Muslims, and he said that Muslim suicide bombers were
> justified.

They are ALL some sort of nut case.

The particular flavor of nutcase is not all that important.

peace and justice,

Sancho Panza

11/9/2009 5:15:00 PM

0


"Yer Pal Al" <caddyshack.al@gmail.com> wrote in message
news:fc5ba1bf-db6a-45de-b36d-ce25a1255c54@y32g2000prd.googlegroups.com...
> On Nov 8, 9:13 pm, The Wiz <anywh...@nowhere.net> wrote:
>> Bill Shatzer wrote:
>> > SMITH29 wrote:
>>
>> >> I suspect this will get R E A L lame before it's over.
>>
>> >>http://www.msnbc.msn.com/id/33766545/ns/us_news-washi...
>>
>> > "Quiet loner".
>>
>> > Rather the standard after the fact description of folks who engage in
>> > these types of shootings, quite regardless of their religion.
>>
>> > peace and justice,
>>
>> Except that this guy was a Muslim radical. An anti-American Mohammad
>> loving, towel headed freak. He followed a religion that advocates
>> killing non-Muslims, and he said that Muslim suicide bombers were
>> justified.
>
> He was a loaner because he was a devout Moslem and 98% of the country
> couldn't relate to him. Why he was a loaner at his Mosque indicates
> his personality problem and the failure of his Mosque to get him
> connected.

Oh sure. Just look where he wanted to make his "connection":


"Officials: U.S. Aware of Hasan Efforts to Contact al Qaeda
Army Major in Fort Hood Massacre Used 'Electronic Means' to Connect with
Terrorists
By RICHARD ESPOSITO, MATTHEW COLE and BRIAN ROSS
Nov. 9, 2009

278 comments

U.S. intelligence agencies were aware months ago that Army Major Nidal Malik
Hasan was attempting to make contact with people associated with al Qaeda,
two American officials briefed on classified material in the case told ABC
News.
Share
Maj. Nidal Malik Hasan tried to make contact with people linked to al Qaeda.

It is not known whether the intelligence agencies informed the Army that one
of its officers was seeking to connect with suspected al Qaeda figures, the
officials said.

Rep. Peter Hoekstra (R-MI), the ranking Republican on the House Intelligence
Committee, said that he requested the CIA and other intelligence agencies
brief the committee on what was known, if anything, about Hasan by the U.S.
intelligence community, only to be refused.

In response, Hoekstra issued a document preservation request to four
intelligence agencies. The letter, dated November 7th, was sent to directors
Dennis Blair (DNI), Robert Mueller (FBI), Lt. Gen Keith Alexander (NSA) and
Leon Panetta (CIA).

Hoekstra said he is "absolutely furious" that the house intel committee has
been refused an intelligence briefing by the DNI or CIA on Hasan's attempt
to reach out to al Qaeda, as first reported by ABC News.

"This is a law enforcement investigation, in which other agencies-not the
CIA-have the lead," CIA spokesman Paul Gimigliano said in a response to ABC
News. " Any suggestion that the CIA refused to brief Congress is incorrect."

Investigators want to know if Hasan maintained contact with a radical mosque
leader from Virginia, Anwar al Awlaki, who now lives in Yemen and runs a web
site that promotes jihad around the world against the U.S.

In a blog posting early Monday titled "Nidal Hassan Did the Right Thing,"
Awlaki calls Hasan a "hero" and a "man of conscience who could not bear
living the contradiction of being a Muslim and serving in an army that is
fighting against his own people."

According to his site, Awlaki served as an imam in Denver, San Diego and
Falls Church, Virginia.

The Associated Press reported Sunday that Major Hasan attended the Falls
Church mosque when Awlaki was there.

The Telegraph of London reported that Awlaki had made contact with two of
the 9/11 hijackers when he was in San Diego.

He denied any knowledge of the hijacking plot and was never charged with any
crime. After an intensive investigation by the FBI , Awlaki moved to Yemen.

People who knew or worked with Hasan say he seemed to have gradually become
more radical in his disapproval of the war in Iraq and Afghanistan.

On Sunday, Sen. Joseph Lieberman (D-CT) called for an investigation into
whether the Army missed signs as to whether Hasan was an Islamic extremist.

"If Hasan was showing signs, saying to people that he had become an Islamist
extremist, the U.S. Army has to have a zero tolerance," Lieberman told Fox
News Sunday.

A fellow Army doctor who studied with Hasan, Val Finell, told ABC News, "We
would frequently say he was a Muslim first and an American second. And that
came out in just about everything he did at the University."

Finell said he and other Army doctors complained to superiors about Hasan's
statements.

"And we questioned how somebody could take an oath of office.be an officer
in the military and swear allegiance to the constitution and to defend
America against all enemies, foreign and domestic and have that type of
conflict," Finell told ABC News.
-------




The Wiz

11/9/2009 8:26:00 PM

0

Bill Shatzer wrote:
> The Wiz wrote:
>
>> Bill Shatzer wrote:
>
>>> SMITH29 wrote:
>
>>>> I suspect this will get R E A L lame before it's over.
>
>>>> http://www.msnbc.msn.com/id/33766545/ns/us_news-washi...
>
>>> "Quiet loner".
>
>>> Rather the standard after the fact description of folks who engage in
>>> these types of shootings, quite regardless of their religion.
>
>> Except that this guy was a Muslim radical. An anti-American Mohammad
>> loving, towel headed freak. He followed a religion that advocates
>> killing non-Muslims, and he said that Muslim suicide bombers were
>> justified.
>
> They are ALL some sort of nut case.
>
> The particular flavor of nutcase is not all that important.
>
> peace and justice,
>
That's what Custer said about Indians you witless shithead.

Alex DeLarge

11/9/2009 9:10:00 PM

0

Bill Shatzer wrote:
>
> The particular flavor of nutcase is not all that important.
>
Someone left a steaming pile of Shatzer on the sidewalk again:


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bill Shatzer wrote:

And over 4,000 Americans have paid with their lives for that little
adventure. Plus a half a trillion dollars in national treasure
You might compare that with the number of lives lost on 9-11. Or the
economic injury incurred from that event.
It would have been cheaper in both lives and money to just suffer
another 9-11 every six or seven years.
Peace and justice,
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Alex DeLarge

11/9/2009 9:15:00 PM

0

Bill Shatzer wrote:

> "Quiet loner".
Someone left a steaming pile of Shatzer on the sidewalk again:


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bill Shatzer wrote:

And over 4,000 Americans have paid with their lives for that little
adventure. Plus a half a trillion dollars in national treasure
You might compare that with the number of lives lost on 9-11. Or the
economic injury incurred from that event.
It would have been cheaper in both lives and money to just suffer
another 9-11 every six or seven years.
Peace and justice,
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Bill Shatzer

11/10/2009 5:57:00 AM

0

The Wiz wrote:

> Bill Shatzer wrote:

>> The Wiz wrote:

>>> Bill Shatzer wrote:

>>>> SMITH29 wrote:

>>>>> I suspect this will get R E A L lame before it's over.

>>>>> http://www.msnbc.msn.com/id/33766545/ns/us_news-washi...

>>>> "Quiet loner".

>>>> Rather the standard after the fact description of folks who engage
>>>> in these types of shootings, quite regardless of their religion.

>>> Except that this guy was a Muslim radical. An anti-American Mohammad
>>> loving, towel headed freak. He followed a religion that advocates
>>> killing non-Muslims, and he said that Muslim suicide bombers were
>>> justified.

>> They are ALL some sort of nut case.

>> The particular flavor of nutcase is not all that important.

> That's what Custer said about Indians you witless shithead.

Crazy Horse and Gall were "quiet loners"? Who'd have thunk it?

Ya' suppose it would have worked out better for Custer had the Indians
been Presbyterians?

Go away kid, ya' bother me.

peace and justice,

Alex DeLarge

11/10/2009 7:17:00 PM

0

Bill Shatzer wrote:

> Go away kid, ya' bother me.

What are you and why do you even draw breath in this world?

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bill Shatzer wrote:

And over 4,000 Americans have paid with their lives for that little
adventure. Plus a half a trillion dollars in national treasure
You might compare that with the number of lives lost on 9-11. Or the
economic injury incurred from that event.
It would have been cheaper in both lives and money to just suffer
another 9-11 every six or seven years.

Peace and justice,

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

An argument might be made that bankers have wracked more damage to this
country than all the terrorists in this century and last.

Peace and justice,

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx