[Mono-dev] Fwd: webservice under mono/xsp

Chakotey STME chakoteystme at gmail.com
Wed Sep 15 03:59:49 EDT 2010


Hello Community,

does nobody knows an answer? Or
don't you know what I mean? Or
is it impossible what I want to do?

thanks


---------- Forwarded message ----------
From: Chakotey STME <chakoteystme at gmail.com>
Date: 2010/9/13
Subject: webservice under mono/xsp
To: mono-devel-list at lists.ximian.com


Hello Community,

I have a webservice-project with nearly no functions and I want to
publish it in my local network.

Under Windows with IIS I have no problem to publish my webservice.
I have a precompiled library (my VB-Code) and a asmx-file.

Here is the content of my asmx-file:

<%@ WebService Language="VB" CodeBehind="~/App_Code/MYVBCLASS.vb"
Class="PROJECTNAME.CLASSNAME" %>



It works good under the IIS.

If I try it under mono and XSP I get this error:
Error 500 - Typ PROJECTNAME.CLASSNAME not found
I put the library of my code into a bin-directory or in the same
directory the asmx-file exists. It doesn't work.


It works under XSP if I take my Code directly into my asmx-file like this:

<%@ WebService Language="VB" Class="MyClass" %>

Imports ...

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class MyClass
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function MyFunction() As Blabla()

    End Function

End Class

-----------------------

So, is there a way to use a library in the asmx-file under mono and
xsp? What have I to do for it?

thanks,

chakoteystme


More information about the Mono-devel-list mailing list