I have a problem in c# i got this...

i have a problem in c# i got this error: COM Interop registration failed. Could not find a type library for assembly 'SmarTeam.Std.Bom'. but SmarTeam.Std.Bom is not a com object or a type library and doesn;t have no refrence to no com object or tlb. i run the commend regasm /codebase /tlb /verbose and i got this message: RegAsm warning: Registering an unsigned assembly with /codebase can cause your a ssembly to interfere with other applications that may be installed on the same c omputer. The /codebase switch is intended to be used only with signed assemblies . Please give your assembly a strong name and re-register it. how can i solve this problem


Would you like to answer or comment?

Sign up for a free account, or sign in (if you're already a member).
  • 1150 views
Share Send to a friend Watch Report
 
 

Posted Answers

Order by
 
518 thumbs up

They're coming to take me away, Ha-haaa!

Advanced .NET Debugging Blog

My personal blog

You have two problems, or actually, one problem and one half problem (since its a warning from the regasm utility).

The first, "COM Interop Registration failed", is caused due to the fact that in your project settings you have set the "Register for COM Interop" flag which means that upon finishing a build, Visual Studio will try to register this assembly for COM interop. This sometimes fails, usually when you have certain types and interfaces that are not compatible with COM. So, to resolve this, either turn off the "Register for COM Interop" option in your project settings or make sure you have all the necessery attributes that enables a .NET object to be access through COM.

The second problem, with regasm, is not really a problem, but only a warning. When using the /codebase parameter regasm will register your assembly in the registry for COM interop, but will add another entry in the registry near the ProgId and CLSID of the object called codebase which will tell .NET to load that specific dll from the place it was registered.

One of the things .NET comes to resolve is what some people refer to as DLL Hell, which is creates a coupling between the registration of a certain COM object to a specific version. Since .NET supports versioning, and if you want to support side-by-side deployment you can make sure to use an exact version of your DLL by signing it and placing it in the Global Assembly Cache (GAC). When you'll run regasm (this time WITHOUT /codebase) it will not add the codebase entry in the registry but will specify the exact version of the .NET object. When the application will try to load it, it will search for that exact version in the registry, helping you a bit to decouple .NET assembly versions to specific locations. 

I've written a blog post in my blog about how .NET loads an assembly, this will make it clearer how .NET loads an assembly when accessed from COM after it resolves what assembly to load from the registry. 


Posted 2 years ago ( permalink )
In reply to talh's question
Rated as
#2 out of 3
2
2

Helpful?

line
line
line



 
63 thumbs up

Ordinary People Discovering Extraordinary Abilities

Not So Smart Builder

You should try changing the name to: Enovia.Std.Bom. Maybe this will work.


Posted 2 years ago ( permalink )
In reply to talh's question
Rated as
Best Answer
2
4

Helpful?

line
line
line



 
60 thumbs up

Bored with knowledge? Try golf

The previous answer from dudushmaya is totally wrong.

Its a naming convention issue.

The appropriate name is:

Enovia-Smarteam.NonStd.Makes.BomBom

For more explainations, refer to this.

 


Posted 2 years ago ( permalink )
In reply to talh's question
Rated as
#3 out of 3
2
2

Helpful?

line
line
line



Sign in to participate

Got an answer for talh? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Hi, Do you have a sample C# code to use google or ...

Hi, Do you have a sample C# code to use google or yahoo id to signup/login to the website? please reply me at prasadvemala@gmail ...
Submitted by prasad 1 month ago
  • viewed 30 times

Last answer posted 16 days ago by prasad


Anyone familiar with MS CAB

Anyone familiar with MS CAB (Composite UI Application Block)? It looks quite interesting and I wonder if anyone tried it on a real ...
Submitted by Eyal123 2 years ago
  • viewed 659 times

Last answer posted 2 years ago by Ohad.Israeli


Query domain for list of computers that are listening to a specific port in c#

How can I get list of computers in a domain that are listening to a specific port (in c#)?
Submitted by dudushmaya 2 years ago
  • viewed 1159 times

Last answer posted 2 years ago by Daniel



» More...

Explore Related Posts in Forums

Re: (c)+(c)+(c)+(c)+(c)+ (c)+(c)+(c)+(c)+ ((c)+)(c)+(c)+(c)+(c)+ :)

On Tue, 18 Dec 2007 22:14:55 +0500, "Valet" wrote: >> &gt... - , >> > - . >> > - > ^ : > " " > ... ? &)...

Re: (c)+(c)+(c)+(c)+(c)+ (c)+(c)+(c)+(c)+ ((c)+)(c)+(c)+(c)+(c)+ :)

On Thu, 6 Dec 2007 13:03:48 +0500, "Valet" wrote: >>>&... > . >>>> . >>> >>> . >>>> . >&gt...

C-C-C-C-C-C-Combo Breaker!

I know MS bought out RARE.... but I long for this series to come back. Better yet, if some... of the original dev team members broke away and decided to bring something similar to multi...
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog

Explore Related Videos

Watch: Full-Length Vice Presidential Debate

Vice Presidential candidates Sen. Joe Biden (D-Del.) and Gov. Sarah Palin (R-Alaska) squared off in a highly anticipated debate Thursday, Oct. 2nd in St. Louis, Mo.

Watch the Full Debate

Candidates Barack Obama (D-Ill.) and John McCain (R-Ariz.) participated in the second of three presidential debates on Tuesday, October 7th at Belmont University in Nashville, Tenn. Video by AP Debate Analysis On Economy On Health Care

No. 13 South Florida Crushes N.C. State,...

Grothe, No. 13 South Florida rough up N.C. State

Joe Biden at the Democratic National Jewish...

Joe Biden gives a speech at the Democratic National Jewish Convention in Washington, D.C.

Iceland Faces Financial Meltdown

The tiny nation of Iceland is scrambling to prevent a financial collapse, begging other nations for loans, adjusting the value of its currency and taking over its second largest bank. Video by AP

Watch the Full Debate

Candidates John McCain (R-Ariz.) and Barack Obama (D-Ill.) participated in the first of three presidential debates on Friday, September 26th at the University of Mississippi. Though the intended topics were national security and foreign policy, the economy was at the forefront. Video by AP