473,232 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,232 software developers and data experts.

assembly problems when copying a project to another server (rp)

TB
Hi All:
This news group is proving to be great help on my path towards
mastering ASP.NET thanks to all of you helpful souls out there. I am
looking forward to the day when I can contribute with a few ounces of
hard-won knowledge as well.

Meanwhile I have this (hopefully small) problem.

On my local computer where I am developing a web application, I have
installed the MySQL Connector/.NET version 1.0.6 which works perfectly
with VS.NET. I use it to access a MySQL database which is located on a
remote server where the finished web application eventually will be
deployed. On my local computer everything works fine: connections,
command objects, datareaders, etc. However, when I copy the project to
the web server, everything related to the connector fails.

Excepts of the failure messages:
File or assembly name MySql.Data, or one of its dependencies, was not
found.
Exception Details: System.IO.FileNotFoundException: File or assembly
name MySql.Data, or one of its dependencies, was not found.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: MySql.Data, Version=1.0.6.15336,
Culture=neutral, PublicKeyToken=c5687fc88969c44d
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data/MySql.Data.DLL.
LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data.DLL.

LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data/MySql.*Data.DLL.

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data/MySql.Data.EXE.
LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data.EXE.

LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data/MySql.*Data.EXE.

The web hosting provider have told me that the reason for this error is

that another version of the MySQL Connector/.NET is installed on the
web server, namely version 1.0.4.20163. I was told to add the following

to my web.config file:

<compilation defaultLanguage="vb" debug="true">
<assemblies>
<add assembly="MySql.Data, Version=1.0.4.20163, Culture=neutral,
PublicKeyToken=c5687fc88969c44d" />
</assemblies>
</compilation>

I have done that but the error persists, i.e. the error messages still
refer to a version 1.0.6 of the MySQL connector. Is there somewhere
else (code, assemblies) where VS.NET stores the version number of the
connector installed on my local machine? Do I really have to have the
same connector versions installed on both machines to ensure that the
builds can be correctly executed both locally and on the web server? Do

I really have to have two versions of web.config (one local and one for

the web server)?

Then I discovered another matter which I don't know whether is
unrelated to the afore-mentioned issue:

At least for one file (I have not tried with more), the above problem
does NOT occur and is NOT dependent of web.config entries if I write
rewrite it an aspx file that does not depend on a code-behind file, i.e

all the logic is stored in a <script></script> section in the beginning

of the aspx.

Any suggestions will be higly appreciated.

Thanks in advance

TB

Nov 19 '05 #1
5 2321
Hi,

The error you get is simply saying that you are missing one of the dlls that
your project should have had in the bin folder. How do you deploy your
application to your provider's server? (Using the "Copy Project" icon from
Solution Explorer in VS.Net should have taken care of all of your assemblies)
If you are copying them using ftp copy by yourself, check for the compiled
assemblies in the folder named bin under your application's folder against
the ones in the bin folder on the target server. Are they the same?

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"TB" wrote:
Hi All:
This news group is proving to be great help on my path towards
mastering ASP.NET thanks to all of you helpful souls out there. I am
looking forward to the day when I can contribute with a few ounces of
hard-won knowledge as well.

Meanwhile I have this (hopefully small) problem.

On my local computer where I am developing a web application, I have
installed the MySQL Connector/.NET version 1.0.6 which works perfectly
with VS.NET. I use it to access a MySQL database which is located on a
remote server where the finished web application eventually will be
deployed. On my local computer everything works fine: connections,
command objects, datareaders, etc. However, when I copy the project to
the web server, everything related to the connector fails.

Excepts of the failure messages:
File or assembly name MySql.Data, or one of its dependencies, was not
found.
Exception Details: System.IO.FileNotFoundException: File or assembly
name MySql.Data, or one of its dependencies, was not found.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: MySql.Data, Version=1.0.6.15336,
Culture=neutral, PublicKeyToken=c5687fc88969c44d
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data/MySql.Data.DLL.
LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data.DLL.

LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data/MySql.*Data.DLL.

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/qms/025a0e72/2c822358/MySql.Data/MySql.Data.EXE.
LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data.EXE.

