Re: Error with Remoting Events in ASP.NET application: Type Initializer error
- From: "GuidoD" <noreply@xxxxxxxx>
- Date: Tue, 5 Apr 2005 12:37:53 +0200
Does the exception have any inner exceptions?
<RobbieGotNeeds@xxxxxxxxxxxx> wrote in message
news:1112627321.155174.123730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have a Windows service that checks the availability of something.
> I use remoting to publish events, and I've gotten multiple
> Windows forms applications to subscribe to these events.
>
> Now, I want my ASP.NET web application to subscribe to these
> events as well. In my ASP.NET application I have a static
> class constructor which basically sets up stuff for the app to
> run OK. Now, I copied the same code from my Windows forms
> clients to the static class constructor of my ASP.NET app, and
> I added the event methods. I made these static too since these
> will be available to all instances. The code compiled OK,
> and the ASP.NET app loads without error. However, when my
> Windows service fires an event, the Windows service program traps an
> error:
>
> The type initializer for "..." threw an exception.
>
> It seems that my Windows service program (the server that hosts the
> remoting object) knows about the ASP.NET application events that are
> subscribed to it, but somehow is choking on them with the above error.
> (It returns the same error everytime the event fires.) Why is this?
> The only difference between my test Windows Forms client
> and my ASP.NET client is that I connect to my remoting object in the
> static
> class constructor and my event metods are also staic.
>
> Am I missing something fundamental here? Any ideas?
>
.
- Follow-Ups:
- Re: Error with Remoting Events in ASP.NET application: Type Initializer error
- From: RobbieGotNeeds
- Re: Error with Remoting Events in ASP.NET application: Type Initializer error
- References:
- Error with Remoting Events in ASP.NET application: Type Initializer error
- From: RobbieGotNeeds
- Error with Remoting Events in ASP.NET application: Type Initializer error
- Prev by Date: Re: not marked as serializable
- Next by Date: Authentication using non-default credentials?
- Previous by thread: Error with Remoting Events in ASP.NET application: Type Initializer error
- Next by thread: Re: Error with Remoting Events in ASP.NET application: Type Initializer error
- Index(es):
Relevant Pages
|