datareader.getfieldtype

Discussion in 'ASP.NET / ASP.NET Core' started by aaron.gundel, May 21, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Another note on this issue really quick....column 5 is one of the new sql server 2008 data types (I have hosting with sql server 2008)....geography. That's the root cause of the issue. Whenever I try to add the assembly reference though, I get issues (won't load). I'm assuming there's no way for applications to access assemblies in the GAC....is this accurate? Is there a workaround for all this? Thanks in advance....
     
  2. Whats the assembly you are referencing. If it is in the Server GAC you can access it unless you are overriding it with your applications configuration file to look to somewhere else.
     
  3. I am trying to access Microsoft.SqlServer.Types. I put the reference in my web.config this morning, but got a "failed to load assembly" error when I loaded up my website, which is why I've been somewhat confused. Here's a forum post that talks about the issue a bit... http://social.msdn.microsoft.com/forums/en-US/sqlnetfx/thread/eae17407-2910-455c-92eb-8c28e5dabbc5 I didn't add a reference to the assembly's physical path directly, just to the gac assembly.

    Admittedly, I'm still somewhat confused as to why this is happening (It works fine on my testing box (vista, vs 08, ss 08) but when I upload it I get these errors. Thanks for the post Raymond....
     
  4. Any comments on this particular assembly and using geospatial data here? I really need to get this site up today.... thanks....

    Aaron
     
  5. Have you tried uploading the 'Microsoft.SqlServer.Types.dll' in your applications bin directory. You will also need to setup your web.config file to reference this component to your applications bin directory.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page