Hi,
I am trying to return a Class from a webservice, the Class is very complex.
(over 50 functions, several sub-classes, etc)
The problem is, if I do the following in the webservice:
<WebMethod()> _
Public Function RemoteInventory(ByVal Product_ID As String) As
DacsaSupport.Inventory
Dim cInventory As New Inventory
If cInventory.Populate(Product_ID) Then
Return cInventory
Else
Return Nothing
End If
End Function
When I compile the webservice project, it compiles OK, but when trying to
update the reference of the webservice, I get "Jit debugger" access denied,
then "Application unavailable" on the service, aspnet_wp service crashes and
restarts.
Removing this function, and the webservice runs OK.
I suspect that its because reflection cannot decode some items in my
Inventory object, but can I get it to work anyway?
Ive tried to change the function to return an object instead, that works
until I actually accessing the function, then I get the same error and
service crash.
Any tips are welcome.
- Fredrik 1 1053
With SP1 for 1.1 I still get the same error, but now I can see that the
error is StackOverflowException
Anyone have any thoughts?
"Fredrik Melin" <me*@no-spam.dacsa-remove-this.net> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl... Hi,
I am trying to return a Class from a webservice, the Class is very
complex. (over 50 functions, several sub-classes, etc)
The problem is, if I do the following in the webservice:
<WebMethod()> _ Public Function RemoteInventory(ByVal Product_ID As String) As DacsaSupport.Inventory Dim cInventory As New Inventory
If cInventory.Populate(Product_ID) Then Return cInventory Else Return Nothing End If End Function
When I compile the webservice project, it compiles OK, but when trying to update the reference of the webservice, I get "Jit debugger" access
denied, then "Application unavailable" on the service, aspnet_wp service crashes
and restarts.
Removing this function, and the webservice runs OK.
I suspect that its because reflection cannot decode some items in my Inventory object, but can I get it to work anyway?
Ive tried to change the function to return an object instead, that works until I actually accessing the function, then I get the same error and service crash.
Any tips are welcome.
- Fredrik
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: DraguVaso |
last post by:
Hi,
I'm new to WebServices, and I'm doing some tests (with a small
VB.NET-application) to know the performance-difference between a WebService
and the 'normal'-way of getting data (just...
|
by: Davie |
last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for
some reason I keep getting a null reference exception when I try to run the
following code: It seems to work fine on a...
|
by: Nalaka |
last post by:
Hi,
I am testing with Visual studio 2005, web projects.
Situation:
I have one solution with two web projects, created as file system projects.
(I am tesing using the built in server, not IIS)...
|
by: Miguel |
last post by:
Hi,
I'm developing an application in C# with Windows Forms for my company
that is similar to the MSN Messenger. This application uses a
webservice for registering users, etc... and as 2...
|
by: Alessandro Benedetti |
last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice
(B).
The A Webservice is made like this:
public class WSA: System.Web.Services.WebService
{
private int X = 0;
|
by: Nalaka |
last post by:
Hi,
I created a sinple web service that returns a dataSet.
Then I created a client program that uses this web service (that returns the
Dataset).
My question is, how did the client figure...
|
by: AliR |
last post by:
Hi Everyone,
I have a Visual C++ MFC program, and I am trying to use a webservice written
in C#. When I add the webservice to my project using Add Web Reference the
sproxy compiler complains...
|
by: 'Mani |
last post by:
Hi All,
I have an application written in C++ which uses GSoap to make
webservice requests.
The application works fine in Windows 2003 and Windows XP. But when we
tried to run the application...
|
by: =?Utf-8?B?TWFuaQ==?= |
last post by:
Hi All,
Problem in deploying my WebService developed using Asp.net WebServices 2005.
I have designed simple WebService using Asp.net Webservices 2.0 , The
webservice look this ,
using System;...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |