Re: [Mono-list] SqlBulkCopy Error: Incorrect syntax near ','

2009-07-02 Thread Gonzalo Paniagua Javier
On Tue, 2009-06-30 at 13:56 -0700, Lazar wrote:
> Hi there,
> 
> I am trying to use mono to import data into a Microsoft SQL Server from a
> Linux machine. The code is written in C# and makes use of the SqlBulkCopy
> class. The program runs just fine on a Windows platform, and there are no
> issues discovered when checked with the Mono Migration Analyzer. When the
> program is executed under mono (both versions 2.0.1 and 2.4.2 have been
> tried) on a machine running Ubuntu 9.04 it runs fine until it gets to the
> WriteToServer(DataTable) call, and then the following error is displayed:
> 
> Incorrect syntax near ','.
> System.Data.SqlClient.SqlException: Incorrect syntax near ','.
>   at System.Data.SqlClient.SqlConnection.ErrorHandler (System.Object sender,

We're going to need more information in order to debug this. Could you
provide a small program with the smallest statement possible that
reproduces the problem? If so -> http://mono-project.com/Bugzilla.

Thanks.

-Gonzalo


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


[Mono-list] ASP.Net compilation error with C# and Mono V2.4.2

2009-07-02 Thread Jochen Wezel - CompuMaster GmbH
Hello,

I've got this error when trying to access my test website and if I've put a 
file "cammWM.dll" into my bin directory:

Given is the ASPX file with this content:

debopweb02:/srv/_default/htdocs # cat hello_world_csharp.aspx
<%@ Page Language="C#" %>
<%@ Register TagPrefix="camm" TagName="WebManager" 
Src="/system/cammWebManager.ascx" %>



<%
Response.Write ("This is a C# demo");
%>




void Page_Load()
{
UserWelcome.Text = "And you are " + 
cammWebManager.CurrentUserInfo().FullName() + "; a warm welcome to you!";
}



C# fails if I use a control on my page provided by that cammWM.dll. Here the 
message from my hello_world_csharp.aspx:

Server Error in '/' Application



The classes in the module cannot be loaded.
Description: HTTP 500. Error processing request.

Stack Trace: 

System.Reflection.ReflectionTypeLoadException: The classes in the module cannot 
be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x0] 
  at System.Web.UI.TemplateParser.FindNamespaceInAssembly 
(System.Reflection.Assembly asm, System.String namesp) [0x0] 
  at System.Web.UI.TemplateParser.AddAssemblyForNamespace (System.String 
namesp) [0x0] 
  at System.Web.UI.TemplateParser.AddImport (System.String namesp) [0x0] 
  at System.Web.UI.TemplateParser.RegisterNamespace (System.String tagPrefix, 
System.String ns, System.String assembly) [0x0] 
  at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, 
System.Collections.Hashtable atts) [0x0] 
  at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType 
tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) 
[0x0] 
  at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, 
System.String id, System.Web.Compilation.TagAttributes attributes) [0x0] 
  at System.Web.Compilation.AspParser.Parse () [0x0] 
  at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, 
System.String filename, Boolean doInitParser) [0x0] 
  at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x0] 
  at 
System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType () 
[0x0] 
  at System.Web.Compilation.BuildManager.GetCodeDomProviderType 
(System.Web.Compilation.BuildProvider provider) [0x0] 
  at System.Web.Compilation.BuildManager+BuildItem..ctor 
(System.Web.Compilation.BuildProvider provider) [0x0] 
  at System.Web.Compilation.BuildManager.LoadBuildProviders 
