<?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>VS Web Deployment Projects</title><link>http://forums.asp.net/1020.aspx</link><description>General discussions of VS Web Deployment Projects</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to create virtual folder in IIS for ASP.NET 2005 web project</title><link>http://forums.asp.net/thread/1854493.aspx</link><pubDate>Mon, 13 Aug 2007 08:38:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1854493</guid><dc:creator>pkarthik8</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1854493.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=1854493</wfw:commentRss><description>&lt;p&gt;Hi Benson Yu,&lt;/p&gt;
&lt;p&gt;Thankz a lot ur reply helped me and i chosed second option (impersonation) and it worked perfectly.&lt;/p&gt;
&lt;p&gt;(FYI i&amp;#39;m not using local 2005 SQL Server, I&amp;#39;m connecting to 2003 SQL Server located in another machine)&lt;/p&gt;
&lt;p&gt;Once again Thankz &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Karthik&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to create virtual folder in IIS for ASP.NET 2005 web project</title><link>http://forums.asp.net/thread/1854447.aspx</link><pubDate>Mon, 13 Aug 2007 08:12:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1854447</guid><dc:creator>Benson Yu - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1854447.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=1854447</wfw:commentRss><description>&lt;p&gt;Hi pkarthik,&lt;/p&gt;
&lt;p&gt;From your description, I understand that after creating virtual directory for the existing web project, the web site failed to connect to the SQL Server 2005. However, debug the project in Visual Studio works well. If I have misunderstood your concern, please let me know.&lt;/p&gt;
&lt;p&gt;Based on my experience, the most likely cause of this issue is the login account. When view the page through IIS, the build-in account: “ASPNET” account (for IIS 5) or “Network Service” account (for IIS 6) will fail to connect the SQL Server. &lt;/p&gt;
&lt;p&gt;To fix this issue, you can choose one of the solutions:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Change the Authentication Mode to SQL mode in connection string, for example:&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;Data Source=ServerAddress;Initial Catalog=database;Integrated Security=True&lt;/strike&gt;&lt;br /&gt;Data Source= ServerAddress;Initial Catalog=database;User ID=***;Password=*****&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Use ASP.NET impersonation.&lt;/p&gt;
&lt;p&gt;ASP.NET Impersonation&amp;nbsp; &lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/xh507fc5(vs.80).aspx"&gt;http://msdn2.microsoft.com/en-us/library/xh507fc5(vs.80).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Add build-in ASP.NET account in SQL Server logins.&lt;/p&gt;
&lt;p&gt;In SQL Sever Management Studio, expand “Security” node, right click “Logins” node and select “New Login…”. Add “machineName\ASPNET” or “machineName\Network Service”&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to create virtual folder in IIS for ASP.NET 2005 web project</title><link>http://forums.asp.net/thread/1851456.aspx</link><pubDate>Fri, 10 Aug 2007 08:50:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1851456</guid><dc:creator>naturehermit</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1851456.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=1851456</wfw:commentRss><description>&lt;p&gt;You topic and your error look different. Please specify whats the issue.&lt;/p&gt;
&lt;p&gt;Your error is to do with your application unable to connect to SQL server&lt;/p&gt;</description></item><item><title>How to create virtual folder in IIS for ASP.NET 2005 web project</title><link>http://forums.asp.net/thread/1851347.aspx</link><pubDate>Fri, 10 Aug 2007 07:38:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1851347</guid><dc:creator>pkarthik8</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1851347.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=1851347</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I have installed VS 2005 and created a web application as file system and i&amp;#39;m&amp;nbsp;using&amp;nbsp;SQL 2003&amp;nbsp;database in&amp;nbsp;another machine and when i run my project its going fine. (Connecting to db)&lt;/font&gt;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;Now i created a virtual folder in IIS and mapped my web project folder to it. ( &amp;quot;&lt;/font&gt;&lt;a href="http://localhost/Test/"&gt;&lt;font face="Times New Roman" size="3"&gt;http://localhost/Test/&lt;/font&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;quot; )&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Now when i access my application&amp;nbsp;thru&amp;nbsp;the address&amp;nbsp;its throwing Server Error&amp;nbsp;&amp;nbsp;(i have VS 2003 also in my machine)&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;i don&amp;#39;t want to connect to SQL 2005. Any settings have to be done in IIS ??&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Thankz in advance.&lt;/font&gt;&lt;/font&gt; 
&lt;h2 style="MARGIN:auto 0in;"&gt;&lt;font face="Times New Roman"&gt;&lt;i&gt;An error has occurred while establishing a connection to the server. &amp;nbsp;When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)&lt;/i&gt; &lt;/font&gt;&lt;/h2&gt;&lt;b&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;Description: &lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. &amp;nbsp;When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;/font&gt;&lt;/span&gt;
&lt;table class="MsoNormalTable" style="BACKGROUND:#ffffcc;WIDTH:100%;mso-cellspacing:1.5pt;" cellpadding="0" class="MsoNormalTable"&gt;

&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;mso-yfti-lastrow:yes;"&gt;
&lt;td class="" style="BORDER-RIGHT:#ece9d8;PADDING-RIGHT:0.75pt;BORDER-TOP:#ece9d8;PADDING-LEFT:0.75pt;PADDING-BOTTOM:0.75pt;BORDER-LEFT:#ece9d8;PADDING-TOP:0.75pt;BORDER-BOTTOM:#ece9d8;BACKGROUND-COLOR:transparent;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;code&gt;&lt;span style="FONT-SIZE:10pt;"&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/span&gt;&lt;/code&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>