<?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: do I need to publish my website to be able to access it via server name?</title><link>http://forums.asp.net/thread/1955801.aspx</link><pubDate>Mon, 15 Oct 2007 06:50:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1955801</guid><dc:creator>Benson Yu - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1955801.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1955801</wfw:commentRss><description>&lt;p&gt;Hi Programthat,&lt;/p&gt;
&lt;p&gt;Based on my understanding, you have created a simple web project. The issue is when you browse the page, the url always displays as http://localhost:portnumber/project/page.aspx. In addition, you encountered “beyond application level” error. If I have misunderstood your concern, please let me know.&lt;/p&gt;
&lt;p&gt;The port number exists in the url because you are using ASP.NET Development Server to host the web page. When you use the url: http://localhost/project/page.aspx without port number, IIS has the responsibility for host the page. However, the project are file system based and not registered with IIS, so you get the “beyond application level” error.&lt;/p&gt;
&lt;p&gt;To resolve this issue, please create a virtual directory for your project in IIS, and then modify the project to use IIS as web server:&lt;/p&gt;
&lt;p&gt;For web application project:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Right click the project in Solution Explorer, and then select “Properties”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Click the “Web” tab.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Choose “Use IIS Web server” instead of “Use Visual Studio Development Server”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Input http://servername/website_name in the “Project Url” textbox, and then click “Create” Virtual Directory” button.&lt;/p&gt;
&lt;p&gt;For web site project:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Create virtual directory for current project.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Please follow steps in this link:&lt;br /&gt;How To Create a Virtual Directory in Internet Information Services (IIS)&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/172138/en-us"&gt;http://support.microsoft.com/kb/172138/en-us&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Right click the project in Solution Explorer, and then select “Property Pages”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Click the “Start Options” tab.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Choose “Use custom server” instead of “Use default Web server”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. Input http://servername/website_name in the “Base URL” textbox.&lt;/p&gt;
&lt;p&gt;In addition, when you want to create web application with IIS next time, choose “HTTP” as the location instead of “File System” in the new project dialog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: do I need to publish my website to be able to access it via server name?</title><link>http://forums.asp.net/thread/1949877.aspx</link><pubDate>Wed, 10 Oct 2007 15:11:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1949877</guid><dc:creator>programthat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1949877.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1949877</wfw:commentRss><description>&lt;p&gt;I do only have one web.config file.&amp;nbsp; I know in all the posts I have read on other sites it says the above error is because the directory is not set up as an application in IIS.&amp;nbsp; This is true it is not.&amp;nbsp; I have already tried once with another project to click the create button in IIS and set the default application name.&amp;nbsp; This does not work either.&amp;nbsp; I can get t the index page, but not the second page of my application.&amp;nbsp; This is because of the localhost:port number thing in vss 2005.&amp;nbsp; I want to be able to call my pages via &lt;a href="http://servername/page.aspx"&gt;http://servername/page.aspx&lt;/a&gt;&amp;nbsp;&amp;nbsp; HELP PLEASE!!&lt;/p&gt;</description></item><item><title>Re: do I need to publish my website to be able to access it via server name?</title><link>http://forums.asp.net/thread/1949156.aspx</link><pubDate>Wed, 10 Oct 2007 08:56:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1949156</guid><dc:creator>HosamKamel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1949156.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1949156</wfw:commentRss><description>&lt;p&gt;Please try to make sure that you have only one web.config file in your application directory.&amp;nbsp;&lt;/p&gt;</description></item><item><title>do I need to publish my website to be able to access it via server name?</title><link>http://forums.asp.net/thread/1948823.aspx</link><pubDate>Wed, 10 Oct 2007 04:15:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1948823</guid><dc:creator>programthat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1948823.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=26&amp;PostID=1948823</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve been searching for a while and can&amp;#39;t seem to find the answer I&amp;#39;m looking for so I&amp;#39;m going to post these questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;a simple web application that builds a tree view based on a folder structure it retreives from another application via COM.&amp;nbsp; I am fairly new to VSS 2005 and I dont like the whole localhost:portnumber thing it chooses for me when I create the application. &amp;nbsp;In all my response.redirects I have to use localhost:1130/page.aspx or I get page not found.&amp;nbsp; Can I get rid of this and just use localhost?&amp;nbsp; If so how do I set this up?&lt;/p&gt;
&lt;p&gt;I would like to be able to test this web app by accessing it from another machine via &lt;a href="http://servername/website_name"&gt;http://servername/website_name&lt;/a&gt;.&amp;nbsp; When I try this I get the error below.&amp;nbsp; Do I need to publish this site to be able to access it that way?&amp;nbsp; Is it all related to the localhost:portnumber?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Russell&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;&lt;i&gt;Configuration Error&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&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;It is an error to use a section registered as allowDefinition=&amp;#39;MachineToApplication&amp;#39; beyond application level. &amp;nbsp;This error can be caused by a virtual directory not being configured as an application in IIS.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 49:             ASP.NET to identify an incoming user. 
Line 50:         --&amp;gt;
&lt;font color="red"&gt;Line 51: 		&amp;lt;authentication mode=&amp;quot;Windows&amp;quot;/&amp;gt;
&lt;/font&gt;Line 52: 		&amp;lt;!--
Line 53:             The &amp;lt;customErrors&amp;gt; section enables configuration &lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;font face="Verdana"&gt;Source File: &lt;/font&gt;&lt;/b&gt;c:\inetpub\wwwroot\lfconnect\web.config&lt;b&gt;&lt;font face="Verdana"&gt; &amp;nbsp;&amp;nbsp; Line: &lt;/font&gt;&lt;/b&gt;51 &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>