(System.Web.VirtualPath virtualPath, System.String virtualDir, 
System.Collections.Generic.Dictionary`2 vpCache, 
System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName) 
[0x0] 


  at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath 
virtualPath) [0x0] 
  at System.Web.Compilation.BuildManager.GetCompiledType (System.String 
virtualPath) [0x0] 
  at System.Web.Compilation.AspComponentFoundry+TagNameFoundry.LoadType () 
[0x0] 
  at System.Web.Compilation.AspComponentFoundry+TagNameFoundry.GetType 
(System.String componentName, System.String& source, System.String& ns) 
[0x0] 
  at System.Web.Compilation.AspComponentFoundry.CreateComponent 
(System.Web.Compilation.Foundry foundry, System.String tagName, System.String 
prefix, System.String tag) [0x0] 
  at System.Web.Compilation.AspComponentFoundry.GetComponent (System.String 
tagName) [0x0] 
  at System.Web.UI.RootBuilder.GetChildControlType (System.String tagName, 
IDictionary attribs) [0x0] 
  at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid, 
System.Collections.Hashtable atts, System.Type childType, 
System.Web.UI.TemplateParser parser, ILocation location) [0x0] 
  at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, 
System.String tagid, System.Web.Compilation.TagAttributes atts, TagType 
tagtype, System.Boolean& ignored) [0x0]  


Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 
2.0.50727.1433


In case you need my cammWM.dll for testing purposes, please tell me your e-mail 
address so that I can send it directly to you (it shall be handled 
confidentially).

Environment configuration:
==
- OpenSUSE 11.1
- Mono 2.4.2 with installed mono-basic 2.4.2 (installed with zypper as advised 
by mono website)


Regards
Jochen

___
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] ASP.Net default language setting lost while update

2009-07-02 Thread Robert Jordan
Jochen Wezel - CompuMaster GmbH wrote:
> Is there any plan to prevent overriding of my custom settings? Or if
> no and it always overrides, can it override with the default M$ value
> (=VB) to keep compatible to M$ behaviour?

Use your app's web.config for this kind of changes.

VB cannot be set as default, because its compiler and providers are
not as mature as gmcs'.

BTW, your 'S' key is damaged.

Robert

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


Re: [Mono-list] ASP.Net compilation error with C# and Mono V2.4.2

2009-07-02 Thread Robert Jordan
Jochen Wezel - CompuMaster GmbH wrote:
> Hello,
> 
> I've got this error when trying to access my test website and if I've put a 
> file "cammWM.dll" into my bin directory:
> 
...

> Stack Trace: 
> 
> System.Reflection.ReflectionTypeLoadException: The classes in the module 
> cannot be loaded.
>   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
>   at System.Reflection.Assembly.GetTypes () [0x0] 

Run this assembly through peverify under MS.NET to confirm
it's verifiable.

If yes, file a bug at http://mono-project.com/Bugs together with
a test case. IIRC, you can mark bugs as Novell-only, so you can
attach the assembly even if it's confidential.

Robert

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


Re: [Mono-list] ASP.Net compilation error with C# and Mono V2.4.2

2009-07-02 Thread Ferdinand Funke
Same problem to me. I ran peverify on any assembly included in my 
project, but all passed without any problems.
Did anyone already file a bug?

Ferdinand
Robert Jordan schrieb:
> Jochen Wezel - CompuMaster GmbH wrote:
>  
>> Hello,
>>
>> I've got this error when trying to access my test website and if I've 
>> put a file "cammWM.dll" into my bin directory:
>>
>> 
> ...
>
>  
>> Stack Trace:
>> System.Reflection.ReflectionTypeLoadException: The classes in the 
>> module cannot be loaded.
>>   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes 
>> (bool)
>>   at System.Reflection.Assembly.GetTypes () [0x0] 
>
> Run this assembly through peverify under MS.NET to confirm
> it's verifiable.
>
> If yes, file a bug at http://mono-project.com/Bugs together with
> a test case. IIRC, you can mark bugs as Novell-only, so you can
> attach the assembly even if it's confidential.
>
> 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


[Mono-list] Unable to find 'resgen' tool

2009-07-02 Thread Darrek

I am trying to build a program solution from Visual Studio, but I keep
getting this error that it cannot find the resgen tool.  Any suggestions?  I
am using Windows.  I have searched the forums, but haven't been able to find
a solution to this problem.  I have the 3.5 framework installed.

http://www.nabble.com/file/p24297135/unabletofindresgentool.png 
-- 
View this message in context: 
http://www.nabble.com/Unable-to-find-%27resgen%27-tool-tp24297135p24297135.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] Use MonoTouch In MonoDevelop for Windows

2009-07-02 Thread Lennie De Villiers
Hi,

I've the latest Mono and MonoDevelop for Windows, where can I get the
templates etc for writing MonoTouch iPhone apps?

thanks

cheers

Lennie

-- 
Lennie De Villiers Blog: http://lenniedevilliers.blogspot.com/
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Can install MONO on OpenSUSE without GNOME/IDE and X.Server

2009-07-02 Thread anigold

i installed the opensuse(Ent Desktop 11) and did not choose features GNOME
and X Server.
The mono setup process has not pop-up error messages.

finally, i run one winform app complied by VS2005,it tell me "File does on
contain a valid CIL image."
i run mono-test-install.show following msg:
---
Warning: pkg-config could not found mono installed on this system.
No dotnet pkgconfig found, windows.forms,windows.drawing and other will not
work.
--

i found it through google 
http://stuff.mit.edu/afs/athena/software/mono_v1.9.1/bin/mono-test-install

so have any ideas about it?
thanks.
-- 
View this message in context: 
http://www.nabble.com/Can-install-MONO-on-OpenSUSE-without-GNOME-IDE-and-X.Server-tp24316469p24316469.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