{"id":3057,"date":"2020-01-27T12:02:37","date_gmt":"2020-01-27T11:02:37","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=3057"},"modified":"2020-01-27T14:11:57","modified_gmt":"2020-01-27T13:11:57","slug":"microsoft-internet-information-server-7-iis-7-file-sharing-on-the-website-folder-only-for-authorized-people-but-allow-grant-the-iis-user-iis-worker-process-to-execute-asp-net","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=3057","title":{"rendered":"Microsoft Internet Information Server 7 \/ IIS 7: File Sharing on the website folder only for authorized people but allow \/ grant the IIS User \/ IIS worker process to execute ASP.NET"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>The SMB Mount \/ File Share&nbsp;for the web folders directory should be accessible for the admins but not for unauthorized people&nbsp;<\/p>\n\n\n\n<p>After setting the File Sharing permissions to that, the&nbsp;web applications shows HTTP error code 500 what means that the&nbsp;Microsoft IIS worker process does not have enough privileges. <\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"202\" data-attachment-id=\"3064\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3064\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?fit=806%2C344&amp;ssl=1\" data-orig-size=\"806,344\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image2020-1-27-11_16_55-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?fit=474%2C202&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?resize=474%2C202&#038;ssl=1\" alt=\"\" data-id=\"3064\" data-full-url=\"https:\/\/i1.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?fit=806%2C344\" data-link=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3064\" class=\"wp-image-3064\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?w=806&amp;ssl=1 806w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image2020-1-27-11_16_55-1.png?resize=768%2C328&amp;ssl=1 768w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Approach<\/h2>\n\n\n\n<p>To ensure, that the Microsoft IIS Server worker process has enough privileges to execute ASP.NET in the&nbsp;Directory and to prevent unauthorized access to the SMB Mount of the web application,the following settings should be applied<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Add the user &#8222;Network share&#8220; with Read\/Write permissions to the folders directory<\/li><li>Configure the Application Pools identity to &#8222;Network Service&#8220;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1235\" height=\"645\" data-attachment-id=\"3059\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3059\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?fit=1235%2C645&amp;ssl=1\" data-orig-size=\"1235,645\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?fit=474%2C248&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?fit=640%2C334\" alt=\"\" class=\"wp-image-3059\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?w=1235&amp;ssl=1 1235w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?resize=300%2C157&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?resize=1024%2C535&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?resize=768%2C401&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-1.png?w=948&amp;ssl=1 948w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><figcaption>Setting up the IIS web site folder to allow the user &#8222;NETWORK SERVICE&#8220; to execute the IIS worker process<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Connect to the web server via Remote Desktop Connection (RDP)<\/li><li>Right-click the folder<\/li><li>Select the tab sharing and click on the button &#8222;Share&#8220;<\/li><li>Search for user &#8222;Network Service&#8220; and press the add button<\/li><li>Set the Permission Level &#8222;Read\/Write&#8220; to the user &#8222;Network Service&#8220;<\/li><li>Hit the apply button<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1675\" height=\"322\" data-attachment-id=\"3058\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3058\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?fit=1675%2C322&amp;ssl=1\" data-orig-size=\"1675,322\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?fit=474%2C91&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?fit=640%2C123\" alt=\"\" class=\"wp-image-3058\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?w=1675&amp;ssl=1 1675w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?resize=300%2C58&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?resize=1024%2C197&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?resize=768%2C148&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?resize=1536%2C295&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?w=948&amp;ssl=1 948w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image.png?w=1422&amp;ssl=1 1422w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><figcaption>Set up the application pools identity<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Open the Microsoft IIS Server Manager<\/li><li>Select &#8222;Application Pools&#8220; from the left side bar<\/li><li>Select the appropriate application \/ pool entry<\/li><li>Select &#8222;Set Application Pool Defaults&#8220; from the right side bar<\/li><li>Search the Entry &#8222;Identity&#8220; and press the &#8222;&#8230;&#8220; Selector Button on the right side<\/li><li>Set the Identity to &#8222;Network Service&#8220; to allow that user to execute ASP.NET as default user<\/li><\/ul>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D3057&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem The SMB Mount \/ File Share&nbsp;for the web folders directory should be accessible for the admins but not for unauthorized people&nbsp; After setting the File Sharing permissions to that, the&nbsp;web applications shows HTTP error code 500 what means that the&nbsp;Microsoft IIS worker process does not have enough privileges. Approach To ensure, that the Microsoft &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=3057\" class=\"more-link\"><span class=\"screen-reader-text\">Microsoft Internet Information Server 7 \/ IIS 7: File Sharing on the website folder only for authorized people but allow \/ grant the IIS User \/ IIS worker process to execute ASP.NET<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[34],"tags":[79,78,81,76,77,80],"class_list":["post-3057","post","type-post","status-publish","format-standard","hentry","category-microsoft-iis-server","tag-application-pool-identity","tag-file-sharing","tag-grant-worker-process","tag-iis","tag-iis-user","tag-worker-process"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-Nj","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3057"}],"version-history":[{"count":4,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3057\/revisions"}],"predecessor-version":[{"id":3065,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3057\/revisions\/3065"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}