Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have one project when i compile than i got error.So pls help me how tofixed it.


VB
Error   23  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.  F:\Infoway\Time Tracking Software\SourceCode\TimeSheet-Demo\web.config  51




Regard
Sinnam Kushwah
Posted

 
Share this answer
 
sorry sir i already refer these links but no solution.

root web.config
XML
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/></assemblies></compilation>
    </system.web>
</configuration>



..........................................
sub dir web.congig




<configuration>
<configsections>


<location path="Admin">
<system.web>
<authorization>
<deny users="?">



<connectionstrings>
<add name="DataAccessQuickStart" providername="System.Data.SqlClient" connectionstring="Data Source=SSKUSHWAH-PC;Initial Catalog=tsm;User ID=sa;Password=SSKUSHWAH">

<dataconfiguration defaultdatabase="DataAccessQuickStart">
<appsettings>
<clear>

<system.web>
<pages enablesessionstate="true" enableviewstatemac="false" enableeventvalidation="false" viewstateencryptionmode="Never" theme="SkinFile" controlrenderingcompatibilityversion="3.5" clientidmode="AutoID">
<controls>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagprefix="ajaxToolkit">
<add tagprefix="CustomControls" namespace="CustomWebControls" assembly="CustomWebControls">


<compilation debug="true" defaultlanguage="c#" targetframework="4.0">
<assemblies>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">

<httphandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2">

<authentication mode="Forms">
<forms name="AuthCookie" path="/" loginUrl="~/Admin/AdminLogin.aspx" protection="All" timeout="20">
</forms>

<authorization>
<allow users="?">

<sessionstate timeout="60">
<customerrors mode="Off">



.........................................

pls give me correct sol.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900