{"id":201,"date":"2012-02-16T15:18:32","date_gmt":"2012-02-16T20:18:32","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=201"},"modified":"2012-02-17T09:33:21","modified_gmt":"2012-02-17T14:33:21","slug":"dotnetnuke-6-install-onto-windows-2008-r2-server","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2012\/02\/16\/dotnetnuke-6-install-onto-windows-2008-r2-server\/","title":{"rendered":"DotNetNuke 6 install onto Windows 2008 R2 Server"},"content":{"rendered":"<p>Here is the proper way to avoid getting the dreaded &#8220;System.Security.SecurityException: Request for the permission of type &#8216;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8217; failed.&#8221; error while attempting to get DotNetNuke 6.x installed onto Windows Server 2008 R2.<\/p>\n<ol>\n<li>download and extract the DNN installer.\u00a0 In my case, I downloaded DotNetNuke_Community_06.01.03_Install and extracted it into a temporary directory.<\/li>\n<li>Make sure you add feature .NET Framework 3.5.1 Features, and enable ASP.NET at the same time<\/li>\n<li>In my case, I am installing DNN to the root of a new subdomain, so I created a new folder in my website directory named for the domain name.<\/li>\n<li>Copy over the DNN files into your website directory<\/li>\n<li>Go to the IIS manager and setup a new website and point it to your directory<\/li>\n<li>Make sure you add default.aspx as the default document type<\/li>\n<li>Make sure you create a new dedicated application pool.\u00a0 In my case I used DNN as the name of the application pool.<\/li>\n<li>on your WWW directory, grant the following permissions.\u00a0 {machinename}\\IUSR (full control), ASPNET (F.C.), Network Service (F.C.)<\/li>\n<li>Using SQL manager, create a new database for the site.\u00a0 An empty database will suffice.\u00a0 Create a login for the database.<\/li>\n<li>Update the SQL server connection strings in the web.config file to point to the database server and using your UN\/PW from above.<\/li>\n<li>Now try accessing the site you&#8217;ve created and you will get this error:<\/li>\n<ol>\n<li><span style=\"font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;\"><strong>Description: <\/strong>The application attempted to perform an operation not allowed by the security policy.\u00a0 To grant this application the required permission please contact your system administrator or change the application&#8217;s trust level in the configuration file.<br \/>\n<strong>Exception Details: <\/strong>System.Security.SecurityException: Request for the permission of type &#8216;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8217; failed.<\/span><\/li>\n<li><a href=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-207\" title=\"Application Error b77a5c561934e089\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image1-300x200.jpg\" alt=\"Application Error b77a5c561934e089\" width=\"300\" height=\"200\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image1-300x200.jpg 300w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image1.jpg 584w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ol>\n<li>To solve that, go to the Application pool and edit the Application Pool you created for this site, in my case it is DNN<\/li>\n<ol>\n<li>Click Advanced Settings<\/li>\n<li>Set Managed Pipeline Mode to CLASSIC<\/li>\n<li>Set Identity=Network Service.<\/li>\n<li>Click OK<\/li>\n<li>Click Recycle<\/li>\n<li>Go back to the IIS manager and do a restart of the IIS service on the webserver.<\/li>\n<li><a href=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-209\" title=\"Application Pool Advanced Settings\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image2.jpg\" alt=\"Application Pool Advanced Settings\" width=\"337\" height=\"359\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image2.jpg 337w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2012\/02\/image2-281x300.jpg 281w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/a><\/li>\n<\/ol>\n<li>Try to access your DNN site again now and it should work properly.<\/li>\n<li>Complete the DNN wizard and you should pass all tests (like permissions)<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Here is the proper way to avoid getting the dreaded &#8220;System.Security.SecurityException: Request for the permission of type &#8216;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8217; failed.&#8221; error while attempting to get DotNetNuke 6.x installed onto Windows Server 2008 R2. download and extract the DNN installer.\u00a0 In my case, I downloaded DotNetNuke_Community_06.01.03_Install and extracted it into a temporary directory. Make sure you add feature<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,4,22],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-dotnetnuke","category-iis-tips-n-tricks","category-windows-server"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":6,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}