[Gtk-sharp-list] Not Able to run GTK# Application On Windows

tosif tosifahamed at gmail.com
Mon Mar 12 13:14:39 EDT 2007


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.



More information about the Gtk-sharp-list mailing list