[Mono-list] Exception of type 'System.Web.Compilation.CompilationException'

2008-12-16 Thread Jyoti Seth
Hi All,

I have installed latest version of mono 2.0.1 on my suse linux machine. It
is throwing the following error on some pages of the asp.net project:
Exception of type 'System.Web.Compilation.CompilationException' was thrown.

Earlier these pages were working fine.

Please let me know the solution for the above problem.

Thanks,
Jyoti Seth


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread Chris Howie
On Tue, Dec 16, 2008 at 4:30 PM,   wrote:
>> Hmm.. what happens if you use an EventBox instead of a Viewport?
>
> Working as well.
> Thanks for hint!

I believe what's going on here is that some widgets, like labels,
don't require their own Gdk.Window so they just draw on their parent.
The problem is that these widgets will *always* appear under widgets
that have their own Gdk.Window.  EventBox is a widget that draws
nothing but intentionally creates a Gdk.Window for itself.  It's
intended to be used to capture events to things like labels -- since
there is no window to capture the click, you can't tell which widget
received the click except that you know the nearest parent got a
click.  But it also works in situations like this, to give labels and
other such widgets a Window above other widgets to draw on.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Type conversion trouble

2008-12-16 Thread Wolfgang Schulze-Zachau

Thanks guys, that explains something. However, as far as I can establish, the
file containing the interface definition is only used in one project and not
included anywhere else. How can I check that this is absolutely the case?
And I am also not loading assemblies from multiple locations, but once again
I would be grateful for a pointer how I could check that.

cheers
Wolfgang
-- 
View this message in context: 
http://www.nabble.com/Type-conversion-trouble-tp20944980p21043505.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread nickstaves
> On Tue, Dec 16, 2008 at 9:24 AM, nickstaves  wrote:
>> Finally I've found solution.
>>
>> I used Viewport widget as parent container for popup widget and it's
>> working
>> fine, except I still don't understand why it's working ... :)
>
> Hmm.. what happens if you use an EventBox instead of a Viewport?

Working as well.
Thanks for hint!

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono AOT Mode - Limitations

2008-12-16 Thread Rodrigo Kumpera
Hi Gluber,

On Mon, Dec 15, 2008 at 6:48 PM, Gluber  wrote:

>
> Hi there !
>
> After the recent superb talk by miguel at PDC about Mono/AOT and the
> (secret) work they have done on certain Game Console Platforms i decided to
> prototype a fully Managed Game Engine. ( At my day job we do this kind in
> native C++ of course )
>
> I am now thinking about the features of the .NET platform i can actually
> use
> to make sure I support full Mono AOT for possible console compilation
> lateron.
>
> Forbidden for sure:
>
> * Dynamic Code Generation
> ( Reflection.Emit, CSharp CodeDOM Compiler, XmlSerializer, WCF Proxies, AOP
> etc.. all )
> * Expression Trees that are executed ( since Expression.Compile generates
> code at runtime of course )
> * Some Advanced class library parst ( WCF,WPF, etc don't make sense for a
> console game anyhow )
> * No dynamic (file based ) loading of assemblies
>

You can dynamically load other full-AOT'd assemblies without problem.
Other things that currently don't work under full AOT are app domains and
transparent proxies.



> Questionable areas:
>
> * Reflection ( especially calling methods via MethodInfo etc )
>
> Could anyone confirm or deny my suspicions ?
>

AFAIK dynamic invoke doesn't work under full-aot, but better ask Zoltan
about that. You can always
You can partially workaround this by using delegates.

You cannot safely use Type:MakeGenericType and MethodInfo:MakeGenericMethod
as the new instances might require
inflated code not aot'ed.


> It would also be interesting to know how the garbage collector works in
> full
> AOT mode..
>

Work as usual, nothing special about it.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread Chris Howie
On Tue, Dec 16, 2008 at 9:24 AM, nickstaves  wrote:
> Finally I've found solution.
>
> I used Viewport widget as parent container for popup widget and it's working
> fine, except I still don't understand why it's working ... :)

