mail-archives/mono-list/2005-February/025780.html

98 строки
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] different behavior between .NET and Mono
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:george%40idealso.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025815.html">
<LINK REL="Next" HREF="025787.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] different behavior between .NET and Mono
</H1>
<B>Michael George
</B>
<A HREF="mailto:george%40idealso.com"
TITLE="[Mono-list] different behavior between .NET and Mono">george@idealso.com
</A><BR>
<I>Wed, 16 Feb 2005 15:06:43 -0500 (EST)</I>
<P><UL>
<LI> Previous message: <A HREF="025815.html">[Mono-list] different behavior between .NET and Mono
</A></li>
<LI> Next message: <A HREF="025787.html">[Mono-list] Memory usage of mod_mono
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25780">[ date ]</a>
<a href="thread.html#25780">[ thread ]</a>
<a href="subject.html#25780">[ subject ]</a>
<a href="author.html#25780">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Wed, February 16, 2005 2:18 pm, Michael George said:
&gt;<i> I am completely new to Mono. I'm trying to help someone migrate from a
</I>&gt;<i> Microsoft/IIS/.NET system to a Linux/Apache/Mono system.
</I>&gt;<i>
</I>&gt;<i> We have both a Microsoft 2003 Server system and a SuSE Linux system, so we
</I>&gt;<i> can run the app in .NET while we (try to) incrementally migrate. First
</I>&gt;<i> step is to plop the same code from .NET into Mono while still connecting
</I>&gt;<i> to the MS-SQL server on teh .NET system.
</I>&gt;<i>
</I>&gt;<i> Should be simple enough, I though, just move the code, change the
</I>&gt;<i> connection string and &quot;voila!&quot;, but no such luck.
</I>&gt;<i>
</I>&gt;<i> What I am running into and what I'm hoping for advice about, is that
</I>&gt;<i> watching the MS-SQL server logging output, it appears that the .NET client
</I>&gt;<i> initiates communications differently than the Mono client.
</I>&gt;<i>
</I>&gt;<i> Differences:
</I>&gt;<i> .NET is using RPC, Mono is using SQL.
</I>&gt;<i> The first query issued by .NET appears to be a connection to the database,
</I>&gt;<i> as expected. The first query issued by Mono is some strange call to a
</I>&gt;<i> stored procedure that I cannot find anywhere in the system.
</I>&gt;<i>
</I>&gt;<i> I thought maybe I need ADO.NET installed (not in the mono RPMs), but as I
</I>&gt;<i> understand, ADO is a db abstraction layer. The authors of the app we want
</I>&gt;<i> to migrade just used SqlClient wherever.
</I>&gt;<i>
</I>&gt;<i> Anyone have any advice for me?
</I>
I was wrong, the working .NET app does issue a similar command...
.NET:
RPC: exec sp_procedure_params_rowset @procedure_name =
N'SelectReferenceTables'
Mono:
SQL:sp_procedure_params_rowset @P1=N'dbo.SelectReferenceTables'
The differences being the RPC vs. SQL, @procedure_name vs. @P1, the spaces
around &quot;=&quot;, and the &quot;dbo.&quot;.
Does that indicate a bug? Or, more likely, a configuration issue?
-Michael George
Ideal Solution, LLC
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025815.html">[Mono-list] different behavior between .NET and Mono
</A></li>
<LI> Next message: <A HREF="025787.html">[Mono-list] Memory usage of mod_mono
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25780">[ date ]</a>
<a href="thread.html#25780">[ thread ]</a>
<a href="subject.html#25780">[ subject ]</a>
<a href="author.html#25780">[ author ]</a>
</LI>
</UL>
</body></html>