Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in uploading a website containing SMO Reference.

Problem in uploading a website containing SMO Reference.

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kandalu
    wrote on last edited by
    #1

    Hi all, If I upload a file containing SMO Reference the following error comes: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. The references I added are Microsoft.sqlserver.connectioninfo Microsoft.sqlserver.smo Microsoft.sqlserver.smoenum Microsoft.sqlserver.sqlenum Is I have to explicitly place the SMO dll in the bin folder of the project? Please help me to rectify this problem. Thanks.

    S 1 Reply Last reply
    0
    • K kandalu

      Hi all, If I upload a file containing SMO Reference the following error comes: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. The references I added are Microsoft.sqlserver.connectioninfo Microsoft.sqlserver.smo Microsoft.sqlserver.smoenum Microsoft.sqlserver.sqlenum Is I have to explicitly place the SMO dll in the bin folder of the project? Please help me to rectify this problem. Thanks.

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, seems like you have to place them explicitly in the bin folder of the project (after upload). Are you sure that the Microsoft SQL Managment Objects are installed at the target server? Regards Sebastian

      K 1 Reply Last reply
      0
      • S SeMartens

        Hi, seems like you have to place them explicitly in the bin folder of the project (after upload). Are you sure that the Microsoft SQL Managment Objects are installed at the target server? Regards Sebastian

        K Offline
        K Offline
        kandalu
        wrote on last edited by
        #3

        Hi, Thanks for your quick reply. I don't know whether the target server contains SMO. If we install SMO dll in the target server, will it work well?. If we do like that there is no need to add the dll in the project. Am I right?

        S 1 Reply Last reply
        0
        • K kandalu

          Hi, Thanks for your quick reply. I don't know whether the target server contains SMO. If we install SMO dll in the target server, will it work well?. If we do like that there is no need to add the dll in the project. Am I right?

          S Offline
          S Offline
          SeMartens
          wrote on last edited by
          #4

          hmmm, if you install the smo dll in the target server (for example registering in the GAC) you don't have to copy the dll to the bin folder (think this only works if it is the correct assembly version)... I think the best way is to install the SQL Server Managament (that's where the dll is coming from, am I right?). This will propably solve your problem (but you have the same problem for the next server...)

          K 1 Reply Last reply
          0
          • S SeMartens

            hmmm, if you install the smo dll in the target server (for example registering in the GAC) you don't have to copy the dll to the bin folder (think this only works if it is the correct assembly version)... I think the best way is to install the SQL Server Managament (that's where the dll is coming from, am I right?). This will propably solve your problem (but you have the same problem for the next server...)

            K Offline
            K Offline
            kandalu
            wrote on last edited by
            #5

            Hi, I will try to install SQL Server Management in the target server. Thanks for your reply. Thanks.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups