简体   繁体   中英

User in Web Site Administration Tool on IIS

I'm new in ASP and IIS and I trying to solve this problem for 2 days but still can't get it.at 1st, I created a ASP login page and the user information store in Web Site Administration Tool (VS2008 Project>ASP.NET Configuration) It works fine as I can log in to my aspx page when I debug it.

Next, I turn on the window feature (IIS under item World Wide Web Services >> Application Development Features all are selected except CGI)

Then, I publish my login page and go to C:\\inetpub\\wwwroot\\web.config add few lines

<connectionStrings>

    <add name="connect" connectionString="Data Source=USER-PC\SQLEXPRESS;Initial Catalog=school;Persist Security Info=True;User ID=sa;Password=password" providerName="System.Data.SqlClient" />
    <add connectionString="data source=.\SQLEXPRESS;IntegratedSecurity=True;AttachDBFilename=|DataDirectory|ASPNETDB.MDF;User Instance=true" name="ConnectionString" providerName="System.Data.SqlClient" />
    <add name="ptiConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|pti.mdf;IntegratedSecurity=True;User Instance=True" providerName="System.Data.SqlClient" />

</connectionStrings>

Next, I open up IIS Manager enable ASP.NET Impersonation and i try to browse to localhost and I still unable to access to my login page
I also enable Form Authentication but still the same , can't login. Can Anyone help me ??

Did you install IIS after you installed ASP.NET? If so, you'll need to register ASP.NET with IIS - see my answer here: Hosting ASP.Net MVC 4 SPA web Application in IIS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM