473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Regasm.exe Interop problem

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
Nov 15 '05 #1
1 2373
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

"awk" <si*********@mbox.com.au> wrote in message
news:ej****************@TK2MSFTNGP12.phx.gbl...
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

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin Flanagan | last post by:
This can be reproduced with VS.NET as follows. Create a new ATL project with default wizard settings (dll, attributed). To the 'module' attribute, add a specifier 'version = "1.10" ' alongside the...
0
by: paul | last post by:
Hi, I'm trying make a tbl file from a dll using regasm. If I don't use Dotfuscator to obfuscate the code it works but when I do I get the following error. RegAsm error: Type library exporter...
2
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop"...
5
by: Anthony Evans | last post by:
Greetings I'm using VC++.NET to create a class library. The class library contains managed classes that wrap legacy unmanaged classes by the same name. I use regasm to register the DLL for...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, TlbExp.exe and Regasm.exe tools aid us in exporting assembly information to a type library so that non .Net Applications or unmanaged code use this type library information to call...
3
by: Howard Kaikow | last post by:
I was playing with a COM example in an article at the MSFT web site. This resulted in a DLL, call it x.dll, getting registered. When I was done, I tried to unregister the dll using regasm /u...
1
by: trantanm | last post by:
Hello everybody, I am getting in the tough issue in my application. I hope I can get some advice from you. My application CatchAllMessages is mainly written in C++ and is used to catch messages...
2
by: xamman | last post by:
hi there, i am trying to use a .NET assembly from a Cscript.exe .vbs (i.e. from COM) and could not get my .vbs to use my .net dll (gives a 'file not found error') unless i used the /codebase...
3
by: Lou | last post by:
I know I can make an ActiveX dll in .NET and it uses interop. So I end up with 2 files, the .dll and the interop file. I also know I need to use Regasm or something like that to register the .dll...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.