Solved

Data Connection Suddently Fails Between VS 2005 and SQL Server 2000

Posted on 2007-03-22
4
281 Views
Last Modified: 2013-11-27
Visual Studio 2005
(Also tried Visual Studio Express 2005)
Data Connections
Connecting to Windows 2000 Server Running SQL Server 2000

For the past few weeks I've been able to add database connections to my Visual Studio Data Connections and manage databases without any issues. Suddenly when I try to connect from VS 2005 or VS Express 2005 I get the following error:

Unable to Add Data Connection.
Failed to retrieve data for this request.
Could not load file or assembly 'Microsoft.VisualStudio.vspSQLEnum, Version 9.0.242.0, Culture=neutral, PublicKeyToken=8945dc8080cc91' or one of it's dependencies. Strong name validation failed.
(Exception from HRESULT: 0x8013141A)
Strong name validation failed. (Exception from HRESULT: 0x8013141A)

As far as I can remember I haven't installed anything new or changed any configurations. As I said, this problem affects both my installed instance of VS and VS Express, so I'm thinking the problem may be on the server or having something to do with network security.

Anyone know about this one?
0
Comment
Question by:cnxmax
  • 3
4 Comments
 
LVL 11

Expert Comment

by:DeepuAbrahamK
ID: 18785065
This errors is caused by the only partial signed XXXX.dll assembly (see AssemblyInfo.cs). As a developer, you must register this assembly for verification skipping. Open the "Visual Studio .NET Command Prompt" and cd to the installation directory. Now enter e.g.:

    sn -Vr XXXX\bin\debug\XXXX.dll
    sn -Vl

Read this:-http://p2p.wrox.com/topic.asp?TOPIC_ID=9137
0
 

Author Comment

by:cnxmax
ID: 18785216
I tried this solution with the following DLL:

Microsoft.visualstudio.vspsqlenum.dll

It didn't solve the problem, but maybe are other dlls that I have to register. Any ideas about how to figure out what dependencies this dll has?
0
 
LVL 11

Expert Comment

by:DeepuAbrahamK
ID: 18786155
Try putting AssemblyInfo.cs:
Just see this link http://www.codeproject.com/dotnet/AssemblyTest.asp 
Best Regards,
DeepuAbrahamK
0
 
LVL 11

Accepted Solution

by:
DeepuAbrahamK earned 500 total points
ID: 18786170
Use Dependency walker to find the dependend dlls.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 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