Print Page | Close Window

Exception when more than one user connects

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2205
Printed Date: 29-Jul-2026 at 6:19am


Topic: Exception when more than one user connects
Posted By: GeorgeB
Subject: Exception when more than one user connects
Date Posted: 30-Sep-2010 at 7:32am
Hi
 
DevForce Silverlight 6.0.6c (waiting for sales to send me the link for 6.0.6j)
 
I'm getting an exception on our IIS6 production server when more than one user tries to connect.
 
The first user can open as many browser sessions as they want but as soon as another user on another PC tries to login, bang, exception.
 
I've tested against IIS 7.5 and it seems to work okay. Not sure what could be different on IIS 6 (besides being OLD tech).
We have a new server coming in a few days but we have more EAP customers joining next week and I need to have a working solution.
 
Below is the exception copied from the Event Viewer.
 
WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/35320229
 Exception:
System.ServiceModel.ServiceActivationException: The service '/Portal/EntityServer.svc' cannot be activated due to an exception during compilation. 
The exception message is: Object reference not set to an instance of an object.. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at IdeaBlade.EntityModel.Server.EntityServerHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   --- End of inner exception stack trace ---
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
 Process Name: w3wp
 Process ID: 28096
 
Kr
George
 



Replies:
Posted By: GeorgeB
Date Posted: 01-Oct-2010 at 4:50am
Hi
 
Upgraded to 6.0.6k and had one of our support people make some changes and it's now working as expected.
 
Not sure what the problem was or what fixed it.
 
I'm just happy that everything is running as expected.
 
kr
George


Posted By: sbelini
Date Posted: 04-Oct-2010 at 4:35pm
Hi George,
 
glad the issue is fixed.
Normally, the web.config/global.asax files would look different if deploying on IIS6 or IIS7.5 and that could be a good lead on pinpointing the issue. Well, it's gone now.


Posted By: GeorgeB
Date Posted: 05-Oct-2010 at 11:06am
Hi sbelini
 
I hate not knowing what caused it or how it was fixed. It's not in my nature.
 
As I said we're getting a new server in the next few days and IIS 7.5 will be my new best friend.
 
I just need to back off and be patient.
 
Kr
GeorgeB


Posted By: BringerOD
Date Posted: 05-Oct-2010 at 12:33pm

I am getting the same error.  I am using 7.5 as well.

I am user devforce 6.0.5.0.

Is there an update that fixes this.  I am not sure if it is due to a login issue as above.  The only way I fixed it is rebooting the server.  I tried restarting the web site, then starting and stopping IIS, the reboot was the only fix.

Is there a later version than 6.0.5.0?


Bryan


Here is the error.


WebHost failed to process a request.

 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/12036987

 Exception: System.ServiceModel.ServiceActivationException: The service '/EntityServer.svc' cannot be activated due to an exception during compilation.  The exception message is: Object reference not set to an instance of an object.. ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at IdeaBlade.EntityModel.Server.EntityServerHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

   --- End of inner exception stack trace ---

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

 Process Name: w3wp

 Process ID: 3008



Posted By: BringerOD
Date Posted: 05-Oct-2010 at 12:34pm
Sorry my error was WPF not Silverlight.


Posted By: BringerOD
Date Posted: 13-Oct-2010 at 11:56am
I am still getting this error 3 times a day it seems.
 
Users are then not able to log in.
 
Anyone have any ideas?
 
 


Posted By: kimj
Date Posted: 13-Oct-2010 at 4:03pm
BringerOD, can you post, or send to support, your web.config and server debuglog files, as well as additional information on how the web site / application is configured.  Does the exception always occur when another user tries to connect?



Print Page | Close Window