Hello all,

I've written a couple of Console applications that work fine with .Net
Framework 4 and the latest Xcc .Net libraries. However, if I use the
libraries in a Web Application I get the error below. It looks to me to be a
bug in the, very old, version of IKVM that has been used. Is there a plan to
fix this or does anyone know of a work-around (other than switching back to
.Net 3.5)?

The error occurs on the first call to ContentSourceFactory.NewContentSource

i.e. in Default.aspx

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Marklogic.Xcc;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ContentSource cs = ContentSourceFactory.NewContentSource(new
Uri("xcc://***********:***...@linux:8010"));
            Session session = cs.NewSession();

        }
    }
}

Cheers

Dom

[NotSupportedException: The invoked member is not supported in a dynamic
assembly.]
 
System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceInfo(Strin
g resourceName) +56
   IKVM.NativeCode.java.lang.VMClassLoader.findResourceAssembly(String name)
+166
   java.lang.VMClassLoader.findResourceAssembly(String ) +31
   java.lang.VMClassLoader.getResource(String ) +63
   java.lang.ClassLoader.getResource(String name) +48
   java.lang.ClassLoader.getResourceAsStream(String name) +71
   java.util.ResourceBundle.tryBundle(String , ClassLoader ) +603
   java.util.ResourceBundle.tryBundle(String , Locale , ClassLoader ,
Boolean ) +426
   java.util.ResourceBundle.getBundle(String baseName, Locale locale,
ClassLoader classLoader) +433
   java.util.ResourceBundle.getBundle(String baseName, Locale locale) +81
   gnu.java.util.regex.RE..cctor() +49

[TypeInitializationException: The type initializer for
'gnu.java.util.regex.RE' threw an exception.]
   gnu.java.util.regex.RE.getLocalizedMessage(String ) +0
   gnu.java.util.regex.RESyntax..cctor() +87

[TypeInitializationException: The type initializer for
'gnu.java.util.regex.RESyntax' threw an exception.]
   java.util.regex.Pattern..ctor(String , Int32 ) +130
   java.util.regex.Pattern.compile(String regex, Int32 flags) +98
   java.util.regex.Pattern.compile(String regex) +33
   java.net.URI..cctor() +31

[TypeInitializationException: The type initializer for 'java.net.URI' threw
an exception.]
   java.net.URI..ctor(String str) +0
   Marklogic.Xcc.ContentSourceFactory.NewContentSource(Uri uri) +92
   WebApplication1._Default.Page_Load(Object sender, EventArgs e) in
C:\Users\dominic\Documents\Visual Studio
2010\Projects\WebApplication1\WebApplication1\Default.aspx.cs:14
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207



_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to