Deploying ASP.NET to IIS returns 500












0















When deploying a website to IIS, it returns a 500.19 error; meaning a config error.



This is my web config file (auto-generated)



<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".SiteManager.dll" stdoutLogEnabled="false" stdoutLogFile=".logsstdout" />
</system.webServer>
</location>
</configuration>


After searching on the web I found "solutions". Which didn't seem to work.



All being on the lines of this:



<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>


But doesn't seem to work.



I have two web sites on IIS. One is .NET Framework and the other is .NET Core.



The config above is for the .NET Core.



In IIS I can access/view the settings for the standard .NET website but for the Core website it won't allow me to view the settings, displaying an error box, mentioning an error with the web.config file.



Key Info:




  • Windows Server 2016,

  • IIS Version 10.0.14393.0


EDIT



So after reading a blog which was commented: I have followed some steps in microsoft's documentation - which was linked in the blog - made some changes. First of all I no longer have a error page; I have a new page which is shown below.



enter image description here



Originally I was getting an error page which only said "Internal server error" with no meaningful information - no error details at all.



I Installed a .NET Core Hosting service (somethng like that, sorry if thats not helpful) from microsoft's documentation, added permissions and changed application pool to "No managed code", which gave me the above image.



UPDATE



After playing around with settings, and reading through Microsoft docs, I managed to find a/the solution.



First of all: I deleted the app - I thought a fresh start would be best. Then I created a new IIS website.



Once I did that, I went to the Application Pool for the website. Within "Basic Settings" there is a dropdown option called ".NET CLR version", this needs to be set to "No Managed Code".



One more step: I went to the Advanced Settings of the application pool and changed the Identity to something which had permission to the virtual directory; in this case "LocalSystem".



Published again just to make sure everything was new, fired up localhost and everything worked!



p.s. thanks for the comments!










share|improve this question

























  • blog.lextudio.com/…

    – Miamy
    Nov 23 '18 at 9:16











  • This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

    – Ratan
    Nov 25 '18 at 18:10











  • @Ratan I have already given the permission ISS_IUSRS

    – Reece Russell
    Nov 26 '18 at 8:48
















0















When deploying a website to IIS, it returns a 500.19 error; meaning a config error.



This is my web config file (auto-generated)



<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".SiteManager.dll" stdoutLogEnabled="false" stdoutLogFile=".logsstdout" />
</system.webServer>
</location>
</configuration>


After searching on the web I found "solutions". Which didn't seem to work.



All being on the lines of this:



<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>


But doesn't seem to work.



I have two web sites on IIS. One is .NET Framework and the other is .NET Core.



The config above is for the .NET Core.



In IIS I can access/view the settings for the standard .NET website but for the Core website it won't allow me to view the settings, displaying an error box, mentioning an error with the web.config file.



Key Info:




  • Windows Server 2016,

  • IIS Version 10.0.14393.0


EDIT



So after reading a blog which was commented: I have followed some steps in microsoft's documentation - which was linked in the blog - made some changes. First of all I no longer have a error page; I have a new page which is shown below.



enter image description here



Originally I was getting an error page which only said "Internal server error" with no meaningful information - no error details at all.



I Installed a .NET Core Hosting service (somethng like that, sorry if thats not helpful) from microsoft's documentation, added permissions and changed application pool to "No managed code", which gave me the above image.



UPDATE



After playing around with settings, and reading through Microsoft docs, I managed to find a/the solution.



First of all: I deleted the app - I thought a fresh start would be best. Then I created a new IIS website.



Once I did that, I went to the Application Pool for the website. Within "Basic Settings" there is a dropdown option called ".NET CLR version", this needs to be set to "No Managed Code".



One more step: I went to the Advanced Settings of the application pool and changed the Identity to something which had permission to the virtual directory; in this case "LocalSystem".



Published again just to make sure everything was new, fired up localhost and everything worked!



p.s. thanks for the comments!










share|improve this question

























  • blog.lextudio.com/…

    – Miamy
    Nov 23 '18 at 9:16











  • This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

    – Ratan
    Nov 25 '18 at 18:10











  • @Ratan I have already given the permission ISS_IUSRS

    – Reece Russell
    Nov 26 '18 at 8:48














0












0








0








When deploying a website to IIS, it returns a 500.19 error; meaning a config error.



This is my web config file (auto-generated)



