CSLA Silverlight and WCF Deployment

CSLA Silverlight and WCF Deployment

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


pgroenenstein posted on Wednesday, January 12, 2011

Hi everybody I'm struggling to deploy a SL app. Everythings works 100% in the development environment. But when I deploy it, my Wcf Service fails to Start. If I start the App in VS and THEN start the "default" page from within my browser it works like a charm. I have set my Wcf project as my startup project.

 

I know I must "make" my Wcf into a windows service...but I'm totally at lack for it on how to go about it..

 

What I need to know is how to set up my app in order for my service to start automatically when a user request the default page from my website.

 

Thank you.

 

sergeyb replied on Wednesday, January 12, 2011

I do not think you "must" make Wcf into Windows service.  You can if you want to, but I have never done so.  I let Wcf live in IIS along with SL app.  I think this is much easier for deploymnet, since you need web server to serve SL app anyway.  If your windows service fails to start, it is likely throughing unhandles exception that should end up in Windows Event Log.

pgroenenstein replied on Wednesday, January 12, 2011

Thanks Sergey for your reply, after surfing the net I gathered that I should rather stick with vanilla IIS. But I'm totally at a loss as to what setting need to be set in my app o make it deployable on IIS.

Thanks

 

pgroenenstein replied on Wednesday, January 12, 2011

No events get registered in Event viewer..not even the opening of the database(which does get logged in dev time).

 

sergeyb replied on Wednesday, January 12, 2011

Navigate to WcfPortal.svc (or whatever you called it) in IE in your deployment environment to verify that WCF is installed properly.  Then check your ServiceReference.ClicnConfig to make sure it points to the same place.

pgroenenstein replied on Thursday, January 13, 2011

Thanks again for your reply Sergey.

That is just it, My WCF services does not seem to be working. But I have no clue how to fix it.

When last I played around with CSLA and WCF I eventually got it to work, but that over a year ago  and I forgot the steps involved.

Thanks

pgroenenstein replied on Wednesday, January 12, 2011

Can anybody please help! I'm going nuts here! I JUST want to deploy my perfectly working app in dev enviroment to IIS. What can possibly be so difficult. I usde the "Rolodex" project as template and worked from there to make my App work. My "app" is a SL 3 app using CSLA 3.8.4.

 

Everything just works great in dev time, but I CANNOT get it to work in IIS.. It shows my "first" login screen but just returns an invalid login each and everytime. Should I start the aap in Dev time THEN my "IIS" app sees the service, uses it and execute normally.

In IIS the SL app JUST DOES NOT START  the Wcf Services. ALL the sample on the net for working with Wcf DIFFER such a great deal from the Rolodex Sample that it is a daunting task to try and figure out how to apply it to CSLA type programming.

 

I HAVE NO CLUE where to start even, What setting have to be set in my apps Before I "Publish" and wahat not?

 

Please help!

 

Copyright (c) Marimer LLC