ASP 3.0 / COM+ / Web Service Issues

D

Drew

Here is the scenario:
We have an ASP 3.0 web page that calls a COM+ component. This
component is written in VB.NET usng Enterprise Services. The
component is working fine from a COM+ standpoint. The component is
supposed to try to consume a web services and return the xml. The web
service is in vb.net and currently has hardcoded xml to return. I
have tested the web service and it works fine.

No the strange part.

When we call the web page, it calls the COM+ component and returns the
following error:

Response object error 'ASP 0106 : 80020005'
Type Mismatch
/test.asp, line 0
An unhandled data type was encountered.

Object reference not set to an instance of an object. CSL
at CSL.VendorCSLFeed.ErrorInWebService()
at CSL.VendorCSLFeed.TestDbConnectivity()


I have included the method being called:



Public Function TestDbConnectivity() As Object
Try

Dim _Service As New TestFeed.Feed
_Service.Timeout = 30000
TestDbConnectivity = _Service.TestDbConnectivity()

Catch ex As Exception

Dim Mailer As New MailMessage
Mailer.To = "(e-mail address removed)"
Mailer.From = "(e-mail address removed)"
Mailer.Subject = System.DateTime.Now & " - Error in Web
Service Middle Component"
Mailer.Body = ex.Message & Environment.NewLine & ex.Source
& Environment.NewLine & ex.StackTrace
SmtpMail.Send(Mailer)

TestDbConnectivity = ErrorInWebService()
End Try
End Function


Thanks.

Drew
 
L

Lewis Wang [MSFT]

Hi Drewmace,

There are two problems about this issue. One is that the asp is running
under the IUSER account by default, so the COM+ may not have enough
privilege to call the web service which can not be accessed by anonymous
and throws out an exception.

You may go to the Component Services in Administrative Tools and right
click on the COM+ component, select properties. On the activation tab,
select "server application" and on the Identity tab, set a user account
with enough privilege to call the web service. Instead of doing this, you
can also do impersonation from code.

The second is that some errors may occur in ErrorInWebService(), so the
error was returned. Would you please past some code snippet in asp and in
ErrorInWebService()? Thanks.

Hope this helps.

Best regards,
Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: (e-mail address removed) (Drew)
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
| Subject: ASP 3.0 / COM+ / Web Service Issues
| Date: 2 Sep 2003 07:03:32 -0700
| Organization: http://groups.google.com/
| Lines: 53
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 205.229.197.195
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1062511413 4550 127.0.0.1 (2 Sep 2003
14:03:33 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: 2 Sep 2003 14:03:33 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.nntp.be!propagator2-ster
ling!In.nntp.be!tdsnet-transit!newspeer.tds.net!sn-xit-02!sn-xit-04!sn-xit-0
1!sn-xit-09!supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:19137
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
|
| Here is the scenario:
| We have an ASP 3.0 web page that calls a COM+ component. This
| component is written in VB.NET usng Enterprise Services. The
| component is working fine from a COM+ standpoint. The component is
| supposed to try to consume a web services and return the xml. The web
| service is in vb.net and currently has hardcoded xml to return. I
| have tested the web service and it works fine.
|
| No the strange part.
|
| When we call the web page, it calls the COM+ component and returns the
| following error:
|
| Response object error 'ASP 0106 : 80020005'
| Type Mismatch
| /test.asp, line 0
| An unhandled data type was encountered.
|
| Object reference not set to an instance of an object. CSL
| at CSL.VendorCSLFeed.ErrorInWebService()
| at CSL.VendorCSLFeed.TestDbConnectivity()
|
|
| I have included the method being called:
|
|
|
| Public Function TestDbConnectivity() As Object
| Try
|
| Dim _Service As New TestFeed.Feed
| _Service.Timeout = 30000
| TestDbConnectivity = _Service.TestDbConnectivity()
|
| Catch ex As Exception
|
| Dim Mailer As New MailMessage
| Mailer.To = "(e-mail address removed)"
| Mailer.From = "(e-mail address removed)"
| Mailer.Subject = System.DateTime.Now & " - Error in Web
| Service Middle Component"
| Mailer.Body = ex.Message & Environment.NewLine & ex.Source
| & Environment.NewLine & ex.StackTrace
| SmtpMail.Send(Mailer)
|
| TestDbConnectivity = ErrorInWebService()
| End Try
| End Function
|
|
| Thanks.
|
| Drew
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top