<?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>Configuration and Deployment</title><link>http://forums.asp.net/26.aspx</link><description>Configuring and deploying ASP.NET applications - web.config, \bin, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1492924.aspx</link><pubDate>Mon, 11 Dec 2006 11:29:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1492924</guid><dc:creator>gsuttie2002</dc:creator><author>gsuttie2002</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1492924.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1492924</wfw:commentRss><description>&lt;p&gt;Hi Dude&lt;/p&gt;
&lt;p&gt;Ok try this&lt;/p&gt;
&lt;p&gt;web.config:-&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;appSettings&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#ff0000"&gt;&amp;lt;add key=&amp;quot;mainLink&amp;quot; value=&amp;quot;Main&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/font&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;appSettings&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Add a reference (using Statement) to System.Configuration at the top of the page and then on the front end you need your&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&amp;lt;asp: hyperlink id=&amp;quot;hyperlink1&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Read more here :- &lt;a href="http://aspnet.4guysfromrolla.com/articles/053102-1.aspx"&gt;http://aspnet.4guysfromrolla.com/articles/053102-1.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Cheers&lt;br /&gt;Gregor&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1492490.aspx</link><pubDate>Mon, 11 Dec 2006 01:23:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1492490</guid><dc:creator>meinmk5</dc:creator><author>meinmk5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1492490.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1492490</wfw:commentRss><description>&lt;p&gt;Well the web.config compiles fine but now the page itself will not pickup the call in the web.config.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried both formats in the web.config&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color=#ff0000&gt;&amp;lt;add key="mainLink" value="Main"/&amp;gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;br /&gt;&amp;lt;add key="mainLink" text="Main"/&amp;gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;and&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&amp;nbsp;&amp;lt;asp: hyperlink id="mainLink" &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#ff0000&gt;and&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#ff0000&gt;&amp;lt;asp: hyperlink id="mainLink" value/text="mainLink"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;Any ideas?&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;P.S. I greatly appreciate the assistance up&amp;nbsp;to this point :)&lt;/font&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1491439.aspx</link><pubDate>Fri, 08 Dec 2006 21:47:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1491439</guid><dc:creator>gsuttie2002</dc:creator><author>gsuttie2002</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1491439.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1491439</wfw:commentRss><description>&lt;p&gt;Hi There&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#a31515 size=2&gt;appSettings&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;br /&gt;&lt;font color=#ff0000&gt;&amp;lt;add key="mainLink" value="Main"/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#ff0000&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#a31515 size=2&gt;appSettings&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;Try that&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1491086.aspx</link><pubDate>Fri, 08 Dec 2006 16:16:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1491086</guid><dc:creator>meinmk5</dc:creator><author>meinmk5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1491086.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1491086</wfw:commentRss><description>&lt;p&gt;Below are the errors I get when I use the &amp;lt;add&amp;gt; statement in my web.config.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Description: &lt;/strong&gt;An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Parser Error Message: &lt;/b&gt;Unrecognized configuration section 'add'&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;/p&gt;
&lt;p&gt;Line 4:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&lt;font color=red&gt;Line 5:&amp;nbsp; &amp;lt;add key="mainLink" value="Main"/&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=red&gt;&amp;nbsp;Is there&amp;nbsp;a particular section I need to establish in the web.config? I tried inserting the line in multiple spots in the file and all returned errors.&lt;/font&gt;&lt;font color=red&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;font color=red&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1490129.aspx</link><pubDate>Thu, 07 Dec 2006 21:25:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1490129</guid><dc:creator>meinmk5</dc:creator><author>meinmk5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1490129.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1490129</wfw:commentRss><description>&lt;p&gt;Sorry, I'm a ASP novice at best.... Need a little bit more detail about using a user control.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1490115.aspx</link><pubDate>Thu, 07 Dec 2006 21:17:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1490115</guid><dc:creator>gsuttie2002</dc:creator><author>gsuttie2002</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1490115.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1490115</wfw:commentRss><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;If the content is static (doesnt change) make sure you cash it - you could add it to a user control and cash the user control.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;Gregor&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1490106.aspx</link><pubDate>Thu, 07 Dec 2006 21:11:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1490106</guid><dc:creator>meinmk5</dc:creator><author>meinmk5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1490106.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1490106</wfw:commentRss><description>&lt;p&gt;The site I am building will be using the same images multiple times.&lt;/p&gt;
&lt;p&gt;This is for parts of the page that will be concrete.&lt;/p&gt;
&lt;p&gt;Could I do the same thing for text? Like if I am going to use the same description a bunch of times could I insert something into the web.config to have one key to refer to?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1484975.aspx</link><pubDate>Mon, 04 Dec 2006 11:38:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1484975</guid><dc:creator>gsuttie2002</dc:creator><author>gsuttie2002</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1484975.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1484975</wfw:commentRss><description>&lt;p&gt;HI Meinmk5&lt;/p&gt;
&lt;p&gt;I usually create an Images folder to start wit and plonk them in there and then take a look at this article where RIck discusses&amp;nbsp; Relacive Paths&lt;/p&gt;
&lt;p&gt;&lt;a href="http://west-wind.com/weblog/posts/269.aspx"&gt;http://west-wind.com/weblog/posts/269.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm not in favour of hard coding url imge url's into the web.config because if you need the same image in two seperate places your copying the code and then modifying it for the same image.&lt;/p&gt;
&lt;p&gt;Anyway if you want to go for the web.config route try this.&lt;/p&gt;
&lt;p&gt;&amp;lt;add key="homepageicon" value="~/images/homeicon.gif"/&amp;gt;&lt;/p&gt;
&lt;p&gt;Then you just read the value of homepageicon using the congiuration manager - along those lines.&lt;/p&gt;
&lt;p&gt;Give me a shout if that doesnt help.&lt;/p&gt;</description></item><item><title>Cleaning Up Image Paths.</title><link>http://forums.asp.net/thread/1484139.aspx</link><pubDate>Sun, 03 Dec 2006 00:15:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1484139</guid><dc:creator>meinmk5</dc:creator><author>meinmk5</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1484139.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1484139</wfw:commentRss><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;At this stage in my project I am trying to clean up the code by resorting the imageUrl's back to the web.config which contains the images path. &lt;/p&gt;
&lt;p&gt;I have tried a few ways with no success... What would be the proper entry into the web.config be to do this?&lt;/p&gt;</description></item></channel></rss>