LOG: Attempting download of new URL
file:///C:/Webspace/hostings/myweb2/myweb.com/www/qms/bin/MySql.Data/MySql.*Data.EXE.

The web hosting provider have told me that the reason for this error is

that another version of the MySQL Connector/.NET is installed on the
web server, namely version 1.0.4.20163. I was told to add the following

to my web.config file:

<compilation defaultLanguage="vb" debug="true">
<assemblies>
<add assembly="MySql.Data, Version=1.0.4.20163, Culture=neutral,
PublicKeyToken=c5687fc88969c44d" />
</assemblies>
</compilation>

I have done that but the error persists, i.e. the error messages still
refer to a version 1.0.6 of the MySQL connector. Is there somewhere
else (code, assemblies) where VS.NET stores the version number of the
connector installed on my local machine? Do I really have to have the
same connector versions installed on both machines to ensure that the
builds can be correctly executed both locally and on the web server? Do

I really have to have two versions of web.config (one local and one for

the web server)?

Then I discovered another matter which I don't know whether is
unrelated to the afore-mentioned issue:

At least for one file (I have not tried with more), the above problem
does NOT occur and is NOT dependent of web.config entries if I write
rewrite it an aspx file that does not depend on a code-behind file, i.e

all the logic is stored in a <script></script> section in the beginning

of the aspx.

Any suggestions will be higly appreciated.

Thanks in advance

TB

Nov 19 '05 #2
TB
In my local \bin folder there are only two files:

myproject.dll
myproject.pdb

The corresponding /bin directory on my web server has the same content.
Shouldn't there be more content in those directories?

Locally everything works fine; it's on the web server that anything
related to the connector fails.

TB

Nov 19 '05 #3
Hi Trym,

VS.Net exposes an attribute named "Copy Local" for references to assemblies
used within the project.
http://msdn.microsoft.com/library/de...ecopylocal.asp

When you mark MySql.Data from references as CopyLocal you would be able to
see it in the bin folder. Otherwise, during deployment the dll would not be
copied to the target server.
http://msdn.microsoft.com/library/de...ecopylocal.asp

There is also a similar thread on forums.mysql.com that is similar to this
problem: http://forums.mysql.com/read.php?38,...2144#msg-32144

If you are going to use mySql you might bookmark a link to that forum.
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"TB" wrote:
In my local \bin folder there are only two files:

myproject.dll
myproject.pdb

The corresponding /bin directory on my web server has the same content.
Shouldn't there be more content in those directories?

Locally everything works fine; it's on the web server that anything
related to the connector fails.

TB

Nov 19 '05 #4
TB
Hey, it worked! Thanks a bundle. You are quickly becoming my public
hero number one, answering all my (probably rather stupid) questions in
this news group.

If you ever get to Spain (where I live), I'll invite you for a beer.

TB

Nov 19 '05 #5

"TB" <tb********************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hey, it worked! Thanks a bundle. You are quickly becoming my public
hero number one, answering all my (probably rather stupid) questions in
this news group.

If you ever get to Spain (where I live), I'll invite you for a beer.

TB


For a Spanish beer, I will gladly take the invitation. :-)
Glad I have helped.

Kindest Regards,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Julie | last post by:
I'm currently working in a mixed mode project where the exe is C#, there is a managed C++ (DLL) assembly, that in part, includes some calls into a native (unmamanged) DLL. I can build/link/run...
0
by: TB | last post by:
Hi All: This news group is proving to be great help on my path towards mastering ASP.NET thanks to all of you helpful souls out there. I am looking forward to the day when I can contribute with...
14
by: Nak | last post by:
Hi there, Does anyone know how I would get the value of the assembly GUID in code from within the same application? Thanks in advance. Nick. --...
11
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project or the assembly. Does it make a difference which...
2
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
2
by: Terry | last post by:
I am finally able to call my .Net object from a VB6 project (see posting 'Calling VB.Net classes from VB6', thanks to the reference Tony gave me to:...
2
by: rachana | last post by:
Hi, I am trying to deploy a asp.net website developed using Visual Studio 2005 on server. Application works fine on development machine, but when trying to run on server I get following error...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.