mt404
asked on
Missing Assembly when distributing c# DLL - Deployment Question:
Hi. I'm new to the c# game and was hoping someone might be able to point me to a resource that can help me with this problem.
I've written a c# DLL which includes calls to functions within the Microsoft.SqlServer.Notifi cationServ ices namespace. I include the dll for that namespace as a resource in the c# project. The project compiles and runs fine on my local system. I move the DLL to our testing server and register it using regasm and gacutil. This appears to work, and the DLL is now visable from within OLEVIEW.
Notification Services, which installs the Microsoft.SqlServer.Notifi cationServ ices namespace, had already been installed on the testing server. I've verified this by checking via OLEVIEW. I am also certain that my local version is the same as the version running on the server.
However, when I run an application that makes a call to my newly developed class I am recieving an error stating that, "The assembly Microsoft.SqlServer.Notifi cation Services, or one of it's dependants was not found."
My question is, is there something special I am required to do when registering a dll on another system which relies on other classes to function properly? Is it not simply enough to state that Microsoft Notification Services must be intalled as a prerequsite for my classes to function?
Thanks for any help you might be able to offer. Much apprecieted.
-Matt
I've written a c# DLL which includes calls to functions within the Microsoft.SqlServer.Notifi
Notification Services, which installs the Microsoft.SqlServer.Notifi
However, when I run an application that makes a call to my newly developed class I am recieving an error stating that, "The assembly Microsoft.SqlServer.Notifi
My question is, is there something special I am required to do when registering a dll on another system which relies on other classes to function properly? Is it not simply enough to state that Microsoft Notification Services must be intalled as a prerequsite for my classes to function?
Thanks for any help you might be able to offer. Much apprecieted.
-Matt
IMO you should check out the "or one of it's dependants was not found"
ASKER
Is there an easy way to view all of it's dependants?
ASKER
Is there an easy way to view all of it's dependants?
ASKER
Ended up figuring this one out myself. I'm not sure why I had to do this, maybe someone could shed some light on that, but I had to register the Microsft Notification Services class library in the GAC myself with GACUtil. On my local system I din;t have to do that but I did on the server. Not sure why. Anyway, working now. =)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.