<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Web.config'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Web.config&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'Web.config'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: specified sql server not found</title><link>http://forums.asp.net/thread/3574081.aspx</link><pubDate>Sat, 19 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3574081</guid><dc:creator>faisale83</dc:creator><description>&lt;p&gt;Dear friend,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;let&amp;#39;s ask your provider for your database connetction string ,They will responsible for creating and provide link to you,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then use the connection string on web.config file here is the example&lt;/p&gt;&lt;p&gt;Ex:&lt;/p&gt;&lt;p style="padding-left:30px;"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;!-- &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note: As an alternative to hand editing this file you can use the &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; web admin tool to configure settings for your application. Use&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the Website-&amp;gt;Asp.Net Configuration option in Visual Studio.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A full list of settings and comments can be found in &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; machine.config.comments usually located in &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Windows\Microsoft.Net\Framework\v2.x\Config &lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;configuration xmlns=&amp;quot;http://schemas.microsoft.com/.NetConfiguration/v2.0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;appSettings&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/appSettings&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;connectionStringName&amp;quot; connectionString=&amp;quot;Data Source=127.0.0.1\mssql; Initial Catalog=DBname; User ID=ABC; Password=XYZ;&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;compilation debug=&amp;quot;true&amp;quot; strict=&amp;quot;false&amp;quot; explicit=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pages&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;namespaces&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System.Web.UI&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System.Web.UI.WebControls&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System.Web.UI.WebControls.WebParts&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System.Web.UI.HtmlControls&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add namespace=&amp;quot;System.Data.SqlClient&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/namespaces&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pages&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;system.net&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mailSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;smtp deliveryMethod=&amp;quot;Network&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;network host=&amp;quot;mail.jaabsfilms.com&amp;quot; port=&amp;quot;25&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/smtp&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mailSettings&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/system.net&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;&lt;p style="padding-left:30px;"&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: web.config oddity</title><link>http://forums.asp.net/thread/3572986.aspx</link><pubDate>Fri, 18 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3572986</guid><dc:creator>craigton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thanks for this but the tables I have work perfectly well with the default web.config and also with the amended web.config and I have no wish to &amp;nbsp;change them,&lt;/p&gt;</description></item><item><title>Re: web.config oddity</title><link>http://forums.asp.net/thread/3570549.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3570549</guid><dc:creator>craigton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thanks for this and true it does not look like a valid application name yet this is the value supplied in the default web.config file and it works as long as the connection string refers to the aspnetdb database.&lt;/p&gt;</description></item><item><title>'Filename.xls' cannot be accessed. When downloading from Server</title><link>http://forums.asp.net/thread/3570925.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3570925</guid><dc:creator>stephen.adshead</dc:creator><description>&lt;p&gt;&amp;#39;Filename.xls&amp;#39; cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server&amp;nbsp;the document is stored on may not be responding.&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;several Excel files which my end users&amp;nbsp;can download from my ASP.net app however this has suddenly stopped working on all the Excel Spreadsheets, when you try and open the file you get the error above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this something that has been changed in the web.config? I have been googling the error but all posts refer to spreadsheet corruption... they cant all have become currupt surely?&lt;/p&gt;
&lt;p&gt;Thanks in advance &lt;/p&gt;
&lt;p&gt;Steve&lt;/p&gt;</description></item><item><title>web.config oddity</title><link>http://forums.asp.net/thread/3569198.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3569198</guid><dc:creator>craigton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;The default web.config refers to aspnetdb.mdf but since I want to use my existing database against which I had run regsql I changed the connection string reference to one which pointed to my database. The login failed for a user/password that I could see were in the database so I knew it was not accessing my database.&lt;/p&gt;&lt;p&gt;After comparing the settings against against a working example I saw that the successful solution&amp;nbsp;had&amp;nbsp;&lt;span class="Apple-style-span" style="font-family:Calibri;font-size:15px;"&gt;SecurityQuickStart &amp;nbsp;a&lt;span class="Apple-style-span" style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;"&gt;s the value for applicationName in the &amp;lt;membership&amp;gt; &amp;lt;Providers&amp;gt; section so I made the change and it worked! I searched the solution for SecurityQuickStart and it found no entries apart from this one that I had just created!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;pre name="code" class="xhtml"&gt;So, anyone know why this works&lt;/pre&gt;&lt;pre name="code" class="xhtml"&gt;				&amp;lt;add name=&amp;quot;AspNetSqlMembershipProvider&amp;quot; type=&amp;quot;System.Web.Security.SqlMembershipProvider&amp;quot; 
                    connectionStringName=&amp;quot;ApplicationServices&amp;quot; enablePasswordRetrieval=&amp;quot;false&amp;quot; enablePasswordReset=&amp;quot;true&amp;quot; 
                    requiresQuestionAndAnswer=&amp;quot;false&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; 
                    minRequiredPasswordLength=&amp;quot;6&amp;quot; minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; passwordAttemptWindow=&amp;quot;10&amp;quot; 
                    applicationName=&amp;quot;SecurityQuickStart&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;p&gt;but this fails&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;				&amp;lt;add name=&amp;quot;AspNetSqlMembershipProvider&amp;quot; type=&amp;quot;System.Web.Security.SqlMembershipProvider&amp;quot; 
                    connectionStringName=&amp;quot;ApplicationServices&amp;quot; enablePasswordRetrieval=&amp;quot;false&amp;quot; enablePasswordReset=&amp;quot;true&amp;quot; 
                    requiresQuestionAndAnswer=&amp;quot;false&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; 
                    minRequiredPasswordLength=&amp;quot;6&amp;quot; minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; passwordAttemptWindow=&amp;quot;10&amp;quot; 
                    applicationName=&amp;quot;/&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>The system.webServer/handlers/add element for http handlers has an allowPathInfo attribute. What is it for?</title><link>http://forums.asp.net/thread/3549530.aspx</link><pubDate>Sat, 05 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3549530</guid><dc:creator>Shayke</dc:creator><description>&lt;div&gt;