Hmm.. what happens if you use an EventBox instead of a Viewport?

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Newbie Problem with System.Xml

2008-12-16 Thread Jonathan Pryor
On Fri, 2008-12-12 at 01:46 -0800, Mucki wrote:
> i am learning C# in the Mono .Net environment and i tried some code around
> files. Of course i had a view on XML files and found the System.Xml class.
> 
> With the following code
> 
> using System;
> using System.IO;
> using System.Xml;
> 
> namespace XMLTest
> {...
> 
> i get an error: 
> 
> Main.cs(8,14): error CS0234: The type or namespace name `Xml' does not exist
> in the namespace `System'. Are you missing an assembly reference?

You need to reference the System.Xml.dll asssembly.

If building from the command line, use the -r:System.Xml.dll argument:

gmcs foo.cs -r:System.Xml.dll

If using MonoDevelop, in the Solution Pane right-click References, then
click Edit References.  In the Packages tab, select the System.Xml
assembly, then click OK.

 - Jon


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Type conversion trouble

2008-12-16 Thread Charlie Poole
I'm not sure about Mono, but at least in MS .NET the same thing
can happen if an assembly is loaded
a) from two different locations (i.e. a copy)
b) in both the load and loadfrom  contexts

Charlie 

> -Original Message-
> From: mono-list-boun...@lists.ximian.com 
> [mailto:mono-list-boun...@lists.ximian.com] On Behalf Of Robert Jordan
> Sent: Tuesday, December 16, 2008 7:22 AM
> To: Mono-list@lists.ximian.com
> Subject: Re: [Mono-list] Type conversion trouble
> 
> Wolfgang Schulze-Zachau wrote:
> > Cannot convert 'Amino.Common.IProjectNodeData' expression to type 
> > 'Amino.Common.IProjectNodeData' (CS1503).
> > 
> > Now this is where the fun starts:
> > 1.) The error message doesn't make any sense to me. The two 
> types are 
> > exactly the same. There should be no need to do any conversion?
> 
> This error usually occurs if the same source file is included into
> 2 different assemblies. The types declared in this file will 
> be totally different and incompatible. This is by design of 
> .NET and C# compiler's type resolution.
> 
> In your case, the file implementing "Amino.Common.IProjectNodeData"
> is probably duplicated and included by 2 or more assemblies.
> 
> Robert
> 
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com 
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono manual

2008-12-16 Thread Iggy
Your best reference is going to be the Mono Wiki
http://mono-project.com/Start and the Mono API Documentation
http://www.go-mono.com/docs/



On Tue, Dec 9, 2008 at 1:50 PM, pepe_eloy  wrote:
>
> Hello to everybody!
>
> Somebody knows if exist a manual (or book) for newbies using mono?
> (specially the version 2). Several years ago I programed in VB .Net, but I
> need a something to learn to programming in mono.
>
> Actually I'm using ubuntu 8.10 in my computer
>
> Thanks for any help
>
> José Eloy
> México
>
> --
> View this message in context: 
> http://www.nabble.com/Mono-manual-tp20922130p20922130.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Type conversion trouble

2008-12-16 Thread Robert Jordan
Wolfgang Schulze-Zachau wrote:
> Cannot convert 'Amino.Common.IProjectNodeData' expression to type
> 'Amino.Common.IProjectNodeData' (CS1503).
> 
> Now this is where the fun starts:
> 1.) The error message doesn't make any sense to me. The two types are
> exactly the same. There should be no need to do any conversion?

This error usually occurs if the same source file is included into
2 different assemblies. The types declared in this file will be
totally different and incompatible. This is by design of .NET
and C# compiler's type resolution.

In your case, the file implementing "Amino.Common.IProjectNodeData"
is probably duplicated and included by 2 or more assemblies.

Robert

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Gtk Fixed Z-order

2008-12-16 Thread nickstaves

Finally I've found solution.

I used Viewport widget as parent container for popup widget and it's working
fine, except I still don't understand why it's working ... :)
-- 
View this message in context: 
http://www.nabble.com/Gtk-Fixed-Z-order-tp20972606p21033971.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Sources of generic mono installer (.bin)

2008-12-16 Thread rt2008

Hi,

where can I get sources of generic mono installer? 


-- 
View this message in context: 
http://www.nabble.com/Sources-of-generic-mono-installer-%28.bin%29-tp21031649p21031649.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Can I use mono for a little webspace, not a whole server?

2008-12-16 Thread usernameme

Can I use mono if I only have webspace at an (shared) hosting company but not
an own server?
or does it need to be installed on the whole server?

thank you really much for your answers.
i need mono to get ASP .NET pages working on linux :)
-- 
View this message in context: 
http://www.nabble.com/Can-I-use-mono-for-a-little-webspace%2C-not-a-whole-server--tp20996473p20996473.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Differences between the Microsoft and Mono 2.0.1 Runtimes

2008-12-16 Thread Peter Ison

Here are the relevant lines of code from a very simple application. The
intention was to use a master page and place the footer information in a
skin file which was referenced using asp:Label and SkinID="Bottom" in the
master page.

Site1.Master


This is in Site1.Master


App_Theme > myTheme > Skin1.skin


This is Skin1.skin


App_Theme > myTheme > Stylesheet1.css
-
.footer
{
height:117px;
color:Navy;
}

The above program gave a significant difference between Visual Web Developer
2008 and Mono (on Linux CentOS 4.7 and openSUSE 11.0): 

VWD 2008: The text in the footer was "This is the Skin1.skin" taken from the
skin file.
Mono: The text in the footer was "This is the Site1.Master" taken from the
master page.

In all other respects the behaviour was the same between VWD 2008 and Mono
with the contents of the skin file taking precendence where there was a
clash.

Can anyone tell me what the standard behaviour should be according to the
specifications? Is there any way of forcing Mono to behave in the same way
as Visual Web Developer?
-- 
View this message in context: 
http://www.nabble.com/Differences-between-the-Microsoft-and-Mono-2.0.1-Runtimes-tp20992645p20992645.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Newbie Problem with System.Xml

2008-12-16 Thread Mucki

Hi alfdev,


alfdev wrote:
> 
> Open your solution in MD, in solution explorer find "references", right
> mouse and click references.
> 

that's it.

Thanks a lot,

Maurice
-- 
View this message in context: 
http://www.nabble.com/Newbie-Problem-with-System.Xml-tp20971598p20979167.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] TimeoutException on SerialPort (mono 2.0)

2008-12-16 Thread eyanson

I tested this sample: http://www.mono-project.com/HowToSystemIOPorts

but I get this error:

Unhandled Exception: System.TimeoutException: The operation has timed-out.
  at System.IO.Ports.SerialPortStream.Read (System.Byte[] buffer, Int32
offset, Int32 count) [0x0] 
  at System.IO.Ports.SerialPort.read_byte () [0x0] 
  at System.IO.Ports.SerialPort.ReadByte () [0x0] 
  at (wrapper remoting-invoke-with-check)
System.IO.Ports.SerialPort:ReadByte ()
  at SerialPortTest.ReadData () [0x0] 
  at SerialPortTest.Test () [0x0] 
  at SerialPortTest.Main (System.String[] args) [0x0] 

I have: openSUSE 11.0 on VMWare WS ACE Edition 6.0.2 hosted on Windows Vista

Mono version is 2.0


What is the problem??
thanks

-- 
View this message in context: 
http://www.nabble.com/TimeoutException-on-SerialPort-%28mono-2.0%29-tp21026719p21026719.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Newbie Problem with System.Xml

2008-12-16 Thread Mucki

Hi alfdev,


alfdev wrote:
> 
> try to include the System.Xml namespace from MonoDevelop menu.
> 

