Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It's off already! Show me my errors.
Message
De
15/05/2007 10:42:41
 
 
À
15/05/2007 09:44:05
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01225508
Message ID:
01225563
Vues:
20
I will censor the web.config for sensitive info...
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
  <add key="CustomerKey" value="2" />
</appSettings>

<connectionStrings>
    <add name="AWS2Connection" connectionString="Data Source=192.168.0.5;Initial                         Catalog=AWS2;Persist Security Info=True;User ID=XXXXXXXXXt;Password=XXXXXXXX" providerName="System.Data.SqlClient"/>

<add name="SqlConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
	<system.web>
    <pages viewStateEncryptionMode="Always"/>
    
		<roleManager enabled="true"/>
		<anonymousIdentification enabled="true"/>
		<profile>
			<properties>
				<add name="CustomerName" defaultValue="Valued Customer" type="string"/>
				<!--<add name="PageHits" type="Int64" allowAnonymous="true"/>
        <add name="LastAdDate" type="DateTime" allowAnonymous="true"/>-->
				<add name="ShoppingCart" serializeAs="Binary" type="ShoppingCart.Cart" allowAnonymous="true"/>
				<group name="Address">
					<add name="City" type="System.String" allowAnonymous="true"/>
					<add name="State" type="System.String" allowAnonymous="true"/>
					<add name="Zip" type="System.String" allowAnonymous="true"/>
					<add name="Address" type="System.String" allowAnonymous="true"/>
					<add name="AptOrSuite" type="System.String" allowAnonymous="true"/>
				</group>
			</properties>
		</profile>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
		<compilation debug="true">
			<assemblies>
				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>

	<customErrors mode="Off" />

		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Forms">
			<forms loginUrl="Login.aspx"/>
		</authentication>

 <membership>
   <providers>
	<remove name="AspNetSqlMembershipProvider"/>
	<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed" maxInvalidPasswordAttempts="3" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
	</providers>
		</membership>
	</system.web>
	<location path="Admin">
	<system.web>
		<authorization>
			<allow roles="Administrator"/>
			<deny users="*"/>
		</authorization>
	</system.web>
	</location>
	<location path="Member">
	<system.web>
		<authorization>
			<allow roles="User"/>
			<deny users="*"/>
		</authorization>
	</system.web>
	</location>
</configuration>
>If you don't have any sensitive info in the web.config, I would post that in it's entirety.
>
>>We recently installed a new ASP website on our production server. The production server is configured with ASP.Net 2.050727. We have the following in our Web.Config
>>
>>	<customErrors mode="Off" />
>>
>>But we still get
>>
>>

.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform