asp.net - Is it possible to host an aspx (.NET 4.0) website locally on Windows 8 Enterprise? -


as title states possibly host dynamic (that .aspx correct?) website locally (iis 8) on computer running windows 8 enterprise? i've installed iis components, added website many guides on google show error 9 stated here:http://support.microsoft.com/kb/942055

my web.config follows:

    <?xml version="1.0"?> <!--   more information on how configure asp.net application, please visit   http://go.microsoft.com/fwlink/?linkid=169433   --> <configuration>   <system.web>     <compilation debug="false" targetframework="4.0"/>     </system.web>   <system.webserver>     <modules runallmanagedmodulesforallrequests="true"/>   </system.webserver> </configuration> 

i have correct version set site (.net 4.0) , tried resetting feature delegations. @ point i'm thinking of doing cheese puff solution , running site via built in server within visual web developer.

"stock" asp.net web.config file

when create standard, empty asp.net web forms application targeting .net framework 4.0, here's standard web.config file that's generated:

<?xml version="1.0" encoding="utf-8"?> <!--   more information on how configure asp.net application, please visit   http://go.microsoft.com/fwlink/?linkid=169433   --> <configuration>   <configsections />    <connectionstrings />    <system.web>     <compilation debug="true" targetframework="4.0" />     <authentication mode="forms">       <forms loginurl="~/account/login" timeout="2880" defaulturl="~/" />     </authentication>   </system.web>   <system.webserver>     <modules runallmanagedmodulesforallrequests="true" />   </system.webserver> </configuration> 

edit: removed membership, role, profile, , sessionstate sections here. these aren't, strictly, required part of standard empty asp.net web forms application template started quickly. shown above minimum web.config need.

note: don't worry debug="true" in <compilation /> element. should have attribute set false in production anyway.

i suspect it's iis configuration

after re-reading question, suspect haven't configured iis host site properly.

first, want start saying there's internet information services (iis), actual web server, can installed on windows 8 server oses such windows server 2012. there iis express, used development , replacement old development web server (code-named cassini) in vs2008 , vs2010 (prior sp1 when iis express made available through additional installation).

it sounds me have installed iis under windows 8 program , features. need create site in iis points web application located on hard disk.

  1. open iis manager
  2. expand machine name in connections pane on left.
  3. expand sites folder. there should site called default web site.
  4. right-click sites folder , choose add website....
  5. give site name. choose defaultapppool (you can change later).
  6. under physical path, browse web site/application located on hard disk.
  7. click ok.

there other options on page , can find on them @ msdn. may enough started, though.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -