Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Thursday, March 22, 2012

Couldn't connect to MSDE

Hi all,

I'm developing smart device application in VB.NET.

I couldn't make the connection with MSDE.

MSDE is on the same machine where i'm developing my apps. & testing the result with emulator. (NOt using RDA or Replication).Simply using ADO.NET commands to select a table from MSDE engine.

Connection strings that i've tried:

In a stand alone System:

1)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS,1029;" & "Database = TEST;" & "Integrated Security=sspi;"

2)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS,1029;" & "Database = TEST;" & "Integrated Security=sspi;" & "User ID =vino;"& "Password =pavi;"

3)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS;" & "Database = TEST;" & "Integrated Security=sspi;" & "User ID =vino;"& "Password =pavi;"

In a Domain :
Server Machine name: FCC
Instance Name : FCC\MYINS

1)connectionString = "Integrated Security=sspi;User ID=DSTA\vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS";

2)connectionString = "Integrated Security=false;User ID=vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS";

3)connectionString = "Integrated Security=sspi;User ID=DSTA\vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS,1043";

4)connectionString = "Integrated Security=false;User ID=vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\FCC\MYINS,1043";


Errors when using standalone system:

1st connection given me error -> Login failed for user "HOME\Guest. (NOte:ALready i enabled the guest account)
2nd connection ->server not found or access denied.

In a Domain:

server not found or access denied Error.

My Computer Settings:

Computer name :HOME
WorkGroup:MSHOME
Guest account Enabled.
I've two instances in My Enterprise Manager
1) (local)(WIndows NT) - SQL server 2000
2) HOME\MYINS -MSDE instance.

I don't know what to do ? Any other setting are there? I tried in three standalone machines loaded with MSDE. but the same result.

Is there any other setting in Emulator? If so how come SQL server 2000 instance working well?

Please advice me to solve this problem. Nearly 4 days i spent to find the solution.But I couldn't. Kindly suggest me ideas.

Thank You.

Note:
1) Windows apps working well with this connection string.

2) In MSDE , TCP/IP & named Pipes are enabled.
Port NO : 1029 (I've seen it by selecting Properties then N/W Configuration)

3)Connectionis suceessfully established when i used SQL server 2000 instance.
But failed for MSDE.

4)In addition i've configured loopback adapter with valid IP(10.0.0.7).But No improvement with my connection.


1) Is your MSDE instance configured as Windows Authentication or Mixed Auth? Make sure you configure it as Mixed Auth if you want to use user ID/Password.

2) By "Guest account Enabled.", do you mean guest account in SQL Server or Windows? or both?

<<<< 1st connection given me error -> Login failed for user "HOME\Guest. (NOte:ALready i enabled the guest account) >>>>
This error msg means you are able to connect to the server, but failed because of credential. You have not grant access to HOME\Guest in MSDE. (windows authen is used here)

3) Have you checked errorlog or eventlog to get more info?

|||

Hi,

1) I'm using Mixed mode authentication.

2) Actually Guest account in Windows server 2003 was disabled earlier. I Enabled it manually.

3)I didn't chect Eventlog &errorlog. how to check them?

is it like Mycomputer--> Manage >services?

4)I've dirctly connected my PDA with server .it's not pinging.

PDA IP : xxx.xxx.x.101(i've selected VPN connection )

server IP :xxx.xxx.x.100.

In case of emulator, apps running m/c(windows xp) is pinging with server.

But connection not established.

How to make PDA to ping with server? & how to establish a successful connection?

Thanks!!!

Tuesday, March 20, 2012

Couldn't connect to MSDE

Hi all,

I'm developing smart device application in VB.NET.

I couldn't make the connection with MSDE.

MSDE is on the same machine where i'm developing my apps. & testing the result with emulator. (NOt using RDA or Replication).Simply using ADO.NET commands to select a table from MSDE engine.

Connection strings that i've tried:

In a stand alone System:

1)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS,1029;" & "Database = TEST;" & "Integrated Security=sspi;"

2)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS,1029;" & "Database = TEST;" & "Integrated Security=sspi;" & "User ID =vino;"& "Password =pavi;"

3)strconnection = "Server = 10.0.0.7;" & "Data Source =HOME\MYINS;" & "Database = TEST;" & "Integrated Security=sspi;" & "User ID =vino;"& "Password =pavi;"

In a Domain :
Server Machine name: FCC
Instance Name : FCC\MYINS

