R
R.A.M.
Hello,
I am writing my first ASP.NET application (I use .NET 2.0, Visual Web
Developer 2005 Express Edition and SQL Server 2005 Express Edition).
The application builds successfully but when I try to start debugging from
Visual Web Developer I receive message box:
Unable to start debugging on the web server. Debugging failed because
integrated Windows authentication in not enabled.
But I want to use forms authentication! Here is my web.config (I use Polish
language so some letters look strange):
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="ApplicationName" value="MIMMagazyn"/>
<add key="Wersja" value="0.1"/>
<add key="Domy˜lnaBaza" value="MIMMagazynDemo"/>
<add key="BazaDemo" value="MIMMagazynDemo"/>
<add key="UµytkownikDemo" value="demo"/>
<add key="IleMiesiCcyWLogu" value="1"/>
</appSettings>
<connectionStrings>
<add name="MIMMagazyn_Demo" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\MIMMagazynDemo.mdf;Initial
Catalog=MIMMagazynDemo;uid=sa;pwd=sqlserver"
providerName="System.Data.SqlClient" />
<add name="SqlServices" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\aspnetdb.mdf;uid=sa;pwd=sqlserver"
/>
</connectionStrings>
<system.web>
<roleManager enabled="true" />
<compilation debug="true"/>
<profile defaultProvider="SqlProvider">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="MIMMagazyn" />
</providers>
<properties>
<add name="ImiCINazwisko" type="String" />
<add name="Domy˜lnyKodSkˆadu" type="String" />
<add name="Domy˜lnyKodGrupy" type="String" />
<add name="AdministracjaUµytkownikami" type="Boolean" defaultValue="False"
/>
<add name="Konfiguracja" type="Boolean" defaultValue="False" />
<add name="Uwagi" type="String" />
</properties>
</profile>
<authentication mode="Forms">
<forms name="MIMMagazyn" loginUrl="Logowanie.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<customErrors mode="RemoteOnly" defaultRedirect="Bˆ¡d.aspx">
</customErrors>
<sessionState mode="InProc"
cookieless="false"
timeout="20"/>
</system.web>
</configuration>
Could you help me please? Thank you!
/RAM/
I am writing my first ASP.NET application (I use .NET 2.0, Visual Web
Developer 2005 Express Edition and SQL Server 2005 Express Edition).
The application builds successfully but when I try to start debugging from
Visual Web Developer I receive message box:
Unable to start debugging on the web server. Debugging failed because
integrated Windows authentication in not enabled.
But I want to use forms authentication! Here is my web.config (I use Polish
language so some letters look strange):
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="ApplicationName" value="MIMMagazyn"/>
<add key="Wersja" value="0.1"/>
<add key="Domy˜lnaBaza" value="MIMMagazynDemo"/>
<add key="BazaDemo" value="MIMMagazynDemo"/>
<add key="UµytkownikDemo" value="demo"/>
<add key="IleMiesiCcyWLogu" value="1"/>
</appSettings>
<connectionStrings>
<add name="MIMMagazyn_Demo" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\MIMMagazynDemo.mdf;Initial
Catalog=MIMMagazynDemo;uid=sa;pwd=sqlserver"
providerName="System.Data.SqlClient" />
<add name="SqlServices" connectionString="Data
Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|\aspnetdb.mdf;uid=sa;pwd=sqlserver"
/>
</connectionStrings>
<system.web>
<roleManager enabled="true" />
<compilation debug="true"/>
<profile defaultProvider="SqlProvider">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices"
applicationName="MIMMagazyn" />
</providers>
<properties>
<add name="ImiCINazwisko" type="String" />
<add name="Domy˜lnyKodSkˆadu" type="String" />
<add name="Domy˜lnyKodGrupy" type="String" />
<add name="AdministracjaUµytkownikami" type="Boolean" defaultValue="False"
/>
<add name="Konfiguracja" type="Boolean" defaultValue="False" />
<add name="Uwagi" type="String" />
</properties>
</profile>
<authentication mode="Forms">
<forms name="MIMMagazyn" loginUrl="Logowanie.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<customErrors mode="RemoteOnly" defaultRedirect="Bˆ¡d.aspx">
</customErrors>
<sessionState mode="InProc"
cookieless="false"
timeout="20"/>
</system.web>
</configuration>
Could you help me please? Thank you!
/RAM/