<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".SiteManager.dll" stdoutLogEnabled="false" stdoutLogFile=".logsstdout" />
</system.webServer>
</location>
</configuration>


After searching on the web I found "solutions". Which didn't seem to work.



All being on the lines of this:



<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>


But doesn't seem to work.



I have two web sites on IIS. One is .NET Framework and the other is .NET Core.



The config above is for the .NET Core.



In IIS I can access/view the settings for the standard .NET website but for the Core website it won't allow me to view the settings, displaying an error box, mentioning an error with the web.config file.



Key Info:




  • Windows Server 2016,

  • IIS Version 10.0.14393.0


EDIT



So after reading a blog which was commented: I have followed some steps in microsoft's documentation - which was linked in the blog - made some changes. First of all I no longer have a error page; I have a new page which is shown below.



enter image description here



Originally I was getting an error page which only said "Internal server error" with no meaningful information - no error details at all.



I Installed a .NET Core Hosting service (somethng like that, sorry if thats not helpful) from microsoft's documentation, added permissions and changed application pool to "No managed code", which gave me the above image.



UPDATE



After playing around with settings, and reading through Microsoft docs, I managed to find a/the solution.



First of all: I deleted the app - I thought a fresh start would be best. Then I created a new IIS website.



Once I did that, I went to the Application Pool for the website. Within "Basic Settings" there is a dropdown option called ".NET CLR version", this needs to be set to "No Managed Code".



One more step: I went to the Advanced Settings of the application pool and changed the Identity to something which had permission to the virtual directory; in this case "LocalSystem".



Published again just to make sure everything was new, fired up localhost and everything worked!



p.s. thanks for the comments!










share|improve this question
















When deploying a website to IIS, it returns a 500.19 error; meaning a config error.



This is my web config file (auto-generated)



<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".SiteManager.dll" stdoutLogEnabled="false" stdoutLogFile=".logsstdout" />
</system.webServer>
</location>
</configuration>


After searching on the web I found "solutions". Which didn't seem to work.



All being on the lines of this:



<system.web>
<customErrors mode="Off" />
<compilation debug="true" />
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>


But doesn't seem to work.



I have two web sites on IIS. One is .NET Framework and the other is .NET Core.



The config above is for the .NET Core.



In IIS I can access/view the settings for the standard .NET website but for the Core website it won't allow me to view the settings, displaying an error box, mentioning an error with the web.config file.



Key Info:




  • Windows Server 2016,

  • IIS Version 10.0.14393.0


EDIT



So after reading a blog which was commented: I have followed some steps in microsoft's documentation - which was linked in the blog - made some changes. First of all I no longer have a error page; I have a new page which is shown below.



enter image description here



Originally I was getting an error page which only said "Internal server error" with no meaningful information - no error details at all.



I Installed a .NET Core Hosting service (somethng like that, sorry if thats not helpful) from microsoft's documentation, added permissions and changed application pool to "No managed code", which gave me the above image.



UPDATE



After playing around with settings, and reading through Microsoft docs, I managed to find a/the solution.



First of all: I deleted the app - I thought a fresh start would be best. Then I created a new IIS website.



Once I did that, I went to the Application Pool for the website. Within "Basic Settings" there is a dropdown option called ".NET CLR version", this needs to be set to "No Managed Code".



One more step: I went to the Advanced Settings of the application pool and changed the Identity to something which had permission to the virtual directory; in this case "LocalSystem".



Published again just to make sure everything was new, fired up localhost and everything worked!



p.s. thanks for the comments!







c# asp.net iis asp.net-core webserver






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 9:41







Reece Russell

















asked Nov 23 '18 at 9:09









Reece RussellReece Russell

248




248













  • blog.lextudio.com/…

    – Miamy
    Nov 23 '18 at 9:16











  • This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

    – Ratan
    Nov 25 '18 at 18:10











  • @Ratan I have already given the permission ISS_IUSRS

    – Reece Russell
    Nov 26 '18 at 8:48



















  • blog.lextudio.com/…

    – Miamy
    Nov 23 '18 at 9:16











  • This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

    – Ratan
    Nov 25 '18 at 18:10











  • @Ratan I have already given the permission ISS_IUSRS

    – Reece Russell
    Nov 26 '18 at 8:48

















blog.lextudio.com/…

– Miamy
Nov 23 '18 at 9:16





blog.lextudio.com/…

– Miamy
Nov 23 '18 at 9:16













This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

– Ratan
Nov 25 '18 at 18:10





This might be because the IIS_USRS group doesn't have the permission to the folder where your virtual directory is pointed. Have you given this permission?

– Ratan
Nov 25 '18 at 18:10













@Ratan I have already given the permission ISS_IUSRS

– Reece Russell
Nov 26 '18 at 8:48





@Ratan I have already given the permission ISS_IUSRS

– Reece Russell
Nov 26 '18 at 8:48












1 Answer
1






active

oldest

votes


















1















  1. Press Win Key+R to Open Run Window

  2. in the Run Window, enter "OptionalFeatures.exe"

  3. in the features window, Click: "Internet Information Services"

  4. Click: "World Wide Web Services"

  5. Click: "Application Development Features"

  6. Check the features.






share|improve this answer
























  • From what I can see, I have everything needed installed

    – Reece Russell
    Nov 23 '18 at 10:00











  • @ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

    – Lex Li
    Nov 23 '18 at 14:16











  • @LexLi I've edited my question :)

    – Reece Russell
    Nov 23 '18 at 17:06











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443586%2fdeploying-asp-net-to-iis-returns-500%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1















  1. Press Win Key+R to Open Run Window

  2. in the Run Window, enter "OptionalFeatures.exe"

  3. in the features window, Click: "Internet Information Services"

  4. Click: "World Wide Web Services"

  5. Click: "Application Development Features"

  6. Check the features.






share|improve this answer
























  • From what I can see, I have everything needed installed

    – Reece Russell
    Nov 23 '18 at 10:00











  • @ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

    – Lex Li
    Nov 23 '18 at 14:16











  • @LexLi I've edited my question :)

    – Reece Russell
    Nov 23 '18 at 17:06
















1















  1. Press Win Key+R to Open Run Window

  2. in the Run Window, enter "OptionalFeatures.exe"

  3. in the features window, Click: "Internet Information Services"

  4. Click: "World Wide Web Services"

  5. Click: "Application Development Features"

  6. Check the features.






share|improve this answer
























  • From what I can see, I have everything needed installed

    – Reece Russell
    Nov 23 '18 at 10:00











  • @ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

    – Lex Li
    Nov 23 '18 at 14:16











  • @LexLi I've edited my question :)

    – Reece Russell
    Nov 23 '18 at 17:06














1












1








1








  1. Press Win Key+R to Open Run Window

  2. in the Run Window, enter "OptionalFeatures.exe"

  3. in the features window, Click: "Internet Information Services"

  4. Click: "World Wide Web Services"

  5. Click: "Application Development Features"

  6. Check the features.






share|improve this answer














  1. Press Win Key+R to Open Run Window

  2. in the Run Window, enter "OptionalFeatures.exe"

  3. in the features window, Click: "Internet Information Services"

  4. Click: "World Wide Web Services"

  5. Click: "Application Development Features"

  6. Check the features.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 9:16









Agustus CodesAgustus Codes

3019




3019













  • From what I can see, I have everything needed installed

    – Reece Russell
    Nov 23 '18 at 10:00











  • @ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

    – Lex Li
    Nov 23 '18 at 14:16











  • @LexLi I've edited my question :)

    – Reece Russell
    Nov 23 '18 at 17:06



















  • From what I can see, I have everything needed installed

    – Reece Russell
    Nov 23 '18 at 10:00











  • @ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

    – Lex Li
    Nov 23 '18 at 14:16











  • @LexLi I've edited my question :)

    – Reece Russell
    Nov 23 '18 at 17:06

















From what I can see, I have everything needed installed

– Reece Russell
Nov 23 '18 at 10:00





From what I can see, I have everything needed installed

– Reece Russell
Nov 23 '18 at 10:00













@ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

– Lex Li
Nov 23 '18 at 14:16





@ReeceRussell edit the question to include the exact error page (like a screenshot). Note that "what I can see" only applies to you, while others see nothing over the internet.

– Lex Li
Nov 23 '18 at 14:16













@LexLi I've edited my question :)

– Reece Russell
Nov 23 '18 at 17:06





@LexLi I've edited my question :)

– Reece Russell
Nov 23 '18 at 17:06


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443586%2fdeploying-asp-net-to-iis-returns-500%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'