Regasm.exe Interop problem

A

awk

I have a dll built with c# in VS.net and Register
for COM interop is set to true. This builds
fine on my xp development machine and
the dll output is used by a User defined
function in sql server. This all works
fine until I put the dll on a production server
(small business server) then register it
(without error) using regasm.exe. I get
an error message stating "The system cannot
find the file specified". The differences between
my two environments are VS.Net on my deveopment
machine and not on the SBS server and using
VS.net's build to output and register the dll as opposed
to regasm on the SBS Server. It is possible that
both machines have a different version of the framework
which I cant check from my current location.

Any Help greatly appreciated.

Simon
 
A

Arild Bakken

When using regasm - did you include the /codebase switch? This ensures that
the path of the C# library is added to the registry. Also, make sure that
any external assemblies used by your c# library is copied to the same dir as
your c# dll.

To check the framework version(s) installed on the SBS server, check the
%windir%\Microsoft.Net\Framework folder - you should have one subdir for
each version there.


Arild
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top