[Mono-list] Web app migrate from win32 to linux
Travis Staloch
twostepted at yahoo.com
Tue Nov 14 20:38:19 EST 2006
FYI,
I was able to solve this problem myself. I realized that it had to do with the fact that I'd included some unnecessary mono assemblies in my web app's bin directory (assemblies which were already in the GAC or otherwise on the machine which I migrated to).
This caused some confilcts as I'm guessing that mono found these private assemblies in my app's bin directory before finding the shared assemblies elsewhere. I think that what happened is some 1.18 or 1.16 assemblies (Mono.Data.Tds.dll in the error below) were used by the 1.15 mono installation.
Another problem, and possible bug, I noticed with my web app (a difference from windows .NET) was that I had problems using an <asp:Literal ... /> to set a javascript variable. Here is the code which gives me a NullReferenceException when I try to use it.
THIS DOESN'T WORK:
.aspx
--------
//'; //--> //'; //--> <script language="javascript" type="text/javascript">
var sControlName = '<asp:Literal id="litProductDdlName" runat="server" />';
</script>
.cs
--------
protected Literal litProductDdlName;
...
litProductDdlName.Text = ddlProducts.ClientID;
THIS WORKS - using <%= %> escaping as a workaround:
.aspx
//'; //--> //'; //--> //'; //--> //'; //--> --------
<script language="javascript" type="text/javascript">
var sControlName = '<%= ddlProducts.ClientID %>';
</script>
After making this change, I have been able to successfully run my migrated ASP.NET web app on apache2/mod_mono.
Regards,
--Travis
Travis Staloch <twostepted at yahoo.com> wrote:
Guys,
I've recently moved a .NET 1.1 web application over from a working
windows/IIS machine to a linux/apache2/mod_mono machine. I keep
getting this message whenever I try to view any of the pages:
System.MissingMethodException: Method not found:
'Mono.Data.Tds.Protocol.TdsConnectionParameters.Reset'.
in <0x00000> <unknown method>
I was getting a System.TypeLoadException error from same
assembly (Mono.Data.Tds) until I restarted apache2.
Does anyone have any ideas what might be causing this?
Is this related to the fact that the linux machine has mono
1.1.15 installed while the windows machine the app migrated
from had a later version (1.1.18 I think)?
Regards,
--Travis
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061114/d9ae561d/attachment.html
More information about the Mono-list
mailing list