locked
Deploying to IIS Server, what link to my app? RRS feed

  • Question

  • Hi,

    my app created with VS2012 has silverlight client with forms authentication and I am trying to web-deploy to IIS server with database and client on same machine. Until now I was reading so many tutorials and watched many different tutorial-videos.

    So far I managed to deploy my website to the server without any errors in VS.

    am I ready now?

    however, if i try to start my app I use the link

    http:  / / <serveripv4> / <myappname>

    but I get "Server error 403 forbidden".

    I look inside the directory on the Server

    C:\inetpub\wwwroot\<myappname>

    and find a subdirectory "Client" with a file default.htm

    I am wondering what is the right lik to my app? If I use the link

    http:  / / <serveripv4> / <myappname> / Client

    I get the loading-percentage-view and at the end I get "error in database communication"

    it seems to me the database was not created at all.

    SQL Management Studio does not show the database and in SQL-Server-DATA Directory there is no such database file.

    In VS publish wizard i select

    yes create application admin "MyUserName" and "MyPassword"

    my Connection strings are:

    User Connection:

    Data Source=.\SQLExpress;Initial Catalog=<myappname>;User ID="MyUserName";Password="MyPassword"

    publish Schema:

    Data Source=.\SQLExpress;Initial Catalog=<myappname>;Integrated Security=True

    what should I do now?

    many thanks in advance

    Oliver


    • Edited by OlimilO Friday, May 17, 2013 8:57 AM
    Friday, May 17, 2013 8:41 AM

Answers

  • Hi OlimilO,

    You won't be able to use ".\SQLExpress" on publish because that refers to your local sql express database. Make sure you install SQL Express on the IIS machine and then make sure to use the machine name in the connection string i.e. SERVERIPV4\SQLExpress

    And yes, to get to your Silverlight app you now use \Client folder. This is the case only if you have upgraded to LightSwitch version3 (VS2012 Update 2). This is because you can now have multiple clients (i.e. \HTMLClient).

    I have it on my long list of blog post ideas to rewrite the deployment guide for v3.

    In the meantime, I hope this helps!

    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Friday, May 17, 2013 11:36 PM

All replies

  • Hi OlimilO,

    You won't be able to use ".\SQLExpress" on publish because that refers to your local sql express database. Make sure you install SQL Express on the IIS machine and then make sure to use the machine name in the connection string i.e. SERVERIPV4\SQLExpress

    And yes, to get to your Silverlight app you now use \Client folder. This is the case only if you have upgraded to LightSwitch version3 (VS2012 Update 2). This is because you can now have multiple clients (i.e. \HTMLClient).

    I have it on my long list of blog post ideas to rewrite the deployment guide for v3.

    In the meantime, I hope this helps!

    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Friday, May 17, 2013 11:36 PM
  • Hi Beth,

    thank you for your reply, that helped a lot!

    I successfully managed to publish my app to my IIS-Server . . .

    . . . but only in the situation if the developer-pc that publishes the app is in the same network as the server-pc.

    Kind regards

    Oliver

    Thursday, May 23, 2013 7:37 AM
  • I am experiencing the same issue - no publishing errors in VS, but when I try to navigate to the application (http://server/appname/) I get the dreaded 403 error.

    I don't have direct access to the server (my co-worker does) but I am using the IP address of the SQL server as the connection string. I know that the IIS server and SQL server sit on the same box. I'll try out your suggestion and see if it works.

    David

    Tuesday, June 4, 2013 2:40 PM