[Gtk-sharp-list] Not Able to run GTK# Application On Windows
Tosif Ahmed
tosifahamed at gmail.com
Mon Mar 12 13:42:27 EDT 2007
One more thing i found out, wen i give the comand
mono hell.exe
the program runs fine, bu wen i run the exe, it doesnt whyh does this happen
On 3/12/07, tosif <tosifahamed at gmail.com> wrote:
>
>
> I made a simple hello world application in C# in windows but wen i compile
> it
> i am getting this error
>
> the code for th application is;
> using System;
> using Gtk;
>
> public class GtkHelloWorld {
>
> public static void Main() {
> Application.Init();
>
> //Create the Window
> Window myWin = new Window("My first GTK# Application! ");
> myWin.Resize(200,200);
>
> //Create a label and put some text in it.
> Label myLabel = new Label();
> myLabel.Text = "Hello World!!!!";
>
> //Add the label to the form
> myWin.Add(myLabel);
>
> //Show Everything
> myWin.ShowAll();
>
> Application.Run();
> }
> }
>
> Following is the resut of the execution of the compiling and execution
>
> ________________________________________________________________________________
> C:\Documents and Settings\TOSIF>mcs -pkg:gtk-sharp hell.cs
>
> C:\Documents and Settings\TOSIF>hell
>
> Unhandled Exception: System.IO.FileNotFoundException: File or assembly
> name
> gtk-
> sharp, or one of its dependencies, was not found.
> File name: "gtk-sharp"
> at GtkHelloWorld.Main()
>
> === Pre-bind state information ===
> LOG: DisplayName = gtk-sharp, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=3
> 5e10195dab3c99f
> (Fully-specified)
> LOG: Appbase = C:\Documents and Settings\TOSIF\
> LOG: Initial PrivatePath = NULL
> Calling assembly : hell, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=null.
> ===
>
> LOG: Application configuration file does not exist.
> LOG: Publisher policy file is not found.
> LOG: Host configuration file not found.
> LOG: Using machine configuration file from
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
> LOG: Post-policy reference: gtk-sharp, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=35e10195dab3c99f
> LOG: Attempting download of new URL file:///C:/Documents and
> Settings/TOSIF/gtk-sharp.DLL.
> LOG: Attempting download of new URL file:///C:/Documents and
> Settings/TOSIF/gtk-sharp/gtk-sharp.DLL.
> LOG: Attempting download of new URL file:///C:/Documents and
> Settings/TOSIF/gtk-sharp.EXE.
> LOG: Attempting download of new URL file:///C:/Documents and
> Settings/TOSIF/gtk-sharp/gtk-sharp.EXE.
>
>
> C:\Documents and Settings\TOSIF>
>
> __________________________________________________________________________________
>
> It says it cannot find the gtk-sharp library, but i downloaded the "Mono
> 1.2.3.1_0 Setup (Stable)" available for windows.
> Plzz help me out
>
> PS: I also wrote a console application in C#, and thats working perfectly
> in windows as well as linux.
> --
> View this message in context:
> http://www.nabble.com/Not-Able-to-run-GTK--Application-On-Windows-tf3390885.html#a9438874
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20070312/90c2786d/attachment.html
More information about the Gtk-sharp-list
mailing list