1)connectionString = "Integrated Security=sspi;User ID=DSTA\vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS";

2)connectionString = "Integrated Security=false;User ID=vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS";

3)connectionString = "Integrated Security=sspi;User ID=DSTA\vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\MYINS,1043";

4)connectionString = "Integrated Security=false;User ID=vino;Password=pavi;Initial Catalog=TEST;Data Source=FCC\FCC\MYINS,1043";


Errors when using standalone system:

1st connection given me error -> Login failed for user "HOME\Guest. (NOte:ALready i enabled the guest account)
2nd connection ->server not found or access denied.

In a Domain:

server not found or access denied Error.

My Computer Settings:

Computer name :HOME
WorkGroup:MSHOME
Guest account Enabled.
I've two instances in My Enterprise Manager
1) (local)(WIndows NT) - SQL server 2000
2) HOME\MYINS -MSDE instance.

I don't know what to do ? Any other setting are there? I tried in three standalone machines loaded with MSDE. but the same result.

Is there any other setting in Emulator? If so how come SQL server 2000 instance working well?

Please advice me to solve this problem. Nearly 4 days i spent to find the solution.But I couldn't. Kindly suggest me ideas.

Thank You.

Note:
1) Windows apps working well with this connection string.

2) In MSDE , TCP/IP & named Pipes are enabled.
Port NO : 1029 (I've seen it by selecting Properties then N/W Configuration)

3)Connectionis suceessfully established when i used SQL server 2000 instance.
But failed for MSDE.

4)In addition i've configured loopback adapter with valid IP(10.0.0.7).But No improvement with my connection.


1) Is your MSDE instance configured as Windows Authentication or Mixed Auth? Make sure you configure it as Mixed Auth if you want to use user ID/Password.

2) By "Guest account Enabled.", do you mean guest account in SQL Server or Windows? or both?

<<<< 1st connection given me error -> Login failed for user "HOME\Guest. (NOte:ALready i enabled the guest account) >>>>
This error msg means you are able to connect to the server, but failed because of credential. You have not grant access to HOME\Guest in MSDE. (windows authen is used here)

3) Have you checked errorlog or eventlog to get more info?

|||

Hi,

1) I'm using Mixed mode authentication.

2) Actually Guest account in Windows server 2003 was disabled earlier. I Enabled it manually.

3)I didn't chect Eventlog &errorlog. how to check them?

is it like Mycomputer--> Manage >services?

4)I've dirctly connected my PDA with server .it's not pinging.