&lt;p&gt;I&amp;#39;m playing with http
handlers. When adding an http handler to the web.config, in order to
make it process special extensions on IIS 7, you need to register it
under the system.webServer/handlers element. The add element there has
an allowPathInfo attribute and I can&amp;#39;t understand what is it for...&lt;/p&gt;
&lt;p&gt;MSDN says: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Specifies whether the handler
  processes full path information in a
  URI, such as
  contoso/marketing/imageGallery.aspx.
  If the value is true, the handler
  processes the full path,
  contoso/marketing/imageGallery. If the
  value is false, the handler processes
  only the last section of the path,
  /imageGallery.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It doesn&amp;#39;t help so much... Anyone?&lt;/p&gt;
&lt;p&gt;Thanks,
Shay.&lt;/p&gt;
&lt;/div&gt;</description></item><item><title>How to access web.config in DAL Class library ?</title><link>http://forums.asp.net/thread/3547303.aspx</link><pubDate>Thu, 03 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3547303</guid><dc:creator>kdes1983</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am new to ASP .net&lt;/p&gt;
&lt;p&gt;I am&amp;nbsp;writting my connection sring in web.config file&lt;/p&gt;
&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add key=&amp;quot;cnstr&amp;quot; value=&amp;quot;myConnString&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appSettings&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also I have code written for connecting database in DAL class library and added reference of DAL(DAL.dll) to My web Application.&lt;/p&gt;
&lt;p&gt;Now I want to pass value of&amp;nbsp; &amp;quot;cnstr&amp;quot; to DAL.&lt;/p&gt;
&lt;p&gt;How to achive this. Please help me out.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Editing web.config using a windows appliction</title><link>http://forums.asp.net/thread/3543063.aspx</link><pubDate>Wed, 02 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3543063</guid><dc:creator>milton.fernando</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Now i am able to read the &lt;strong&gt;web.config&lt;/strong&gt; file from the windows application ,but&amp;nbsp; i am getting an exception&lt;/p&gt;
&lt;p&gt;&amp;quot;The process cannot access the file &amp;quot;..\web.config&amp;#39; because it is being used by another process&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kindly help me with this.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Editing web.config using a windows appliction</title><link>http://forums.asp.net/thread/3540779.aspx</link><pubDate>Mon, 30 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3540779</guid><dc:creator>milton.fernando</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have an windows application to configure the settings of my website&amp;nbsp;,now&amp;nbsp;I want to add/edit&amp;nbsp; the application setting property using the windows application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;appSettings&amp;gt;&lt;br /&gt;&amp;lt;add key=&amp;quot;Value1&amp;quot; value=&amp;quot;105671&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;/p&gt;
&lt;p&gt;kindly help me with this..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>custom appsetting in web.config</title><link>http://forums.asp.net/thread/3523984.aspx</link><pubDate>Fri, 20 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523984</guid><dc:creator>JedFC</dc:creator><description>&lt;p&gt;&amp;lt;customAppSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;generalSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add key=&amp;quot;UploadFolder&amp;quot; value=&amp;quot;Images&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Usage of file is Mb value *1024 * 1024 e.g. 5Mb = 5242880b --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add key=&amp;quot;lMaxFileSize&amp;quot; value=&amp;quot;2097152&amp;quot; /&amp;gt;&amp;lt;!-- specified in bytes --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/generalSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;databaseSettings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add key=&amp;quot;connectionString&amp;quot; value=&amp;quot;Data Source=10.10.1.153;Database=figures;User id=user1;password=pass1&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/databaseSettings&amp;gt;&lt;br /&gt;&amp;lt;/customAppSettings&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Can anyone tell me where to put this under in my web.config file. If i just paste it in it gives errors. Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>