Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • blackhawk 313 posts 1368 karma points
    Feb 17, 2017 @ 19:22
    blackhawk
    0

    How to properly publish my first Umbraco site out of Visual Studio as a file system package

    I am super excited already with the ease of installing and configuring umbraco between Visual Studio 2015 and the browser admin pages (when they load from Visual Studio). When I run my test site from Visual Studio, it displays a URL like the following after I hit CTRL + F5

    http://localhost:64849/
    

    How can I have my localhost site to be up and available all the time as a virtual site under IIS, without having to go into Visual Studio to press CTRL + F5 to run it?

    Background:

    • I am using IIS in Windows 10
    • I installed UmbracoCMS as a NuGet package under Visual Studio 2015.
    • I included all my files into the project.
    • I did a build on the initial solution and now having fun managing Settings (i.e. Document Types and Stylesheets)

    Thanks!

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 17, 2017 @ 20:26
    Joshua Stewart
    0

    Go into IIS on Windows 10 and create a website and point it at your Umbraco project directory.

    One thing to note - when pointing an IIS website at an Umbraco project you'll likely get file permission issues. The easiest way around this is to add Users account to the folder permissions and give it full access.

    Hope this gets you started.

  • blackhawk 313 posts 1368 karma points
    Feb 17, 2017 @ 21:05
    blackhawk
    0

    Thanks for the response, but I'm still stuck. Here is what I did.

    • I went into IIS, and created a website.
    • I pointed the site to my project folder...

      c...\projects\02Umbraco
      
    • I then set IIS_IUSRS, an AppPool location, and IUSR, all to full control for the entire site.

    but when I go to browse web site from IIS, I get the following server error....

    HTTP Error 403.14 - Forbidden
    The Web server is configured to not list the contents of this directory.
    

    If by "Users Account" you mean add my Umbraco administrative account, then what is the format for adding that under the security tab under the web site properties window?

    Thanks again

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 17, 2017 @ 21:25
    Joshua Stewart
    0

    Also check and make sure in IIS that you have added default.aspx to the Default Document list

  • blackhawk 313 posts 1368 karma points
    Feb 17, 2017 @ 22:12
    blackhawk
    0

    Yes I completed all steps and now I am getting this error

    Can't find a connection string with the name 'umbracoDbDSN'
    

    It doesn't matter if my web.config file is included or excluded from the project. I even added a connection string through IIS to directly connect to my database table. Still same error.

    I have a feeling the problem is solved once this is figured out.

  • blackhawk 313 posts 1368 karma points
    Feb 18, 2017 @ 04:09
    blackhawk
    100

    Now that I think about it, I should of re-named this topic to "How to properly publish Umbraco site from Visual Studio as a local file system package". Sorry for the confusion and still looking for answers.

  • blackhawk 313 posts 1368 karma points
    Feb 18, 2017 @ 04:33
    blackhawk
    0

    I did it! and once I published it as a file system package, I was able to point to that location via IIS as a web site. This article gave me the instructions I needed to complete the publishing part - https://msdn.microsoft.com/en-us/library/1y1404zt.aspx

    Hopefully this can help another newbie out like me

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Feb 18, 2017 @ 10:21
    Paul Wright (suedeapple)
    1

    This is quite a handy "snippet" to have. Adds the ability to send any folder off to IIS EXPRESS. Just "right click" and go!

    http://www.theoutfield.co.uk/blog/2011/03/easily-serve-any-folder-in-iis-express

  • blackhawk 313 posts 1368 karma points
    Feb 18, 2017 @ 11:26
    blackhawk
    0

    Thank you for that tip! It's only day 3 for me in diving into installing, configuring and publishing Umbraco, and I already feel like a champ! Awesome CMS.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies