New Posts New Posts RSS Feed: Help needed with web.config
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Help needed with web.config

 Post Reply Post Reply
Author
mseeli View Drop Down
Newbie
Newbie
Avatar

Joined: 20-Sep-2010
Location: Switzerland
Posts: 31
Post Options Post Options   Quote mseeli Quote  Post ReplyReply Direct Link To This Post Topic: Help needed with web.config
    Posted: 25-Jan-2013 at 5:44am
I have a wpf n-tier application made from the standard DevForce template. It is currently using the IIS-Express 7 and is working fine.

the webconfig and the app.config look like this:


Web.Config: (no changes to the one provided by the template except the addition of hte httpRunntime targetFramework

  <system.web>
    <httpRuntime targetFramework="4.5" />
    <compilation>
        <assemblies>
            <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
    </compilation>
  </system.web>

The app.config is also standard an looks like this:

    <objectServer remoteBaseURL="http://localhost" serverPort="50372" serviceName="EntityService.svc" >
      <clientSettings isDistributed="true" />
    </objectServer>

I would like to move it form IIS-Express to the IIS (in a virtual directory)

In Visual Studio I can see the following path:

http://localhost/VisSolutionsWebServer   

I thus changed the app.config as follows:


    <objectServer remoteBaseURL="http://localhost/VisSolutionsWebServer" serviceName="EntityService.svc" >
      <clientSettings isDistributed="true" />
    </objectServer>

When I start the application I get the following error:

on the statement:

await  Authenticator.Instance.LoginAsync();

With the message: "http://localhost/VisSolutionsWebServer/VisSolutionsWebServer/EntityServer.svc could not be activated.

It seems to me that the above address is wrong it should be:
http://localhost/VisSolutionsWebServer/EntityServer.svc

But I have no idea where the wrong address comes from or how I could change it.
What am I doing wrong?




Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jan-2013 at 8:27am
For somewhat obscure legacy reasons, the application name should be specified in the serviceName and the remoteBaseURL should contain only the ip/machine name.

RemoteBaseURL="http://localhost" serviceName="VisSolutionsWebServer/EntityService.svc"
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down