PDA IP : xxx.xxx.x.101(i've selected VPN connection )

server IP :xxx.xxx.x.100.

In case of emulator, apps running m/c(windows xp) is pinging with server.

But connection not established.

How to make PDA to ping with server? & how to establish a successful connection?

Thanks!!!

Sunday, March 11, 2012

Could not locate entry (stored procedure error)

hello everyone,

I am using VS 2005 and sql server 2000. I have a web application which uses a connectionstring with a user id and pwd. Everything is fine, I can execute normal sql statements from the code behind. I cannot execute a stored procedure...I get this error.


Could not locate entry in sysdatabases for database 'exec usp_add2DB (my parameters are included here, deleted for simplicity reasons)

No entry found with that name. Make sure that the name is entered correctly.

I have given execute permission for the user, and the name of the storedproc is correct. the name of the server is also correct...pls pls help me what is wrong here...

Post the code you have and someone here can help.|||

Thank you for the response.here is the code...shortened for simplicity sake.

BtnClick event:

string sql = exec sp_add2DB '" + tShiptoSiteNo.Text +"','" txtShipToSiteName.Text

ClassA a = new ClassA("dev_connectionstr");

if(a.ExecuteSP(sql))

{

Response.Write("executed");

}

I am using enterprise library 2.0: (Everything is set up properly,pretty confident about it ,because many apps i am using it).

In Class A:

public class A :BaseDAO

{

public bool ExecuteSP(string sql)
{
DbCommand dbCommand = SqlDatabase.GetStoredProcCommand(sql);

int a = SqlDatabase.ExecuteNonQuery(dbCommand);
return true;}

In web.config:

<connectionStrings>
<add name ="dev_connectionstr" connectionString ="Data Source=ServerName;Initial Catalog=TestDB;User ID=test_user;Password=xxxx" providerName ="System.Data.SqlClient"/>
</connectionStrings>


Thanks for the help.

|||

Hi sankar,

When executing a stored procedure, you cannot list your parameters after the stored procedure name and execute with EXEC.

You need to create a SqlCommand object, and make CommandText as "sp_add2DB". Then use SqlCommand.Parameters.Add() method to add the parameters one by one. After this is done, open the connection and call SqlCommand.ExecuteNonQuery to execute it.

|||Thanks a lot for the reply Kevin Yu....tht explains why! Thank you very much!.

Could not load type 'System.Data.SqlServerCe.SqlCeDataAdapter' from assembly 'System.Data.Sql

Hi,

I am trying to make a mobile application work, but I get the following error. The operating system on Pocket PC is Microsoft? Windows Mobile? 2003 Second Edition. Any ideas? Thanks in advance.

The followings are the error and my codes:

System.TypeLoadException was unhandled
Message="Could not load type 'System.Data.SqlServerCe.SqlCeDataAdapter' from assembly 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91'."
StackTrace:
at SQLMobile.Form1.Form1_Load()
at System.Windows.Forms.Form.OnLoad()
at System.Windows.Forms.Form._SetVisibleNotify()
at System.Windows.Forms.Control.set_Visible()
at System.Windows.Forms.Application.Run()
at SQLMobile.Form1.Main()

Codes:

Private Sub FillGrid()

Dim filename As New String _

("\Program Files\SQLMobile\sqlmobile.sdf")

Dim conn As New SqlCeConnection("Data Source=" + filename)

Dim selectCmd As SqlCeCommand = conn.CreateCommand()

selectCmd.CommandText = "select Destination from flightdata"

Dim adp As New SqlCeDataAdapter(selectCmd)

Dim ds As New DataSet()

adp.Fill(ds)

DataGrid1.DataSource = ds

End sub

First, make sure the version of the System.Data.SqlServerCe is the correct one for Compact Framework 2.0 (not the CF1 version which only works with SQL CE 2.0)

Next, uninstall then reinstall SQL Mobile CABs on your device.

Finally, don't use the SqlCeDataAdaper to populate that DataSet - it is the absolute slowest option! Use either the SqlCeDataReader or the SqlCeResultSet to do so.

Darren

Could not load file or assembly when vew data source

I use VS2008 to develop a web application.
When I open a local report, it's report datasource does not show.
I click the report->DataSource to see it's datasource, but it appear an
error message:
"Could not load file or assembly ### "
But the file or assembly does exist. How can I solve this problem?Did any one find a solution for this issue, yet?

Could not load file or assembly 'Microsoft.Data.Odbc...

I have developed an application in C#, and it uses both a SQL server database, and as part of its operation it opens up a Foxpro database. I am using Odbc to connect to the fox pro database and everything wortks just fine on my devleopment machine. However when I deploy my application I am getting the following error text when ever I create the form that does the Odbc work.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

I have absolutely no clue why I am getting this error. I have insured that the latest MDAC was installed ( it is XP Pro so no updates there ) I have made sure that I have the latest Fox Pro Odbc driver installed as well and I can create the DSN just fine.

Can anyone point me where to look next ? Im truly stumped here.

Thanks in advance for any and all input!!!

Ya know... Im theliving walking example of how a little information in the wrong hands can do a lot of harm :P

I kept on researching and found that the deployment maching had not had the Odbc.Net package installed on it. Once I did that everything worked fine.

Could not load file or assembly 'AnyDLL' or one of its dependencies. The system can not find t

I have an application broadly deployed

(about 10 computers). As of yesterday, two of these computers are

unable to start the application, and failing with the error below. All

other computers run the application just fine.

System.IO.FileNotFoundException: Could not load file or

assembly 'ADODB, Version=7.0.3300.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot

find the file specified.
File name: 'ADODB, Version=7.0.3300.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.

I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop

Assemblies folder (development computer), but this is version

7.10.3077.0 (file properties version)

I see ADODB.dll as a project reference, but this shows version

7.0.3300.0, and shows the path to the PIA folder. I have no clue why

these are not showing the same version number. Local Copy is false.

Installing MDAC 2.8 on the failing deployment target machines did not help.

Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to

us on other computers. What I found I needed to do was place a copy of

ADODB.dll into the application folder. Even though the very SAME

version of ADODB was ALREADY installed at the deployment computer's

GAC. This should not be necessary, and makes no sense to me. I really

believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error

|||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly 'AnyDLL' or one of its dependencies. The system can not find t

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed

(about 10 computers). As of yesterday, two of these computers are

unable to start the application, and failing with the error below. All

other computers run the application just fine.

System.IO.FileNotFoundException: Could not load file or

assembly 'ADODB, Version=7.0.3300.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot

find the file specified.
File name: 'ADODB, Version=7.0.3300.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.

I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop

Assemblies folder (development computer), but this is version

7.10.3077.0 (file properties version)

I see ADODB.dll as a project reference, but this shows version

7.0.3300.0, and shows the path to the PIA folder. I have no clue why

these are not showing the same version number. Local Copy is false.

Installing MDAC 2.8 on the failing deployment target machines did not help.

Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to

us on other computers. What I found I needed to do was place a copy of

ADODB.dll into the application folder. Even though the very SAME

version of ADODB was ALREADY installed at the deployment computer's

GAC. This should not be necessary, and makes no sense to me. I really

believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error

|||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed

(about 10 computers). As of yesterday, two of these computers are

unable to start the application, and failing with the error below. All

other computers run the application just fine.

System.IO.FileNotFoundException: Could not load file or

assembly 'ADODB, Version=7.0.3300.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot

find the file specified.
File name: 'ADODB, Version=7.0.3300.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.

I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop

Assemblies folder (development computer), but this is version

7.10.3077.0 (file properties version)

I see ADODB.dll as a project reference, but this shows version

7.0.3300.0, and shows the path to the PIA folder. I have no clue why

these are not showing the same version number. Local Copy is false.

Installing MDAC 2.8 on the failing deployment target machines did not help.

Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to

us on other computers. What I found I needed to do was place a copy of

ADODB.dll into the application folder. Even though the very SAME

version of ADODB was ALREADY installed at the deployment computer's

GAC. This should not be necessary, and makes no sense to me. I really

believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error

|||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed (about 10 computers). As of yesterday, two of these computers are unable to start the application, and failing with the error below. All other computers run the application just fine.
System.IO.FileNotFoundException: Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.
I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop Assemblies folder (development computer), but this is version 7.10.3077.0 (file properties version)
I see ADODB.dll as a project reference, but this shows version 7.0.3300.0, and shows the path to the PIA folder. I have no clue why these are not showing the same version number. Local Copy is false.
Installing MDAC 2.8 on the failing deployment target machines did not help.
Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to us on other computers. What I found I needed to do was place a copy of ADODB.dll into the application folder. Even though the very SAME version of ADODB was ALREADY installed at the deployment computer's GAC. This should not be necessary, and makes no sense to me. I really believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error |||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Could not load file or assembly ADODB, Version=7.0.3300.0

I have an application broadly deployed

(about 10 computers). As of yesterday, two of these computers are

unable to start the application, and failing with the error below. All

other computers run the application just fine.

System.IO.FileNotFoundException: Could not load file or

assembly 'ADODB, Version=7.0.3300.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot

find the file specified.
File name: 'ADODB, Version=7.0.3300.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked and ADODB.dll version 7.0.3300.0 is in the GAC in the deployment target machines.

I find ADODB.dll in my C:\Program Files\Microsoft.NET\Primary Interop

Assemblies folder (development computer), but this is version

7.10.3077.0 (file properties version)

I see ADODB.dll as a project reference, but this shows version

7.0.3300.0, and shows the path to the PIA folder. I have no clue why

these are not showing the same version number. Local Copy is false.

Installing MDAC 2.8 on the failing deployment target machines did not help.

Any clues or ideas or things to try?

sounds like a versioning issue ...try installing the upgraded version to the non-qworking machines..

HTH

|||

Lee:
I am having the same problem. I didn't understand HTH's reply about "installing the new version". Do you have any idea what version he was talking about?.

More importantly, wWere you ever able to resolve the problem? Thanks!

Jim

|||

HTH:

I am having the same problem but don't understand your response. What product "version" are you referring to when you say it is a "versioning problem"?

Thanks!

Jim

|||Not a clue. It was not helpful to me. This has happened subsequently to

us on other computers. What I found I needed to do was place a copy of

ADODB.dll into the application folder. Even though the very SAME

version of ADODB was ALREADY installed at the deployment computer's

GAC. This should not be necessary, and makes no sense to me. I really

believe there is some other problem here.|||

Hey Lee (or anyone),

I have the same exact issue. Has anyone found a solution ?

Thanks !
Dwain

|||

I just had this problem today and I found a solution to it:

if you look in c:\program files and cannot find the folder Microsoft.NET

then that is the first cause.

or if you dont see the file adodb.dll in

c:\program files\Microsoft.NET\Primary Interop Assemblies

Solution:

go to a machine that has this folder and copy it (or the adodb.dll file if you have the folder) to the machines that cannot find the adodb file

Go into this folder and into the primary interop folder

copy this folders contents to the GAC (c:\windows\assembly)

your app should find the adodb.dll now

Hope this helps

Jason

|||

I have a web application that is reporting the same error. It runs fine on my developement box but when I try to publish the site through the Publish function in VS 2005, I get the same error on the server. My web server is a Win2K server. I did what Jason said in his post and it didn't correct the error. Any ideas?

Wes

|||hi, I made as Jason K said and it works for me, be sure after load into de gac every dll , to restart your iis, and read carefully the new message error (if there is something else), it could be a new one error

|||I have a cuestion...

how assembly the ADODB version 7.0.3300.0 in PC?|||

Works great. Thanks.

My production Windows XP Pro box did not have "C:\Program Files\Microsoft.Net," so I copied this folder from my development Win2000 Pro box onto it.

My production box login account did not have Administrator previledges and/or could not copy to "C:\Windows\Assembly" so I found the GACUtil.Exe on this box, which happened to be in "C:\Windows\Microsoft.NET\Framework\v1.1.4322," and relied on my DOS days to invoke this utility against each of the .dlls from the command prompt; registering them to the GAC.

The location of the GACUtil.Exe was not in my search path on this Windows XP box so the command was a bit weird looking, as it included the location of the GACUtil.Exe:

"C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.Exe" /i adodb.dll

I actually registered all the .dlls in one command as follows:

For %J In (*.dll) do "C:\Windows\Microsoft.NET\Framework\v1.1.4322\GACUtil.exe" /i %J

Note: These commands were invoked at the Command prompt from within the "C:\Program Files\Microsoft.NET\Primary Interop Assemblies" directory; Alternatively I could have prefix the .dll names with their path (i.e. C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll in the case of adodb.dll).

GD.

|||

salam all,

this is how i solved the issue:

I copied:

c:\WINDOWS\assembly\GAC\ADODB\ from the development machine to the other machines ( same location ).

Hope this helps.

|||

Hi,

I am using VS 2005 and SQL server2005. When I run application it build successfully but in place of login page following exception occured

"System.IO.FileNotFoundException: Could not load file or assembly 'AnyDLL' or one of its dependencies. The system cannot find the path specified."

Pre-bind state information ===
LOG: User = CLIENT07\ASPNET
LOG: DisplayName = AnyDLL
(Partial)
LOG: Appbase = file:///C:/Develop
LOG: Initial PrivatePath = C:\Develop\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/Interop.ADSSECURITYLib.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/develop/8638167d/1d65244e/AnyDLL/Any.DLL

LOG: Attempting download of new URL file:///C:/Develop/bin/Any.DLL

LOG: Using application configuration file: C:\Develop\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated

Please help me regarding this.

Thanks

Mahen

|||

I am facing the same problem. However I solved it differently. I just removed the following line from the web.config:

<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

However, now I have to remember removing that line everytime I provide the build. Because the VS 2005 adds that line back in and I dont know how to tell VS not to add that thing in.|||The Safest way would be to Find the "adodb.dll" ver 7.0.3300.0 and paste it to your Project's BIN folder.

Thursday, March 8, 2012

Could not find stored procedure GetActivePoll?

can anyone please help me with my poll application? whenever i run it, i will comes out with this error "Could not find stored procedure 'GetActivePoll'". i've got stored procedure in my database with the name GetActivePoll', how come it cannot find the stored procedured? below are some images and codes i've attached with.

1<%@. Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="poll.aspx.vb"Inherits="Polls_poll" title="Fanzine if Liverpool FC" %>2<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">3<div style="text-align: left">4 <span style="font-size: 30px; color: #3333ff; font-family: Verdana"><strong><span5 style="color: #000000">Please take a vote...</span><br />6 </strong></span>7 </div>8 <div style="text-align: left">9 <br />10 <table width="100%" align="center">11 <tr>12 <td style="width: 100px; border-top: thin solid; height: 20px;">13 <asp:Label ID="lblPollQuestion" runat="server" Font-Bold="True" Font-Names="Verdana"14 Font-Size="10pt" Text="Poll Question" Width="500px"></asp:Label></td>15 </tr>16 <tr>17 <td style="width: 100px">18 <asp:RadioButtonList ID="rdoPollOptionList" runat="server" Font-Names="Verdana" Font-Size="9pt" Width="500px" DataSourceID="SqlDataSource1" DataTextField="PK_PollId" DataValueField="PK_PollId">19 </asp:RadioButtonList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Poll.mdf;Integrated Security=True;User Instance=True"20 ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Polls]"></asp:SqlDataSource>21 </td>22 </tr>23 <tr>24 <td style="width: 100px; text-align: left">25 <asp:Button ID="btnVote" runat="server" Text="Vote" Width="71px" BackColor="Silver" BorderColor="Silver" BorderStyle="Solid" Font-Bold="True" ForeColor="White" /><br />26 <br />27 <asp:Label ID="lblError" runat="server" Font-Names="Verdana" Font-Size="Smaller"28 ForeColor="Red" Text="You cannot vote more than once..." Visible="False" Width="500px"></asp:Label></td>29 </tr>30 </table>31 </div>32</asp:Content>33
1Imports System.Data2Imports System.Data.SqlClient3PartialClass Polls_poll4Inherits System.Web.UI.Page5Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Me.Load6If Not IsPostBackThen7 DisplayPoll()8End If9 End Sub10 Private Sub DisplayPoll()11Try12 Dim dsAs DataSet = getActivePoll()1314 lblPollQuestion.Text = ds.Tables(0).Rows(0)("Question")1516Dim iAs Integer = 017For Each drAs DataRowIn ds.Tables(1).Rows18 rdoPollOptionList.Items.Add(dr("Answer"))19 rdoPollOptionList.Items(i).Value = dr("PK_OptionId")20 rdoPollOptionList.SelectedIndex = 02122 i = i + 123Next24 Catch exAs Exception25Throw ex26End Try27 End Sub28 Private Function getActivePoll()As DataSet29Dim strConnStringAs String = System.Configuration.ConfigurationManager.ConnectionStrings.Item("ConnectionString").ToString()30Dim sqlConnAs New SqlConnection(strConnString)3132 sqlConn.Open()33Dim sqlCmdAs New SqlCommand()3435 sqlCmd.CommandText ="GetActivePoll"36 sqlCmd.CommandType = Data.CommandType.StoredProcedure37 sqlCmd.Connection = sqlConn3839Dim dsAs New DataSet40Dim daAs New SqlDataAdapter(sqlCmd)4142 da.Fill(ds)4344 sqlConn.Close()4546Return ds47End Function48 Protected Sub btnVote_Click(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles btnVote.Click49If Response.Cookies("Voted")Is Nothing Then50 Response.Cookies("Voted").Value ="Voted"51 Response.Cookies("Voted").Expires = DateTime.Now.AddDays(1)5253 lblError.Visible =False5455 RecordVote()56Else57 lblError.Visible =True58 End If59 End Sub60 Private Sub RecordVote()61Dim strConnStringAs String = System.Configuration.ConfigurationManager.ConnectionStrings.Item("ConnectionString").ToString()62Dim sqlConnAs New SqlConnection(strConnString)6364 sqlConn.Open()65Dim sqlCmdAs New SqlCommand()6667 sqlCmd.CommandText ="IncrementVote"68 sqlCmd.CommandType = Data.CommandType.StoredProcedure69 sqlCmd.Connection = sqlConn7071Dim sqlParamQuestionAs New SqlParameter("@.i_OptionId", Data.SqlDbType.Int)7273 sqlParamQuestion.Value = rdoPollOptionList.SelectedValue7475 sqlCmd.Parameters.Add(sqlParamQuestion)7677 sqlCmd.ExecuteNonQuery()7879 sqlConn.Close()80End Sub81End Class
error found


If you change line 35 to

 sqlCmd.CommandText ="[GetActivePoll]"

does it work?

|||

Are you looking in the right DB? Its a good idea to drop and recreate the proc and qualify with the owner as

CREATE PROCdbo.GetAcviePoll

Lot of times when developoers create the objects, if they are not created with the qualifier they are created under the developers credentials.