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.
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.
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.
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
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
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.
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,
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:
/Alex
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.
if I change to
or
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.
You are welcome, Young. I'm glad that you solved this issue.
Have a great weekend.
/Alex
is working on a reply...
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