This project is read-only.
1

Closed

Designtime ServerBaseUri not set

description

After upgrading to 4.5, when trying to modify my SL5 XAML views, I am getting a designtime error - "Could not use ServerBaseUri and the serviceUri to create an absolute Uri." It looks like for a workaround I should assign a ServerBaseUri in designtime, but I can't figure out what to use.

Any ideas on this?
public App()
        {
            if (DesignerProperties.IsInDesignTool)
            {
                DomainContext.DomainClientFactory = new WebDomainClientFactory()
                {
                    //ServerBaseUri = Application.Current?.Host?.Source
                    //ServerBaseUri = new Uri(@"C:\Users\username\Source\Repos\appname\")
                    //ServerBaseUri = new Uri(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))
                    ServerBaseUri = new Uri("http://localhost:24711/", UriKind.Absolute), //debug setting
                };
            }

            InitializeComponent();

           
Closed Jun 14 at 1:55 PM by danneesset
Hm, sorry for not replying earlier but I did write and post an update this weekend but it seems like it failed to save. Anyway it seems like I fixed the issue and a new nuget package has been published

Fixed in 4.5.0.1 release of the client core package.

comments

danneesset wrote Jun 14 at 1:50 PM

Fixed in changeset 8bc116ffa675bd4c5c2fe68948be9ac234e50e31