[MonoDevelop] Error compiling GTK# apps with Mono/MonoDevelop on Windows

Storazi f.rahimzai at gmail.com
Fri Oct 2 10:09:11 EDT 2009


I am able to compile my web application without errors or warnings but when i
RUN the application it says "The "xsp2" web server cannot be started. please
ensure that it is installed"
The xsp2 web server is installed and i can run it and it works fine. but
cannot RUN The application on MONODEVELOP.

please advise !


jmalcolm wrote:
> 
> Here is the build output from a simple, mostly auto-generated app that
> compiles fine if I specify .NET but fails as below if I specify Mono:
> 
> Building: HelloGTK (Debug)
> 
> Building Solution HelloGTK
> 
> Building: HelloGTK (Debug)
> 
> Performing main compilation...
> 
> E:\Program Files\Mono-2.4.2.3\bin\gmcs.bat /noconfig "/out:E:\Documents
> and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\bin\Debug\HelloGTK.exe"
>  "/r:System.dll"
>  "/r:Mono.Posix.dll"
>  /nologo
>  /warn:4
>  /debug:+
>  /debug:full
>  /optimize-
>  /codepage:utf8
>  "/define:DEBUG"
>  
>  /t:exe
>  "/res:E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\gui.stetic,gui.stetic"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\generated.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\MainWindow.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\Main.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\AssemblyInfo.cs"
>  
>     Try using -pkg:gtk-sharp
> 
> Compilation failed: 1 error(s), 0 warnings
> 
> E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs(2,7): error CS0246: The
> type or namespace name `Gtk' could not be found. Are you missing a using
> directive or an assembly reference?
> 
> 
> Build complete -- 1 error, 6 warnings
> 
> 
> ---------------------- Done ----------------------
> 
> 
> The reference 'gtk-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> The reference 'gdk-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> The reference 'glib-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> The reference 'glade-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> The reference 'pango-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> The reference 'atk-sharp, Version=2.12.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
> the project.
> Build: 1 error, 6 warnings
> 
> =====================================
> 
> Do not hassle me about "Administrator".  I thought maybe it might work
> from this account.  Old school Windows...
> 
> Here is the output when I try to build the same project on .NET:
> 
> Building: HelloGTK (Debug)
> 
> Building Solution HelloGTK
> 
> Building: HelloGTK (Debug)
> 
> Performing main compilation...
> 
> E:\WINNT\Microsoft.NET\Framework\v2.0.50727\csc.exe /noconfig
> "/out:E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\bin\Debug\HelloGTK.exe"
>  "/r:System.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\Mono.Posix\Mono.Posix.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-sharp.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\gdk-sharp.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\glib-sharp.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\glade-sharp.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\pango-sharp.dll"
>  "/r:E:\Program Files\GtkSharp\2.12\lib\gtk-sharp-2.0\atk-sharp.dll"
>  /nologo
>  /warn:4
>  /debug:+
>  /debug:full
>  /optimize-
>  "/define:DEBUG"
>  
>  /t:exe
>  "/res:E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\gui.stetic,gui.stetic"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\generated.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\MainWindow.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\gtk-gui\MainWindow.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\Main.cs"
>  "E:\Documents and Settings\Administrator\My
> Documents\Projects\HelloGTK\HelloGTK\AssemblyInfo.cs"
>  /fullpaths
>  
> Build complete -- 0 errors, 0 warnings
> 
> ---------------------- Done ----------------------
> 
> Build successful.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-compiling-GTK--apps-with-Mono-MonoDevelop-on-Windows-tp25604669p25716486.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.



More information about the Monodevelop-list mailing list