зеркало из https://github.com/mono/mail-archives.git
173 строки
12 KiB
HTML
173 строки
12 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
<HTML>
|
||
<HEAD>
|
||
<TITLE> [Mono-list] Re: MySQL Connection from .NET Website (David P. Donahue)
|
||
</TITLE>
|
||
<LINK REL="Index" HREF="index.html" >
|
||
<LINK REL="made" HREF="mailto:joe_audette%40yahoo.com">
|
||
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
||
<LINK REL="Previous" HREF="025570.html">
|
||
<LINK REL="Next" HREF="025575.html">
|
||
</HEAD>
|
||
<BODY BGCOLOR="#ffffff">
|
||
<H1>[Mono-list] Re: MySQL Connection from .NET Website (David P. Donahue)
|
||
</H1>
|
||
<B>Joe Audette
|
||
</B>
|
||
<A HREF="mailto:joe_audette%40yahoo.com"
|
||
TITLE="[Mono-list] Re: MySQL Connection from .NET Website (David P. Donahue)">joe_audette@yahoo.com
|
||
</A><BR>
|
||
<I>Thu, 3 Feb 2005 06:52:22 -0800 (PST)</I>
|
||
<P><UL>
|
||
<LI> Previous message: <A HREF="025570.html">[Mono-list] Re: MySQL Connection from .NET Website (David P. Donahue)
|
||
</A></li>
|
||
<LI> Next message: <A HREF="025575.html">[Mono-list] Re: MySQL Connection from .NET Website (David P.
|
||
Donahue)
|
||
</A></li>
|
||
<LI> <B>Messages sorted by:</B>
|
||
<a href="date.html#25571">[ date ]</a>
|
||
<a href="thread.html#25571">[ thread ]</a>
|
||
<a href="subject.html#25571">[ subject ]</a>
|
||
<a href="author.html#25571">[ author ]</a>
|
||
</LI>
|
||
</UL>
|
||
<HR>
|
||
<!--beginarticle-->
|
||
<PRE>--0-2010782795-1107442342=:20776
|
||
Content-Type: text/plain; charset=us-ascii
|
||
|
||
I have all my data access code in a separate class library project and I have to compile it on the linux machine to get it to work for the same reason.
|
||
|
||
On the windows machine I have the ByteFx source code compiled with Rebuild, but it references sharpziplib which is an already compiled dll that is probably not done with Rebuild.
|
||
|
||
><i>From the Build menu in VS.NET I use Rebuild Solution. I haven't tried this but my theory is if you get the source code to sharpziplib and compile it with Rebuild and make ByteFx reference the newly compile dll so that everything in the chain is compiled with rebuild it should work.
|
||
</I>
|
||
I've been too busy to try this theory myself. since all my data access code is in one class file, I just compile it on linux using monodevelop though you could also use the command line compiler. I don't have the ByteFx dll in my bin folder either since it is already in the GAC after installing it from the optional mono packages.
|
||
|
||
Hope it helps,
|
||
|
||
Joe
|
||
|
||
|
||
"David P. Donahue" <<A HREF="mailto:ddonahue@ccs.neu.edu">ddonahue@ccs.neu.edu</A>> wrote:
|
||
"System.IO.FileNotFoundException: File
|
||
'/home/www/.www/test/bin/ByteFX.MySqlClient.dll' not found."
|
||
|
||
:<i>)
|
||
</I>
|
||
You are correct, I'm compiling with VS .NET 2003. Basically, what I
|
||
have here is a single-page C# site which does nothing more than attempt
|
||
to connect to the database and populate a data list from a very simple
|
||
query, all just for testing the basic functionality.
|
||
|
||
When compiling, I generally just go to the Build menu and choose Build
|
||
Solution. Per your advice, I looked around for other methods in the
|
||
interface. I found the Batch Build option under that same menu to have
|
||
an entry for Debug and an entry for Release. I checked the Release
|
||
entry, clicked the Build button, got the above error when trying to run
|
||
it from Mono. I then returned to Batch Build and clicked the Rebuild
|
||
button and tried again, but the same error above was returned.
|
||
|
||
Am I still doing something wrong? What are the proper steps in the VS
|
||
interface for building this the way I need it? Conversely, you
|
||
mentioned compiling under Linux. I've found information for compiling
|
||
an application with Mono, but what are the proper steps for compiling an
|
||
ASP .NET site with Mono?
|
||
|
||
Thank you for your help.
|
||
|
||
|
||
Regards,
|
||
David P. Donahue
|
||
<A HREF="mailto:ddonahue@ccs.neu.edu">ddonahue@ccs.neu.edu</A>
|
||
|
||
|
||
|
||
Joe Audette wrote:
|
||
><i> I've seen this many times. It says file not found but
|
||
</I>><i> more accurate would be "Couldn't load assembly".
|
||
</I>><i>
|
||
</I>><i> Are you compiling it on windows with vs.net then
|
||
</I>><i> deploying it on linux?
|
||
</I>><i> If so, you will get that error unless you use release
|
||
</I>><i> build and rebuild (not just build). mono doesn't like
|
||
</I>><i> the vs.net incremental builds. Also if there is any
|
||
</I>><i> other dotnet assemblies in the dependency chain for
|
||
</I>><i> the MySQL .NET connector (I'm thinking sharpziplib
|
||
</I>><i> might be one) it also has to be compiled with release
|
||
</I>><i> rebuild.
|
||
</I>><i> Alternatively you can compile on the linux machine and
|
||
</I>><i> it should work.
|
||
</I>><i>
|
||
</I>><i> For the MySQL .NET connector, you might also consider
|
||
</I>><i> installing it in the GAC (Global Assembly Cache). I
|
||
</I>><i> haven't done this yet so I'm not sure how but I am
|
||
</I>><i> sure its possible.
|
||
</I>><i>
|
||
</I>><i> Your other option is don't use the .NET Connector, use
|
||
</I>><i> the previous version under the ByteFx.Data namespace.
|
||
</I>><i> It ships with mono and is already in the GAC if you
|
||
</I>><i> installed it. Thats what I use for mojoPortal running
|
||
</I>><i> MySQL.
|
||
</I>><i>
|
||
</I>><i> Hope that helps,
|
||
</I>><i>
|
||
</I>><i> Joe Audette
|
||
</I>><i>
|
||
</I>><i> <A HREF="http://www.mojoportal.com">http://www.mojoportal.com</A>
|
||
</I>><i> <A HREF="http://www.joeaudette.com">http://www.joeaudette.com</A>
|
||
</I>><i>
|
||
</I>><i> --- "David P. Donahue"
|
||
</I> wrote:
|
||
|
||
|
||
|
||
<A HREF="mailto:joe_audette@yahoo.com">joe_audette@yahoo.com</A>
|
||
<A HREF="http://www.joeaudette.com">http://www.joeaudette.com</A>
|
||
<A HREF="http://www.mojoportal.com">http://www.mojoportal.com</A>
|
||
|
||
---------------------------------
|
||
Do you Yahoo!?
|
||
The all-new My Yahoo! <20> What will yours do?
|
||
--0-2010782795-1107442342=:20776
|
||
Content-Type: text/html; charset=us-ascii
|
||
|
||
<DIV>
|
||
<DIV>I have all my data access code in a separate class library project and I have to compile it on the linux machine to get&nbsp;it to work for the same reason.</DIV>
|
||
<DIV>&nbsp;</DIV>
|
||
<DIV>On the windows machine I have the ByteFx source code compiled with Rebuild, but it references sharpziplib which is an already compiled dll that is probably not done with Rebuild.</DIV>
|
||
<DIV>&nbsp;</DIV>
|
||
<DIV>From the Build menu in VS.NET I use Rebuild Solution. I haven't tried this but my theory is if you get the source code to sharpziplib and compile it with Rebuild and make ByteFx reference the newly compile dll so that everything in the chain is compiled with rebuild it should work. </DIV>
|
||
<DIV>&nbsp;</DIV>
|
||
<DIV>I've been too busy to try this theory myself. since all my data access code is in one class file, I just compile it on linux using monodevelop though you could also use the command line compiler. I don't have the ByteFx dll in my bin folder either since it is already in the GAC after installing it from the optional&nbsp;mono packages.</DIV>
|
||
<DIV>&nbsp;</DIV>
|
||
<DIV>Hope it helps,</DIV>
|
||
<DIV>&nbsp;</DIV>
|
||
<DIV>Joe<BR><BR><BR><B><I>"David P. Donahue" &lt;<A HREF="mailto:ddonahue@ccs.neu.edu">ddonahue@ccs.neu.edu</A>&gt;</I></B> wrote:</DIV>
|
||
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">"System.IO.FileNotFoundException: File <BR>'/home/www/.www/test/bin/ByteFX.MySqlClient.dll' not found."<BR><BR>:)<BR><BR>You are correct, I'm compiling with VS .NET 2003. Basically, what I <BR>have here is a single-page C# site which does nothing more than attempt <BR>to connect to the database and populate a data list from a very simple <BR>query, all just for testing the basic functionality.<BR><BR>When compiling, I generally just go to the Build menu and choose Build <BR>Solution. Per your advice, I looked around for other methods in the <BR>interface. I found the Batch Build option under that same menu to have <BR>an entry for Debug and an entry for Release. I checked the Release <BR>entry, clicked the Build button, got the above error when trying to run <BR>it from Mono. I then returned to Batch Build and clicked the Rebuild <BR>button and tried again, but the same error above
|
||
was returned.<BR><BR>Am I still doing something wrong? What are the proper steps in the VS <BR>interface for building this the way I need it? Conversely, you <BR>mentioned compiling under Linux. I've found information for compiling <BR>an application with Mono, but what are the proper steps for compiling an <BR>ASP .NET site with Mono?<BR><BR>Thank you for your help.<BR><BR><BR>Regards,<BR>David P. Donahue<BR><A HREF="mailto:ddonahue@ccs.neu.edu">ddonahue@ccs.neu.edu</A><BR><BR><BR><BR>Joe Audette wrote:<BR>&gt; I've seen this many times. It says file not found but<BR>&gt; more accurate would be "Couldn't load assembly".<BR>&gt; <BR>&gt; Are you compiling it on windows with vs.net then<BR>&gt; deploying it on linux?<BR>&gt; If so, you will get that error unless you use release<BR>&gt; build and rebuild (not just build). mono doesn't like<BR>&gt; the vs.net incremental builds. Also if there is any<BR>&gt; other dotnet assemblies in the dependency chain for<BR>&gt; the MySQL .NET connector (I'm thinking sharpziplib<BR>&gt;
|
||
might be one) it also has to be compiled with release<BR>&gt; rebuild.<BR>&gt; Alternatively you can compile on the linux machine and<BR>&gt; it should work.<BR>&gt; <BR>&gt; For the MySQL .NET connector, you might also consider<BR>&gt; installing it in the GAC (Global Assembly Cache). I<BR>&gt; haven't done this yet so I'm not sure how but I am<BR>&gt; sure its possible.<BR>&gt; <BR>&gt; Your other option is don't use the .NET Connector, use<BR>&gt; the previous version under the ByteFx.Data namespace.<BR>&gt; It ships with mono and is already in the GAC if you<BR>&gt; installed it. Thats what I use for mojoPortal running<BR>&gt; MySQL.<BR>&gt; <BR>&gt; Hope that helps,<BR>&gt; <BR>&gt; Joe Audette<BR>&gt; <BR>&gt; <A HREF="http://www.mojoportal.com<BR">http://www.mojoportal.com<BR</A>>&gt; <A HREF="http://www.joeaudette.com<BR">http://www.joeaudette.com<BR</A>>&gt; <BR>&gt; --- "David P. Donahue" <<A HREF="mailto:DDONAHUE@CCS.NEU.EDU">DDONAHUE@CCS.NEU.EDU</A>>wrote:<BR></BLOCKQUOTE></DIV><BR><BR><A HREF="mailto:joe_audette@yahoo.com">joe_audette@yahoo.com</A><br><A HREF="http://www.joeaudette.com<br">http://www.joeaudette.com<br</A>><A HREF="http://www.mojoportal.com<p">http://www.mojoportal.com<p</A>>
|
||
<hr size=1>Do you Yahoo!?<br>
|
||
The <a href="<A HREF="http://my.yahoo.com"">http://my.yahoo.com"</A>>all-new My Yahoo!</a> <20> What will yours do?
|
||
--0-2010782795-1107442342=:20776--
|
||
|
||
</PRE>
|
||
<!--endarticle-->
|
||
<HR>
|
||
<P><UL>
|
||
<!--threads-->
|
||
<LI> Previous message: <A HREF="025570.html">[Mono-list] Re: MySQL Connection from .NET Website (David P. Donahue)
|
||
</A></li>
|
||
<LI> Next message: <A HREF="025575.html">[Mono-list] Re: MySQL Connection from .NET Website (David P.
|
||
Donahue)
|
||
</A></li>
|
||
<LI> <B>Messages sorted by:</B>
|
||
<a href="date.html#25571">[ date ]</a>
|
||
<a href="thread.html#25571">[ thread ]</a>
|
||
<a href="subject.html#25571">[ subject ]</a>
|
||
<a href="author.html#25571">[ author ]</a>
|
||
</LI>
|
||
</UL>
|
||
</body></html>
|