Understanding the Rolodex Sample

Understanding the Rolodex Sample

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


FCazabon posted on Tuesday, November 10, 2009

Hi,

I'm still pretty new at this CSLA/C#/.NET stuff, but am getting a bit more comfortable.

I am trying to understand how the Rolodex sample (in CSLA silverlight 3.8) works. By right clicking on the Solution 'Rolodex' node of the Solution Explorer and choosing "Properties", I see that "Current Selection" is set as the Startup Project.

As I have understood from some threads here, the "Web" project should be the Startup project. Is that right?

If I run with "Web" as the startup project I get the login form displaying, but always get "Invalid User" when I try the suggested user id and password. Doing it this way displays one ASP.NET Development server icon in the System Tray.

However, if I first run with "WcfHostWeb" as the currently selected (and hence startup) project, then I run with "Web" selected, I am then able to login successfully. Doing things this way displays two ASP.NET Development server icons in the System Tray.

Is this (the second technique) the way that things are supposed to be done, or is the WcfHostWeb supposed to run automatically?

FCazabon replied on Monday, November 16, 2009

I really hope that my first message was just missed. Can anyone explain this to me?

skagen00 replied on Monday, November 16, 2009

I tend to set things up under IIS so this isn't entirely applicable to me but you do know you can specify more than one startup project, right?

FCazabon replied on Monday, November 16, 2009

Yes, I have encountered that. But as this is the sample that comes with the framework I didn't want to change the default way of working. So are you saying the sample is not configured properly and I should set both the projects up to start?

Thanks for jumping in :)

sergeyb replied on Monday, November 16, 2009

Just to make it clear, the solution was setup to illustrate how to setup WCF host and Silverlight host in separate projects (in case you would like to scale them separately). On another note, I always combine those two projects into one during development to ease the debugging.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: FCazabon [mailto:cslanet@lhotka.net]
Sent: Monday, November 16, 2009 11:22 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Understanding the Rolodex Sample

Yes, I have encountered that. But as this is the sample that comes with the framework I didn't want to change the default way of working. So are you saying the sample is not configured properly and I should set both the projects up to start?

Thanks for jumping in :)

FCazabon replied on Monday, November 16, 2009

Sergey,

just to make it even more clear :)

Do I need to run each one separately or do I need to set both the web and the WCF as startup projects?

sergeyb replied on Monday, November 16, 2009

You can set them both up as start up projects. Or, which is what I was alluding to, just combine them into a single project.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: FCazabon [mailto:cslanet@lhotka.net]
Sent: Monday, November 16, 2009 12:46 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Understanding the Rolodex Sample

Sergey,

just to make it even more clear :)

Do I need to run each one separately or do I need to set both the web and the WCF as startup projects?

FCazabon replied on Tuesday, November 17, 2009

Thanks

Copyright (c) Marimer LLC