Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install this in an existing asp.net MVC site. #55

Closed
juliandormon opened this issue Mar 6, 2018 · 6 comments
Closed

Trying to install this in an existing asp.net MVC site. #55

juliandormon opened this issue Mar 6, 2018 · 6 comments

Comments

@juliandormon
Copy link

juliandormon commented Mar 6, 2018

Sorry. I am a bit of a newbie here.

I have an MVC .net site running on IIS. I would like to have this run under a directory of that site but I cannot figure out how to install it?

I have set up the blog to run under it's own domain and IIS site (IIS 10) without issue. I would like to however run the site from sub-directory from the other domain.

To that end I have added an application to my other IIS site, named it "blog" and pointed it to the root of the working site. This keeps resulting in a 500 error, but I cannot seem to find what the error says despite enabling detailed errors in the web.config.

Any ides how I may get the blog to run in a sub-directory?

Thanks in advance.

I will continue to try and find the error message.

@juliandormon
Copy link
Author

I switched the application to a virtual directory and then I can see the following error:
"Log Name: Application
Source: IIS AspNetCore Module
Date: 3/7/2018 11:32:36 AM
Event ID: 1000
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-FMS1UAD9TN6
Description:
Application 'MACHINE/WEBROOT/APPHOST/WWW.DOMAIN.NET' with physical root 'C:\Sites\www.domain.net' failed to start process with commandline ' ', ErrorCode = '0x80070057 : 0.
Event Xml:



1000
2
0
0x80000000000000

16034273
Application
WIN-FMS1UAD9TN6



Application 'MACHINE/WEBROOT/APPHOST/WWW.DOMAIN.NET' with physical root 'C:\Sites\www.domain.net' failed to start process with commandline ' ', ErrorCode = '0x80070057 : 0.

"

@juliandormon
Copy link
Author

I added the blog application under the default site in IIS so I could run in it localhost, and still the server returns a 500 response but there is no content. Impossible to see what the error is. There is no error in the Windows Application log, either. I was able to turn on request tracing. That definitely shows that an error occurred but does not provide anything meaningful to help me understand what could be happening.

@pwdst
Copy link

pwdst commented Mar 7, 2018

Is your existing MVC site running .NET Core or .NET Framework? This sounds a lot like an issue with the .NET Core runtime on your computer and/or host. Which version(s) of .NET Core are installed and are you using IIS? In addition to the runtime you will need the ASP.NET Core Module to run .NET Core apps in a reverse proxy configuration (the as-yet unreleased .NET Core version 2.1 will support running in process).

Verify you have .NET Core 2.0x installed and see https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?tabs=aspnetcore2x and https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/troubleshoot

If this is shared hosting not all hosts support .NET Core - ask your host if they currently support .NET Core 2.0 and if not when (if ever) they plan to do so.

@juliandormon
Copy link
Author

Thank you for your help. Unfortunately I was not able to get the Minblog.Core started. I did however find your MiniBlog project and I was able to install that as a virtual application under my domain. I had to hide a few of our dependencies from the blog in the web.config file using . Thanks so much for your responsiveness and of course for the great work!

@pwdst
Copy link

pwdst commented Mar 8, 2018

Glad the response was helpful Julian - for absolute clarity I am not the author of MiniBlog or MiniBlog.Core. The praise belongs to @madskristensen

@juliandormon
Copy link
Author

Ok! Sorry about that. Kudos to you and Mads then!!!!! Thanks again.

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

No branches or pull requests

2 participants