Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Publishing to IIS #17

Closed
sgdunker opened this issue Jul 26, 2016 · 4 comments
Closed

Publishing to IIS #17

sgdunker opened this issue Jul 26, 2016 · 4 comments
Labels

Comments

@sgdunker
Copy link

Ok this has been frustrating. I can build the project and run it locally from VS, but when I try and publish the project to my IIS server I am getting an error saying there is no default document. Looking at the directory I don't see a default.aspx, so how do I configure the site to load the page I see when I run from VS?

@wbreza
Copy link
Contributor

wbreza commented Jul 26, 2016

The EmbedSample app is an ASP.NET MVC project. There isn't a default.aspx. Instead there are routes registered in the RouteConfig.cs file.

Running the app at the root should default to the Index action within the DashboardController

Ensure your IIS server has at least .NET 4.5 installed and that all of the dependent Nuget packages are being deployed along with the application.

@sgdunker
Copy link
Author

Ok I didn't realize the server didn't have .Net 4.5 installed. I have added that and now I am getting the page to render however now the layout is all messed up. I assume it is a stylesheet issue or maybe the nugget packages. What packages should be installed? I leveraged a web package deployment model to install it.

@wbreza
Copy link
Contributor

wbreza commented Jul 26, 2016

Does it render correctly if you run it locally? You are likely just missing some of the JS/CSS resources. Try running fiddler and see if there are any 404 requests. If so ensure they are included in the deployment.

@sgdunker
Copy link
Author

Figured it out, the CSS and Images are absolute references not relative references. I moved the app to a root site and it works. Thanks,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants