I have started toying with the sample projects released along with the latest CSLA.NET Lite release. Unfortunately, there is very documentation on how to best get these projects to execute and I have run up against the following exception being raised:
"The remote server returned an error: NotFound"
Now, this is likely a simple configuration mistake on my part, but I am a little confused. Any assistance would be appreciated.
Try to check ServiceReferences.ClientConfig and compare the port
number to the port of the web project. They need to be pointing to the
same port number.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 12:53 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Rolodex Sample Project - Error
I have
started toying with the sample projects released along with the latest CSLA.NET
Lite release. Unfortunately, there is very documentation on how to best get
these projects to execute and I have run up against the
following exception being raised:
"The
remote server returned an error: NotFound"
Now, this
is likely a simple configuration mistake on my part, but I am a little
confused. Any assistance would be appreciated.
Thanks for the quick response, Sergey. However, everything is pointing to the same port (3026) and that is the port being used by the service site. Should I try setting up the service site within IIS and then removing the port number from the configs?
EDIT: Sorry, I was looking at the wrong project. The ServiceReference.ClientConfig is using port 2430 and so is the Service Site itself.
That would be something to try, however the solution was setup
to run in development server. Does login screen come up at all? You
can also change VS configuration to break on thrown exception just to see if
you can get any insight into the issue…
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 1:27 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Rolodex Sample Project - Error
Thanks
for the quick response, Sergey. However, everything is pointing to the same
port (3026) and that is the port being used by the service site. Should I try
setting up the service site within IIS and then removing the port number from
the configs?
Do you have .\SQLEXPRESS running?
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 1:36 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: Rolodex Sample Project - Error
The
login screen comes up. the exception is thrown when I try logging in using one
the sets of credentials.
Could you try to setup VS to break on thrown exceptions? I
think we need more info on what is going on..
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 1:42 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: Rolodex Sample Project - Error
Yes,
I believe so.
Pardon my ignorance, but I do not see a VS setting for breaking on thrown exceptions. Under Tools | Options I have made sure the following settings are enabled:
Is there another setting somewhere?
Here are the Exception Details:
System.ServiceModel.CommunicationException was unhandled by user code
Message="The remote server returned an error: NotFound"
StackTrace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
at Csla.WcfPortal.WcfPortalClient.WcfPortalClientChannel.EndFetch(IAsyncResult result)
at Csla.WcfPortal.WcfPortalClient.Csla.WcfPortal.IWcfPortal.EndFetch(IAsyncResult result)
at Csla.WcfPortal.WcfPortalClient.OnEndFetch(IAsyncResult result)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound"
StackTrace:
at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
InnerException: System.Net.WebException
Message="The remote server returned an error: NotFound"
StackTrace:
at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
InnerException:
NP. Under Debug menu there should be an items called “Exceptions…”
If you do not see it, you can add it by going to Tools->Customize.
Then click Rearrange Commands. Once you add the menu, you can check the
option under Exceptions…
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 1:54 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: Rolodex Sample Project - Error
Pardon my
ignorance, but I do not see a VS setting for breaking on thrown exceptions.
Under Tools | Options I have made sure the following settings are enabled:
Is there
another setting somewhere?
Is there a particular option you want set? There are 5 categories...I selected CLR Exceptions and checked the Thrown box beside it.
Upon executing, the result is the same...an exception being thrown as indicated previously. I am not clear what additional information you are hoping to gather.
Nope, that was it. The problem is that there could be a
number of error that may result in 404, so I was trying to see which one may be
occurring. Just to cover all the bases, you do have RC 0 installed, including
developer run time? Can you put a breakpoint inside RolodexIndetity.DataPortal_Fetch
to see if it gets hit? Next step would be to setup IIS virtual directory
just to eliminate Cassini.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 2:13 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Rolodex Sample Project - Error
Is there a
particular option you want set? There are 5 categories...I selected CLR
Exceptions and checked the Thrown box beside it.
Upon
executing, the result is the same...an exception being thrown as indicated
previously. I am not clear what additional information you are hoping to
gather.
I do have RC0 installed along with the developer runtime.
The Rolodexidentity class is referenced in two projects: Rolodex.Business.Client and Rolodex.Business.Server. Because the SILVERLIGHT compiler switch is on, the DataPortal_Fetch method is not compiled into the project and thus never called. The GetIdentity method is called and goes through a whole string of method calls, but nothing that appears to be a call to a Fetch method.
For my own sanity, can you verify that my assumption of the communication pathway is correct? The Web project is simply a starting point and calls the Rolodex Silverlight project. The Rolodex.Business.Client project is referenced by the Silverlight project for client-side work. When data is required, a WCF call is made to the WcfWebHost which in turns calls Rolodex.Business.Server. Is this correct?
Correct. You can probably start another version of VS,
attach it to WcfWebHost instance of IE. Then you can set a breakpoint in
DataPortal_Fetch.
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 3:04 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Rolodex Sample Project - Error
I do have
RC0 installed along with the developer runtime.
The
Rolodexidentity class is referenced in two projects: Rolodex.Business.Client
and Rolodex.Business.Server. Because the SILVERLIGHT compiler switch is on, the
DataPortal_Fetch method is not compiled into the project and thus never called.
The GetIdentity method is called and goes through a whole string of method
calls, but nothing that appears to be a call to a Fetch method.
For my own
sanity, can you verify that my assumption of the communication pathway is
correct? The Web project is simply a starting point and calls the Rolodex
Silverlight project. The Rolodex.Business.Client project is referenced by the
Silverlight project for client-side work. When data is required, a WCF call is
made to the WcfWebHost which in turns calls Rolodex.Business.Server. Is this
correct?
Well...I have no idea what I did, but it is now working. I am seriously confused...happy it is working...but confused by what it works now and didn't before.
Thanks for you assistance, Sergey...I really appreciate it.
I am just glad it is working J
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: MGervais
[mailto:cslanet@lhotka.net]
Sent: Monday, September 29, 2008 3:27 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Rolodex Sample Project - Error
Well...I
have no idea what I did, but it is now working. I am seriously confused...happy
it is working...but confused by what it works now and didn't before.
Thanks for
you assistance, Sergey...I really appreciate it.
Copyright (c) Marimer LLC