CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

How to configure CSLA4 client without using the WcfPortal?

rated by 0 users
Answered (Verified) This post has 2 verified answers | 4 Replies | 0 Followers

Top 100 Contributor
68 Posts
superkuton posted on Sun, Jul 1 2012 4:22 AM

For client testing purposes (no dedicated server yet), I want to configure a windows app in CSLA4 without using the WcfPortal. What settings do I need to do?

Thank you.

Answered (Verified) Verified Answer

Top 10 Contributor
1,770 Posts
Verified by superkuton

To run everything inline in the same process remove/comment the following setting in app.config

    <add key="CslaDataPortalProxy" value="-....."/>

If you wish to run a local app server you will need to edit the settings to f.ex:

    <add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>
    <add key ="CslaDataPortalUrl" value ="http://localhost:21647/WcfPortal.svc"/>

To use the local "server".

Jonny Bekkum, Norway CslaContrib Coordinator

Top 10 Contributor
1,770 Posts
Verified by superkuton

Any additional settings required for the "server" must be added to the app.config in your windows app.

Jonny Bekkum, Norway CslaContrib Coordinator

All Replies

Top 10 Contributor
1,770 Posts
Verified by superkuton

To run everything inline in the same process remove/comment the following setting in app.config

    <add key="CslaDataPortalProxy" value="-....."/>

If you wish to run a local app server you will need to edit the settings to f.ex:

    <add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla"/>
    <add key ="CslaDataPortalUrl" value ="http://localhost:21647/WcfPortal.svc"/>

To use the local "server".

Jonny Bekkum, Norway CslaContrib Coordinator

Top 100 Contributor
68 Posts

JonnyBee,

where will I specify the connection strings?

Thanks.

Top 10 Contributor
1,770 Posts
Verified by superkuton

Any additional settings required for the "server" must be added to the app.config in your windows app.

Jonny Bekkum, Norway CslaContrib Coordinator

Top 100 Contributor
68 Posts

Got it!

Thanks JonnyBee.

 

Page 1 of 1 (5 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems