« Previous Next »

Answered Thread: Consume .Net Webserive with ASP - Problem creating .net object.

Last post 12-06-2008 7:16 AM by steve schofield. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 12-03-2008, 7:54 AM

    • miketremp
    • Not Ranked
    • Joined on 12-03-2008, 12:40 PM
    • Posts 2

    Consume .Net Webserive with ASP - Problem creating .net object.

    Hello

    I'm trying to consume a .net webserivce from a classic asp page. I followed this guide:

     http://www.codeproject.com/KB/dotnet/dotnetcomponentandasp.aspx

    I have a .net class which is a proxy class generated from the webservice's wdsl, I marked the assembly to be COM-visible and registered it on my IIS server with regasm.

    So far, so good -  I can create the object on the asp page like this:

    Dim Obj
    Set Obj = Server.CreateObject("Namespace.testClass")

    the testClass looks like this:

        public partial class testClass { ... }

     

    Now this was just for testing, now I want to create an object, whose class looks like this:

        public partial class testClass2 : Microsoft.Web.Services3.WebServicesClientProtocol { ... }

     

    And then I get an asp error ('ASP 0177 : 80131509'), obviously because Microsoft.Web.Services3.WebServicesClientProtocol (which is contained in Microsoft.Web.Services3.dll) cannot be found/referenced/whatever the correct term is.

    Microsoft.Web.Services3.dll is referenced correctly in the Visual Studio project and it is also in the GAC of the server. Now how do I make that library available to asp?

    I'd be grateful for any help. Thanks!

     

  • 12-04-2008, 9:32 PM In reply to

    Re: Consume .Net Webserive with ASP - Problem creating .net object.

    I'd recommend you ask @ forums.asp.net  That is meant more for coding questions.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-05-2008, 5:36 AM In reply to

    • miketremp
    • Not Ranked
    • Joined on 12-03-2008, 12:40 PM
    • Posts 2

    Re: Consume .Net Webserive with ASP - Problem creating .net object.

    Thanks. I will try that, although it is not ASP.NET related problem, rather classic ASP.

     

  • 12-06-2008, 7:12 AM In reply to

    Answered Re: Consume .Net Webserive with ASP - Problem creating .net object.

    I under that, they have a xml web services forum that might help.  you also could check forums.microsoft.com.  They might have a forum similar for remoting, web services etc.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 12-06-2008, 7:16 AM In reply to

    Answered Re: Consume .Net Webserive with ASP - Problem creating .net object.

    http://www.4guysfromrolla.com/webtech/070302-1.shtml

    http://www.google.com/search?hl=en&q=site%3A4guysfromrolla.com+asp+web+services

    4guysfromrolla.com has a great resource of articles.  I'm not sure what you are looking for, it's been ages since I did deep dive coding in ASP and Web services.  I hope that provides some direction / advice.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (5 items)
Microsoft Communities