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

Npgsql mono under Windows Integration failed

1
First thanks to mono team, this innovation fullfill my deplyment requirements, I developped project using VS2005 Framework 2.0 and Sqlite seems to work perfectly in windows and Linux debian.
My aim is to subsitute SQLite with Postgresql and then the hell starts.
Here is the steps pursued:
1. Download the mono 3.2.3 last release
1. Downloaded from the offical web site the last release Npgsql-2.1.2-net20.zip Npgsql library
2. Unzipped the Npgsql-2.1.2-net20.zip in the d:\Npgsql-2.1.2-net20
Npgsql.dll
sn -T Npgsql.dll
Public Key Token: 5d8b90d52f46fda7
monodis Npgsql.dll
Version: 2.1.3.0

Mono.Security.dll
sn -T Mono.Security.dll
Public Key Token: 0738eb9f132ed756
monodis Mono.security.dll
Version: 2.0.0.0
3. Using VS2005 wich support the Framework 2.0 only, created a sample website d:\Samples\WebSiteHelloFromMono displays default.aspx "Good morning from Mono"
4. Compiled and browsed the website from VS2005 it displayed the expected message
5. using mono mcs command to build the project , then again it displays the expected message.
mcs /t:library /out:./../bin\WebSiteHelloFromMono.dll -r:System.Data -r:System.Web.Services -r:System.Web -r:System.Web.Extensions *.cs
6. Back to VS2005, I deleted the bin\WebSiteHelloFromMono.dll, because if I do not remove this build result then, I get the following error message .net comiler:
"ASP.NET runtime error: Could not load file or assembly 'WebSiteHelloFromMono' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
D:\Samples\WebSiteHelloFromMono\Default.aspx"
This bug is resolved when I delete the module VS2005 generate it's won building and do not rely on Mono result.
7. Back to Mono, using mcs command, I compiled with success again the project adding Npgsql.dll to the libraries as mentionned below:
mcs /t:library /out:./../bin\WebSiteHelloFromMono.dll -r:System.Data -r:Npgsql.dll -r:System.Web.Services -r:System.Web -r:System.Web.Extensions *.cs
8. I've launched the following commands to register the Npgsql.dll and Mono.Security.dll (Even I dot not believe on this action, just I executed the googlizers adivses))
d:\mono3.2.3\bin\gacutil -i d:\Npgsql-2.1.2-net20\Npgsql.dll
d:\mono3.2.3\bin\gacutil -i d:\Npgsql-2.1.2-net20\Mono.Security.dll
10. From the WebSiteHelloFromMono root I launced the following command :
%MONO_PATH%\bin\xsp2 --root . --port 8080 --applications /:.


This error message displayed below is due only to the Npgsql adding reference.

I Googlized hours and days, learned a lot about mono since but Dr I'm still suffering, Please give an urgent help, thanks
------------------------------------Error message at runtime ----------------------------------

Missing method Mono.WebServer.XSPWebSource::.ctor(IPAddress,int,S ecurityProtocol
Type,X509Certificate,PrivateKeySelectionCallback,b ool,bool,bool) in assembly D:\Mono-3.2.3\lib\mono\gac\Mono.WebServer2\0.2.0.0__0738eb 9f132ed756\Mono.WebServer2.dll, referenced in assembly D:\Mono-3.2.3\lib\mono\gac\xsp2\2.10.2.0__0738eb9f132ed756 \xsp2.exe
Handling exception type MissingMethodException
Message is Method not found: 'Mono.WebServer.XSPWebSource..ctor'.
IsTerminating is set to True
System.MissingMethodException: Method not found: 'Mono.WebServer.XSPWebSource..ctor'.

Server stack trace:
at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalE xecute (System.Reflection.MethodBase,object,object[],object[]&)
at System.Runtime.Remoting.RemotingServices.InternalE xecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in <filename unknown>:0

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]
& out_args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'Mono.WebServer.XSPWebSource..ctor'.

Server stack trace:
at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:Intern
alExecute (System.Reflection.MethodBase,object,object[],object[]&)
at System.Runtime.Remoting.RemotingServices.InternalE xecuteMessage (System.Mar
shalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in <filename unknow
n>:0

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke (System.Runtime.Rem
oting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]
& out_args) [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------------------
Apr 26 '14 #1
0 1687

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: JME-56 | last post by:
I have downloaded and installed the .NET framework 1.1 After installing the framework i installed SharpDevelop 0.95 With SharpDevelop i opened the xsp web server project (from mono), and compiled...
1
by: Comcast Mail | last post by:
I have a program that will connect web server using vpn. It runs perfectly if it runs as a stand along program. But it fails to connect to server while using windows service. The code sample likes...
2
by: James Coburn's Grey Helmet Hair | last post by:
When I try to compile my GTK# app, the compiler says: jbailo@linux:~/mono> mcs buttons.cs -r gtk-sharp.dll -r glib-sharp.dll -r -o buttons.exe error CS2001: Source file 'buttons.exe' could not...
1
by: john bailo | last post by:
Does Evolution have an OM that is accessible through the mono.NET framework? I want to write a spaminator in mono c# but build on an existing email client. --
12
by: shaun roe | last post by:
I'm reading about exception safety and wondering when I need to bother, and when a program can crash without hogging some resource. If I am only talking about memory allocated during a program,...
0
by: Daniel Knöpfel | last post by:
Hello On our asp.net 2.0 website we impersonate every request to the identity of the user logged in. This works this way: 1. user logs in, providing username, password 2. user is authenticated...
6
by: pathmakumara | last post by:
I added the reference to Npgsql.dll and run the application. it gives this run time error Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral,...
0
by: sudha yogeesh | last post by:
Dear all I am using npgsql version 1 to connect to postgresql 8.4 from asp.net. Now npgsql ver 2.11 is available. But it is not clear which version can be used. There is npgsql for mst.net,...
0
by: Raymond Chiu | last post by:
Dear all, I have the windows service program running on windows 7. When windows start and login, this windows service will start. But when log off and remote desktop connection and log in, the...
2
Niheel
by: Niheel | last post by:
When running Backup and Restore to create images on Windows 7, i get the following error message: Windows Backup failed when trying to read from the shadow copy of the volumes being backed up. ...
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.