missing assembly reference ?

Last post 06-12-2009 4:42 PM by brgdotnet. 5 replies.

Sort Posts:

  • missing assembly reference ?

    04-19-2006, 5:06 PM
    • Participant
      1,041 point Participant
    • brgdotnet
    • Member since 03-10-2004, 6:59 AM
    • Posts 619

    When I compile my C# code, the compiler flags the following using statement with a compiler error:

    using DTS = Microsoft.SqlServer.DTSPkg80;

     

    This is the compiler error message I get:

    The type or namespace name 'SqlServer' does not exist in the class or namespace 'Microsoft' (are you missing an assembly reference?)


    Does anyone have an idea what the problem might be here?

  • Re: missing assembly reference ?

    04-19-2006, 5:30 PM
    • All-Star
      30,697 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Did you add a reference to Microsoft.SqlServer to your project? If not, right-click the project in Solution Explorer and select Add Reference. Find Microsoft.SqlServer.dll, select it, and click Add. This is off the top of my head, so it might very a little.

    HTH,
    Ryan

    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: missing assembly reference ?

    04-20-2006, 6:06 PM
    • Participant
      1,041 point Participant
    • brgdotnet
    • Member since 03-10-2004, 6:59 AM
    • Posts 619

    Hi Ryan,

    No such DLL exists on my hard drive "microsoft.sqlserver.dll"

     

    I have SQL server 2000 and 2005 on my PC, but no such dll named    microsoft.sqlserver.dll

    Are you sure this is the correct dll to reference?

    Bill

     

  • Re: missing assembly reference ?

    04-20-2006, 10:29 PM
    • All-Star
      30,697 point All-Star
    • StrongTypes
    • Member since 12-13-2005, 4:21 PM
    • California
    • Posts 6,007
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Sorry about that. I believe that the actual file you are looking for is C:\Program Files\Microsoft SQL Server\80\Tools\Binn\DTSPkg.dll.

    Let me know if that helps.

    Ryan

    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: missing assembly reference ?

    06-11-2009, 9:57 AM
    • Member
      38 point Member
    • mahichandu
    • Member since 05-21-2009, 7:10 PM
    • Posts 137

     

    hey am also facing same pblm...i couldn't find in my project also...i followed same steps...adding system.web.dll..

    i can't see tht assembly..why???

  • Re: missing assembly reference ?

    06-12-2009, 4:42 PM
    • Participant
      1,041 point Participant
    • brgdotnet
    • Member since 03-10-2004, 6:59 AM
    • Posts 619

    Hi, wish I could help you. It was a long time ago that I asked that problem, and I don't know how I got it resolved?

Page 1 of 1 (6 items)