Re: [Mono-list] Cannot run C# WinForms on Mac OS X

2010-03-10 Thread Stifu

Hello,

This may not help, but better make sure... I remember there may be conflicts
if you have more than one Mono version installed. I take it you only have
Mono 2.6.1 installed, and no older version lying around?


aautar wrote:
> 
> Hey guys,
> 
> I'm having a similar issue with a WinForms app compiled on VC# 2008.
> What's really puzzling is that it works fine on my Mac w/ OS X 10.5.8 and
> Mono 2.6.1, but fails on my friend's Mac which has the same config (same
> version of OS X and Mono).
> 
> First, he got the following,
> 
>   at (wrapper managed-to-native)
> System.Windows.Forms.CarbonInternal.Dnd.InstallTrackingHandler
> (System.Windows.Forms.CarbonInternal.DragTrackingDelegate,intptr,intptr)
> <0x000e0>
>   at (wrapper managed-to-native)
> System.Windows.Forms.CarbonInternal.Dnd.InstallTrackingHandler
> (System.Windows.Forms.CarbonInternal.DragTrackingDelegate,intptr,intptr)
> <0x>
>   at System.Windows.Forms.CarbonInternal.Dnd..cctor () <0x00088>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Windows.Forms.XplatUICarbon.Initialize () <0x>
>   at System.Windows.Forms.XplatUICarbon.Initialize () <0x00468>
>   at System.Windows.Forms.XplatUICarbon..ctor () <0x000ac>
>   at System.Windows.Forms.XplatUICarbon.GetInstance () <0x00074>
>   at System.Windows.Forms.XplatUI..cctor () <0x00194>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Windows.Forms.Application.EnableVisualStyles () <0x>
>   at System.Windows.Forms.Application.EnableVisualStyles () <0x0003c>
>   at firesync.Program.Main (string[]) <0x00104>
>   at (wrapper runtime-invoke) .runtime_invoke_void_object
> (object,intptr,intptr,intptr) <0x>
> 
> 
> so I simply removed Application.EnableVisualStyles(), but then got an
> exception and stacktrace identical to the OP,
> 
>   at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> <0x000e0>
>   at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> <0x>
>   at System.Drawing.GDIPlus..cctor () <0x00218>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Drawing.KnownColors..cctor () <0x>
>   at System.Drawing.KnownColors..cctor () <0x00070>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Drawing.Color.get_Black () <0x>
>   at System.Drawing.Color.get_Black () <0x00028>
>   at System.Windows.Forms.ThemeWin32Classic..cctor () <0x0001c>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Windows.Forms.ThemeEngine..cctor () <0x>
>   at System.Windows.Forms.ThemeEngine..cctor () <0x000dc>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined
> () <0x>
>   at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined
> () <0x0001c>
>   at System.Windows.Forms.Control..ctor () <0x00258>
>   at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Control..ctor () <0x>
>   at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
> <0x00040>
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <0x>
>   at System.Windows.Forms.Control..ctor () <0x>
>   at System.Windows.Forms.Control..ctor () <0x00080>
>   at System.Windows.Forms.ScrollableControl..ctor () <0x00024>
>   at System.Windows.Forms.ContainerControl..ctor () <0x00038>
>   at System.Windows.Forms.Form..ctor () <0x0005c>
>   at firesync.WinFormsUI.EulaForm..ctor () <0x00034>
>   at (wrapper remoting-invoke-with-check)
> firesync.WinFormsUI.EulaForm..ctor () <0x>
>   at firesync.Program.Execute (string[],bool) <0x0125c>
>   at firesync.ProgramEntry.Main (string[]) <0x00060>
>   at (wrapper runtime-invoke) .runtime_invoke_void_object
> (object,intptr,intptr,intptr) <0x> 
> 
> 
> 
> mono-test-install gives the following on both my Mac and my friend's:
> 
> Active Mono: /usr/bin/mono
> Warning: pkg-config could not find mono installed on this system
> No dotnet pkgconfig found, Windows.Forms, System.Drawing and others will
> not work 
> 
> Despite the warning, my mono install seems to function perfectly (I did an
> uninstall + reinstall and still got the warning). If it could be a factor
> on my friend's Mac, how do I resolve it?
> 
> Any other thoughts, help, etc. greatly appreciated.
> 
> -- Avishkar
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Cannot-run-C-WinForms-on-Mac-OS-X-tp1565987p1588553.ht

[Mono-list] RTF printing through Mono

2010-03-10 Thread Bharti

Hi,

I am migrating .net application onto open suse 11.1 using Mono latest
version.
In my project we are using RTF mail merge facility. when I try to print some
docs using mono onto Linux. I am getting following error :-

"An error occured while merging the RTF template with the source data"

Does mono support RTF feature?


Thanks 
-- 
View this message in context: 
http://n4.nabble.com/Related-to-visual-basic-in-mono-tp1505974p1588463.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] Cannot run C# WinForms on Mac OS X

2010-03-10 Thread aautar

Hey guys,

I'm having a similar issue with a WinForms app compiled on VC# 2008. What's
really puzzling is that it works fine on my Mac w/ OS X 10.5.8 and Mono
2.6.1, but fails on my friend's Mac which has the same config (same version
of OS X and Mono).

First, he got the following,

  at (wrapper managed-to-native)
System.Windows.Forms.CarbonInternal.Dnd.InstallTrackingHandler
(System.Windows.Forms.CarbonInternal.DragTrackingDelegate,intptr,intptr)
<0x000e0>
  at (wrapper managed-to-native)
