473,409 Members | 1,966 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,409 software developers and data experts.

assembly problems when copying a project to another server

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
0 1432

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

Similar topics

3
by: joseph | last post by:
When I perform "Copy Project" in VS.NET 2003 sometimes I got "Unspecified Error" error in a pop-up. My colleague also has this problem. Is it something to do with the network or to do with...
2
by: Aurimas Norkevicius | last post by:
I have two web projects and a class library in the same solution. Both web projects uses class library dll. How to create a web setup project to install class library into client computers gac and...
2
by: Stan | last post by:
My project folder path is c:\Projects\FinWeb. I set up FinWeb virtual folder in IIS and pointed it to that path. I can access the web site via http://localhost/FinWeb. However, when I try to add...
5
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...
0
by: Kirk | last post by:
I have created an application that copies images I select to two printer que's. The images are either AutoCAD plot files (.PLT) or scanned images (.TIF). My method works well for the PLT files on...
0
by: yls177 | last post by:
Hi I have 4 sql server sp 3 on windows 2000 advance server. Currently, I have upgraded 3 of them to sp 4. I am left with the problematic one. I cant upgrade this to sp 4. I waited for more than...
3
by: Bardo | last post by:
Hi all, We are trying to debug an assembly which was built in debug configuration on our build server. The output window of visual studio indicates that no symbols are being loaded for the...
4
by: Geoff Lane | last post by:
Development environment: Windows 2003 Server running IIS6 and the same server running as a domain controller, DNS and DHCP servers. Production environment: Windows 2000 Server SP4 running IIS5...
4
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a vb.net web project that was created in vs2003 and uses crystal reports. I no longer have vs2003 but now have vs2005. I was able to use the wizard and the project builds but when I view...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.