Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Missing Assembly when distributing c# DLL - Deployment Question:

Posted on 2003-03-10
Medium Priority
Last Modified: 2010-08-05
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.NotificationServices 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.NotificationServices 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.Notification 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.  

Question by:mt404
  • 3

Expert Comment

ID: 8103726
IMO you should check out the "or one of it's dependants was not found"

Author Comment

ID: 8103786
Is there an easy way to view all of it's dependants?

Author Comment

ID: 8103818
Is there an easy way to view all of it's dependants?

Author Comment

ID: 8123375
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.  =)

Accepted Solution

modulo earned 0 total points
ID: 11805721
PAQed, with points refunded (65)

Community Support Moderator

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question