Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Error Accessing SQL Server from ASP.Net

Thread Tools

Error Accessing SQL Server from ASP.Net

srvking srvking is offline
Junior Member
Join Date: May 2006
Posts: 2
The following error is encountered while trying to Host the site from IIS ..
" The Assembly Version ([ASSEMBLY VERSION]) does not match the Database Version ([DATABASE VERSION]).
"Error: Could not connect to the database specified in the connection string for SqlDataProvider. "

We have 2 different machines over which we have 2 different SQL Server.
In Web.Config, if we give server=server1 it works well and there is no problem at all...
if we give server=server2, and execute http://localhost/application, the above mentioned error occurs..

Can anyone throw some light on this regard.
Its urgent.
Reply With Quote
unholy unholy is offline
Senior Member
Join Date: Jun 2005
Location: Australia
Posts: 3,928
dont look at me for an answer i never liked .NET.

Though i could direct u to saying theres something wrong with ur 2nd SQL Server? or are they direct Images of each other?
Reply With Quote
srvking srvking is offline
Junior Member
Join Date: May 2006
Posts: 2
I wud really appreciate if u give me some reference even though u dont like .Net....

Actually server1 and server2 have been installed from the same CD to different machines.. so they are virtually the same.. may be there cud have been some mistake while configurnig server2, but what that i am not sure...
Reply With Quote
fred5152 fred5152 is offline
Junior Member
Join Date: Dec 2007
Posts: 14
from which server are you accessing the database?
can you post your connection string?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote ASP .Net 0 05-03-2008 12:43 PM
ASPNET error while accessing sql server report manager ASP .Net 0 09-29-2006 04:12 PM
Do the Self-Paced Training Kits: Microsoft SQL Server 2000 include Eval copy of SQL Server? Brian Whiting Microsoft Certification 2 12-29-2005 04:24 AM
Error accessing SQL Server: ASP .Net 2 06-09-2005 01:15 AM
Can't connect to SQL Server, using Windows Authentication users of SQL server? help =?Utf-8?B?UmV6YQ==?= ASP .Net 3 06-07-2004 06:42 PM