Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Problem overriding DataPortalUrl property at runtime

$
0
0

Hi,

I have a silverlight application which connects to a WCF service using HTTPS using CSLA framework.  As usual the service references are stored in ServiceReferences.clientconfig.  That is a problem and we have to hack .xap file when we deploy on production.  What tried to set endpoint address at runtime but CSLA throws

Normal 0 false false false EN-NZ ZH-CN X-NONE"The provided URI scheme 'https' is invalid; expected 'http'"

exception.  Please note that this exception does not occur when endpoint address is picked from client configuration file.  So that means CSLA data portal is doing something when we override DataPortalUrl property.  This does not look like WCF configuration or HTTPS issue.


//    base.DataPortalUrl = dynamicURL;//build dynamic url here

If someone has attempted this earlier, please help me.

Regards,

Murtaza

 


Viewing all articles
Browse latest Browse all 764

Trending Articles