System.Windows.Forms.CarbonInternal.Dnd.InstallTrackingHandler
(System.Windows.Forms.CarbonInternal.DragTrackingDelegate,intptr,intptr)
<0x>
  at System.Windows.Forms.CarbonInternal.Dnd..cctor () <0x00088>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Windows.Forms.XplatUICarbon.Initialize () <0x>
  at System.Windows.Forms.XplatUICarbon.Initialize () <0x00468>
  at System.Windows.Forms.XplatUICarbon..ctor () <0x000ac>
  at System.Windows.Forms.XplatUICarbon.GetInstance () <0x00074>
  at System.Windows.Forms.XplatUI..cctor () <0x00194>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Windows.Forms.Application.EnableVisualStyles () <0x>
  at System.Windows.Forms.Application.EnableVisualStyles () <0x0003c>
  at firesync.Program.Main (string[]) <0x00104>
  at (wrapper runtime-invoke) .runtime_invoke_void_object
(object,intptr,intptr,intptr) <0x>


so I simply removed Application.EnableVisualStyles(), but then got an
exception and stacktrace identical to the OP,

  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
<0x000e0>
  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
<0x>
  at System.Drawing.GDIPlus..cctor () <0x00218>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Drawing.KnownColors..cctor () <0x>
  at System.Drawing.KnownColors..cctor () <0x00070>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Drawing.Color.get_Black () <0x>
  at System.Drawing.Color.get_Black () <0x00028>
  at System.Windows.Forms.ThemeWin32Classic..cctor () <0x0001c>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Windows.Forms.ThemeEngine..cctor () <0x>
  at System.Windows.Forms.ThemeEngine..cctor () <0x000dc>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
<0x>
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
<0x0001c>
  at System.Windows.Forms.Control..ctor () <0x00258>
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor
() <0x>
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
<0x00040>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0x>
  at System.Windows.Forms.Control..ctor () <0x>
  at System.Windows.Forms.Control..ctor () <0x00080>
  at System.Windows.Forms.ScrollableControl..ctor () <0x00024>
  at System.Windows.Forms.ContainerControl..ctor () <0x00038>
  at System.Windows.Forms.Form..ctor () <0x0005c>
  at firesync.WinFormsUI.EulaForm..ctor () <0x00034>
  at (wrapper remoting-invoke-with-check) firesync.WinFormsUI.EulaForm..ctor
() <0x>
  at firesync.Program.Execute (string[],bool) <0x0125c>
  at firesync.ProgramEntry.Main (string[]) <0x00060>
  at (wrapper runtime-invoke) .runtime_invoke_void_object
(object,intptr,intptr,intptr) <0x> 



mono-test-install gives the following on both my Mac and my friend's:

Active Mono: /usr/bin/mono
Warning: pkg-config could not find mono installed on this system
No dotnet pkgconfig found, Windows.Forms, System.Drawing and others will not
work 

Despite the warning, my mono install seems to function perfectly (I did an
uninstall + reinstall and still got the warning). If it could be a factor on
my friend's Mac, how do I resolve it?

Any other thoughts, help, etc. greatly appreciated.

-- Avishkar

-- 
View this message in context: 
http://n4.nabble.com/Cannot-run-C-WinForms-on-Mac-OS-X-tp1565987p1588331.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] Bug with non-secured resources in ASP.NET

2010-03-10 Thread Abe Gillespie
I replaced my System.Web source directory with the latest.
Unfortunately this did not fix the problem.  After being offline for
four days I just decided to roll back to 2.4.  At least I'm working
again.

I'll retry the next official 2.6 release.

Thanks.
-Abe

On Tue, Mar 9, 2010 at 11:46 AM, Abe Gillespie  wrote:
> Cool. Thanks, Marek.  I'll get the new System.Web source and recompile.
>
> I appreciate the help on this!
>
> -Abe
>
> On Tue, Mar 9, 2010 at 11:09 AM, Marek Habersack
>  wrote:
>> On Tue, 9 Mar 2010 09:40:42 -0500
>> Abe Gillespie  wrote:
>>
>>> Any word on this?  It's really hurting my business right now.
>> It should be fixed in trunk and the 2.6 branch, try System.Web from there
>>
>> marek
>>>
>>> Thanks!
>>> -Abe
>>>
>>> On Fri, Mar 5, 2010 at 4:05 PM, Abe Gillespie  
>>> wrote:
>>> > This seems to be new since somewhere around 2.4.x.  I my Web.config
>>> > I've got resources protected and others globally available a la:
>>> >
>>> > 
>>> >  
>>> >    
>>> >      
>>> >    
>>> >  
>>> >    
>>> >  
>>> > 
>>> >
>>> > 
>>> >  
>>> >    
>>> >      
>>> >    
>>> >  
>>> > 
>>> >
>>> > 
>>> >  
>>> >    
>>> >      
>>> >    
>>> >  
>>> > 
>>> >
>>> > Mono grants public access to files (like images and css files) in the
>>> > common directory as expected.  However, callback.aspx is forwarding
>>> > the page to the login page which is not expected.  This one's critical
>>> > for me in that the callback.aspx page is the end point for Google
>>> > Checkout.  Now that it's erroneously forwarding to the login page
>>> > Google Checkout is unable to send checkout events to my system thus
>>> > preventing online sales.
>>> >
>>> > I'll be happy to file a bug but was hoping there was a quick
>>> > work-around in the mean time just so that I can get functioning again.
>>> >  Again, this has been working all along in Mono up until at least
>>> > 2.4.x.
>>> >
>>> > Thanks.
>>> > -Abe
>>> >
>>> ___
>>> Mono-list maillist  -  mono-l...@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] GTK# max widget size

2010-03-10 Thread Dimitar Dobrev

Did you try AttachOptions.Shrink?
-- 
View this message in context: 
http://n4.nabble.com/GTK-max-widget-size-tp1586578p1587238.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