SqlServerSpatial.dll

Discussion in 'ASP.NET / ASP.NET Core' started by LVG, May 28, 2009.

  1. LVG

    LVG

    Does anyone know how to solve:
    System.DllNotFoundException: Unable to load 'SqlServerSpatial.dll'
     
  2. Hi,
    There are some Msft Connect issues posted for this but...
    Are you writing code that is trying to make use of CLR in SQL Server?
    Salute,
    Mark
     
  3. SqlServer Spatial CLR types required

    Hi,

    I need to use the new Sql Server 2008 spatial CLR types (Geography and Geometry) for my app. I'm reading and writing location data to the database, but I'm also getting the "Unable to load DLL 'SqlServerSpatial.dll'" error message. I can't simply register the DLL with my other assemblies.

    The blog here:
    http://blogs.msdn.com/oliviermeyer/...e-new-sql-server-spatial-types-libraries.aspx

    Suggests that VC++ 2008 runtime libraries need to be installed on the servers. Has anyone got a work around for this, or can they be installed? This is a show stopper for me.
     
  4. mjp

    mjp

  5. No, I've already done this. It still gives me the error that "Unable to load DLL 'SqlServerSpatial.dll'"
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    pls post the URL that's producing the error.
     
  7. Wow - sorry about the massive delay, I've had to work on something else. The specific page where I get the error is at http://datilo.net/loka/website/AdvertView.aspx, but it is on a form post back. This website is just a prototype so feel free to login (OpenID etc) and add an advert. When you've created an advert (after first creating a new campaign), you'll see the error. SqlServerSpatial.dll and Microsoft.SqlServer.Types.dll are in the folder /Loka/Website/Bin.
     
  8. dmitri

    dmitri DiscountASP.NET Staff

    You cannot use .NET CLR spatial datatypes because CLR is disabled on our production SQL Servers for the security reason. You will need to use T-SQL code to perform spatial operations on our SQL Server.
     
  9. OK - thanks. I can't use them on Azure either. I'd hoped that I would on discountasp.net. Never mind, I'll do it T-SQL & my own code on Azure.

    Thanks.
     

Share This Page