Server Error in '/' Application. ASP.NET
<p>Greeting,</p>

<p>I developed a website using ASP.Net 3.5 and C#. It is working good with Visual Stdio 2010.
I uploaded my website to my domain under the public folder.</p>

<p>First time I lunched my website for testing (http://wecoders.com/Habib_cuizine/Gallery.aspx) 
I would revive (Server Error in '/' Application.)</p>

<blockquote>
  <p>Runtime Error Description: An
  application error occurred on the
  server. The current custom error
  settings for this application prevent
  the details of the application error
  from being viewed remotely (for
  security reasons). It could, however,
  be viewed by browsers running on the
  local server machine.</p>
  
  <p>Details: To enable the details of this
  specific error message to be viewable
  on remote machines, please create a
   tag within a
  "web.config" configuration file
  located in the root directory of the
  current web application. This
   tag should then have
  its "mode" attribute set to "Off".</p>
</blockquote>

<pre><code>&lt;!-- Web.Config Configuration File --&gt;
&gt; 
&gt; &lt;configuration&gt;
&gt;     &lt;system.web&gt;
&gt;         &lt;customErrors mode="Off"/&gt;
&gt;     &lt;/system.web&gt; &lt;/configuration&gt;
</code></pre>

<blockquote>
  <p>Notes: The current error page you are
  seeing can be replaced by a custom
  error page by modifying the
  "defaultRedirect" attribute of the
  application's 
  configuration tag to point to a custom
  error page URL.</p>
</blockquote>

<pre><code>&gt; &lt;!-- Web.Config Configuration File --&gt;
&gt; 
&gt; &lt;configuration&gt;
&gt;     &lt;system.web&gt;
&gt;         &lt;customErrors mode="RemoteOnly"
&gt; defaultRedirect="mycustompage.htm"/&gt;
&gt;     &lt;/system.web&gt; &lt;/configuration&gt;
</code></pre>

<p>To fix this error I added to the webConfig file inside  tag:</p>

<pre><code>&gt; &lt;customErrors mode="Off"/&gt;
</code></pre>

<p>After that when I lunch the website I would receive a new error as listed bellow:</p>

<p>Configuration Error
Description: 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.</p>

<p>Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.</p>

<p>Source Error:</p>

<p>Line 35:             ASP.NET to identify an incoming user. </p>

<pre><code>Line 36:         --&gt;
Line 37:         &lt;authentication mode="Windows" /&gt;
Line 38:         &lt;!--
</code></pre>

<p>Line 39:             The  section enables configuration </p>

<p>Source File: \10.0.40.35\wecoders.com\public\habib_cuizine\web.config    Line: 37 </p>

<p>Please advice how to fix this error and how configure  my website which developed using Visual Stdio 2010 to be published in the internet.</p>

<p>Regards,</p>
