A sample Milos web.config file

<?xml version="1.0"?> <configuration> <!-- Do not change these settings so the app will run on your machine! --> <!-- You can override these settings by adding a file named developer.config with the settings for YOUR development environment --> <appSettings file="developer.config"> <!--add key="database:TrustedConnection" value="True"/--> <add key="database:UserName" value="MyUserName"/> <add key="database:Password" value="MyPassword"/> <add key="database:Server" value="(local)"/> <add key="database:Catalog" value="Northwind"/> <add key="database:StoredProcedurePrefix" value="milos_"/> <add key="database:AutoLoadSchemaInformation" value="No"/> <add key="DataServices" value="SqlDataService"/> <add key="AllowedDataMethod" value="StoredProcedures"/> <!-- Set the default parameter type to VARCHAR instead of NVARCHAR --> <add key="SqlServerParameterType" value="NotUnicode" /> <!-- 300 seconds = 5 minutes --> <add key="MinimumCommandTimeout" value="300" /> <!-- SMTP server setting --> <add key="SmtpServerName" value="smtp.mycompany.com"/> <!-- Administrator Email used by ContactUs.aspx --> <add key="adminemailid" value="admin@mycompany.com"/> <!-- Configure user password settings --> <add key="passwordRegularExpression" value="\S{4,}"/> <add key="passwordDescription" value="Password must be at least four characters."/> <!-- Recipients of error message emails - separate multiple recipients with semi-colon --> <add key="ErrorRecipients" value="developer@mycompany.com;manager@mycompany.com"/> <!-- Test Mode - set this to true to suppress sending error emails --> <add key="testmode" value="false"/> </appSettings> <connectionStrings/> <system.web> <!-- 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.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> </assemblies> </compilation> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> <customErrors defaultRedirect="error.htm" mode="RemoteOnly" /> </system.web> </configuration>


See the "How-To" help document for a list of all configuration settings



Last Updated: 7/31/2006