csla 3.6.1 with vs 2008 express stuff

csla 3.6.1 with vs 2008 express stuff

Old forum URL: forums.lhotka.net/forums/t/6996.aspx


pillesoft posted on Monday, May 25, 2009

i have problem with csla.net 3.6.1 using visual c# 2008 express and devexpress.

in c# express i want to start Win project. after entering pm/pm in login window i receive the following exception in csla\DataPortal.cs in line 262:
System.ServiceModel.CommunicationException was unhandled
  Message="Security negotiation failed because the remote party did not send back a reply in a timely manner. This may be because the underlying transport connection was aborted."

i know it is written in the guide that i need studio, but i don't have...
the wcfhost is running from devexpress (debug mode)

i would appreciate if somebody can help me, what i miss here.
thanks
Ivan

RockfordLhotka replied on Monday, May 25, 2009

I don't use the Express versions, so I'm not real sure about the current limitations.

The PTWin project (I assume that's what you are talking about?) uses a remote data portal. That means that there must be a web server running, hosting the server-side data portal and your business components.

Is it possible that Express doesn't automatically start the web server?

pillesoft replied on Monday, May 25, 2009

thanks for replying.
yes, it is the ptwin project from ...\Projects\CslaNet.3.6.1\cs\ProjectTrackercs folder

i'm really not an expert of wcf ...
what i did is opened WcfHost project from www folder with devexpress, and start it manually.
it started in http://localhost:1982/WcfHost/ url

this url i put in ptwin project app.config file
    <client>
      <endpoint name="WcfDataPortal"
                address="http://localhost:1982/WcfHost/WcfPortal.svc"
                binding="wsHttpBinding"
                contract="Csla.Server.Hosts.IWcfPortal" />
    </client>

so, wcfhost is running, starting ptwin project, entering pm/pm and received the exception (in the prev. message)
do i need to run something else ?

Ivan

RockfordLhotka replied on Monday, May 25, 2009

Try navigating to the server URL in a browser to make sure it is actually working and that you have the right address.

pillesoft replied on Monday, May 25, 2009

clicking on this url
http://localhost:1982/WcfHost/WcfPortal.svc

gives error

what is missing then?
The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found.BODY { FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: "Verdana" } P { MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: "Verdana" } B { MARGIN-TOP: -5px; FONT-WEIGHT: bold; COLOR: black; FONT-FAMILY: "Verdana" } H1 { FONT-WEIGHT: normal; FONT-SIZE: 18pt; COLOR: red; FONT-FAMILY: "Verdana" } H2 { FONT-WEIGHT: normal; FONT-SIZE: 14pt; COLOR: maroon; FONT-FAMILY: "Verdana" } PRE { FONT-SIZE: 0.9em; FONT-FAMILY: "Lucida Console" } .marker { FONT-WEIGHT: bold; COLOR: black; TEXT-DECORATION: none } .version { COLOR: gray } .error { MARGIN-BOTTOM: 10px } .expandable { FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy; TEXT-DECORATION: underline }

Server Error in '/WcfHost' Application.

The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found.]
   System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +4072062
   System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +11656092
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479

[ServiceActivationException: The service '/WcfHost/WcfPortal.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'Csla.Server.Hosts.WcfPortal', provided as the Service attribute value in the ServiceHost directive could not be found..]
   System.ServiceModel.AsyncResult.End(IAsyncResult result) +11527290
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
   System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +278
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

RockfordLhotka replied on Monday, May 25, 2009

It sounds like Csla.dll isn’t in your bin directory.

pillesoft replied on Thursday, May 28, 2009

right,

the problem was that this service didn't contain the csla.dll and the other projecttracker related dlls.
after i added them as Reference to this project and build it the whole application is working

thank you very much!

Ivan

Copyright (c) Marimer LLC