thx for your quick reply. Sorry, but i do not know where in MonoDevelop i
might include the namespace. I guess somewhere in the project options but i
did not find the exact place.

Kind regards,

Maurice
-- 
View this message in context: 
http://www.nabble.com/Newbie-Problem-with-System.Xml-tp20971598p20973180.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Newbie Problem with System.Xml

2008-12-16 Thread Mucki

Hi,

i am learning C# in the Mono .Net environment and i tried some code around
files. Of course i had a view on XML files and found the System.Xml class.

With the following code

using System;
using System.IO;
using System.Xml;

namespace XMLTest
{...

i get an error: 

Main.cs(8,14): error CS0234: The type or namespace name `Xml' does not exist
in the namespace `System'. Are you missing an assembly reference?

I tried it with Mono version 1.91 and 2.0.1 on a Linux box.

Any hints for me ? Thanks a lot,

Maurice
-- 
View this message in context: 
http://www.nabble.com/Newbie-Problem-with-System.Xml-tp20971598p20971598.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Accessing one class from another

2008-12-16 Thread BinaryFlow



Paul F. Johnson wrote:
> 
> Hi,
> 
> I have an application which is causing me a small headache (too much
> code, not enough rest syndrome!).
> 
> I have two files - mainform.cs which contains code for dealing with the
> main winform. In the second file called xmlhander.cs, I have a class
> called xmlhander.
> 
> In mainform.cs, I have a public class called Mainform. In this I have 
> 
> public Mainform()
> {
>   this.InitializeComponent();
>   reset();
> }
> 
> then code.
> 
> I can access everything defined in Mainform from other classes by just
> creating a new instance of it. Easy enough. Mainform mf = new
> Mainform();
> 
> In xmlhandler.cs, I have a public class called xmlhandler(). In this I
> have
> 
> public xmlhandler() {}
> 
> However, if I try and create an instance of xmlhandler within Mainform
> (same way : xmlhandler xml = new xmlhandler();), I get the following
> error (from monodevelop - my other thread holds, I'm editing using emacs
> and building via monodevelop)
> 
> Line 30 : The type or namespace name `xmlhandler' could not be found.
> Are you missing a using directive of assembly reference? (CS0246)
> 
> All source is in the same namespace (marker).
> 
> Any help on this would be appreciated.
> 
> TTFN
> 
> Paul
> 
> -- 
> Sie können mich aufreizen und wirklich heiß machen!
> 
> 
>  
> ___
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

Hi there, i'm having the same problem trying to use one of my own classes
sitting in the same namespace as the rest of my project. I've tried googling
for the a solution but to no avail :(

-- 
View this message in context: 
http://www.nabble.com/Accessing-one-class-from-another-tp17020735p20924155.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono manual

2008-12-16 Thread pepe_eloy

Hello to everybody!

Somebody knows if exist a manual (or book) for newbies using mono?
(specially the version 2). Several years ago I programed in VB .Net, but I
need a something to learn to programming in mono.

Actually I'm using ubuntu 8.10 in my computer

Thanks for any help

José Eloy
México

-- 
View this message in context: 
http://www.nabble.com/Mono-manual-tp20922130p20922130.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Installing mod_mono from source

2008-12-16 Thread swiftk77

I know that Redhat 9 isn't a supported environment for mono, but I really
don't have a choice, since this is what my VPS is providing me.  I have had
mono and mod_mono running in the past with version 1.x, but I just recently
tried to install 2.0 and get everything running except for mod_mono.  When I
attempt to install mod_mono from source I receive the following error
running "make"

make[1]: *** [mod_mono_la-mod_mono.lo] Error 1

I am installing this with Apache 1.3 and it appears to have some
difficulting determing which version or Apache it should be using.  I have
point the config. to use the /usr/local/apache/bin/apxs (Apache 1.3), but
since I also have Apache 2 running on the server, it wants to pick Apach2
up.  Any ideas to the error above or if the Apache version issue might be
causing the problem?

Thanks in advance -- Ken
-- 
View this message in context: 
http://www.nabble.com/Installing-mod_mono-from-source-tp21000647p21000647.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Type conversion trouble

2008-12-16 Thread Wolfgang Schulze-Zachau

Hi all,

I am using the current 2.0 Alpha 2 release and I have some strange
behaviour. Any help would be appreciated. Here is the problem:
I am building an application where I am separating code into various
libraries, all with their own namespaces. One of these contains all the data
access objects, complete with a data provider and with interface
definitions. In parallel to this, the library containing the unit tests has
a mock data provider, so that for my tests I don't have to have a working
database. The mock data provider makes use of the interfaces above. Here is
an extract from one of the unit test classes:

using System;
using NUnit.Framework;
using Amino.Common;
using Amino.Project;

namespace Amino.testProCosta
{


[TestFixture()]
public class TestProjectNode
{
ProjectNode node;

[Test()]
public void Instantiation()
{
IDataProvider provider = new MockDataProvider();
IProjectNodeData nd = provider.getNewNodeData();
node = new ProjectNode(nd);
Assert.AreEqual(0, node.WorkTypeID, "wrong worktype ID 
instantiated");
Assert.AreEqual(0, node.ParentID, "wrong parent ID 
instantiated");
Assert.AreEqual(ProjectNodeType.Project, node.NodeType, 
"wrong type
instantiated");
}

The definition of the ProjectNode class looks like this:

using System;
using System.Collections;
using Amino.Common;

namespace Amino.Project
{


public class ProjectNode
{
protected IProjectNodeData data;
protected ProjectNodeType nodetype;
ProjectNode parent;
ArrayList children;
Department department;

public ProjectNode()
{
throw new InvalidOperationException("You must use the 
data provider to
obtain project node data objects for instantiation");
}

public ProjectNode(IProjectNodeData dao) {
this.data = dao;
this.nodetype = ProjectNodeType.Project;
}

...

As you can see, all of these use the IProjectNodeData interface to define
the data access objects. When I compile this code, I get an error message:

Cannot convert 'Amino.Common.IProjectNodeData' expression to type
'Amino.Common.IProjectNodeData' (CS1503).

Now this is where the fun starts:
1.) The error message doesn't make any sense to me. The two types are
exactly the same. There should be no need to do any conversion?
2.) Here is how I can work around this:
  a) copy the IProjectNodeData interface to the project where ProjectNode is
defined. Enable the build on this interface.
  b) rebuild the solution. Error message sticks around. Sometimes it changes
to something like this:
  Cannot convert 'Amino.Project.IProjectNodeData' expression to type
'Amino.Common.IProjectNodeData' (CS1503).
  => Note the difference in namespace, this actually makes sense.
  c) disable the build on the new interface
  d) rebuild the solution. Build succeeds.

Now this makes even less sense to me. What is going on here? I must be
making some fundamental mistake in my use of namespaces and or
types/interfaces, but I cannot figure out where.
Oh, yeah and then there is the issue that if I do a complete rebuild (using
Ctrl-F8), I get this nice big red error message at the end (after all work
has been done: 
Build failed. Object reference not set to an instance of an object
(I thought this had been fixed long ago, apparently not).

I am happy to provide more detail and/or required source code. Any pointers
would be highly appreciated.

greetings
Wolfgang

-- 
View this message in context: 
http://www.nabble.com/Type-conversion-trouble-tp20944980p20944980.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Announcing Mono 2.2 Preview 3...

2008-12-16 Thread Stifu

The Windows version works fine for me, at first glance (that crash regression
introduced in 2.0.1 is fixed).

On a side note, something funny (which is not a regression but has always
been there): I've got a Windows.Forms app with a ToolStrip. The ToolStrip is
grey with MS .NET, but blue with Mono on Windows.
-- 
View this message in context: 
http://www.nabble.com/Announcing-Mono-2.2-Preview-3...-tp21019256p21029324.html
Sent from the Mono - General mailing list archive at Nabble.com.

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list