Copied to clipboard

Flag this post as spam?

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


  • Young Park 3 posts 83 karma points
    Apr 04, 2017 @ 12:10
    Young Park
    0

    No theme/skin applied to the pages after publishing to IIS server

    Hello,

    I just started Umbraco and trying to understand about the product. My current issue is that the website is not published correctly from Visual Studio solution. I first received "No physical template file..." error and found out that some of folders were not published to the production server. So I included those folders and now I can see the page.

    However, there is another problem. The theme/skins doesn't apply to the page so it is shown as plain text. I even tried to copy/paste entire solution to the production server but the result is the same.

    I didn't modify anything. I was just trying to play how to deploy new website from the starter kit web site. And, I am stuck here.

    Can anyone help me?

    Thank you,

    Visual Studio 2017 Community Edition

    Windows 2012 R2 Web Server

    Microsoft SQL Server 2016


    Published Website 1

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 11:35
    Alex Skrypnyk
    0

    Hi Young

    From the screenshot I would say that you didn't publish styles and maybe js files.

    Can you check css and js folders on the server?

    Thanks,

    Alex

  • Young Park 3 posts 83 karma points
    Apr 07, 2017 @ 12:32
    Young Park
    0

    Thanks for replying.

    I copied everything from development machine to the server. So there shouldn't be any missing folder or files.

    Since the original post was my first post, it took me a while to get it approved by mod and I had no access the the post until now.

    • UPDATE *

    If I published and configured as IIS Web Application, the pages looks like the original post, but the admin pages look and work fine.

    If I published and configured as IIS Website, then everything works fine.

    So I am good now. But, I am still wondering why it doesn't work as Web Application, but it works as Website. I evaluated DotNetNuke before Umbraco, and it didn't have this issue.

    Thanks for your time,

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 12:41
    Alex Skrypnyk
    0

    I think the problem is that not all folders were included in the project when you run web application.

    Can you share what folders were included?

    You need to include files/folders to your project:

    App_browsers
    App_Plugins
    umbraco
    umbraco_client
    config\splashes
    css
    js
    media
    scripts
    

    /Alex

  • Young Park 3 posts 83 karma points
    Apr 07, 2017 @ 13:02
    Young Park
    0

    Those folders are included. I doubt that I missed anything because I copied entire folders except App_Data to the IIS server.

    What I found was that it seems that the style/script/media paths are not populated correctly on the pages with Web Application setup.

    For example, if the link is http://localhost/umbraco4, the web application is looking those items on http://localhost/js, http://localhost/css... because the master page contains following path.

        <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/fanoe.css">
    <link rel="stylesheet" type="text/css" href="/css/style.css">
    

    if I change to

        <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/fanoe.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    

    or

        <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="/umbraco4/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/umbraco4/css/fanoe.css">
    <link rel="stylesheet" type="text/css" href="/umbraco4/css/style.css">
    

    it worked.

    Same goes to other links (java & media). Once I changed the links, it seems to be working. But, I rather configure as website so that I don't need to change those links once I published.

    Again, I appreciate your help.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 13:40
    Alex Skrypnyk
    100

    You are welcome, Young. I'm glad that you solved this issue.

    Have a great weekend.

    /Alex

  • 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.

    Continue discussion

Please Sign in or register to post replies