编译项目时出错 [英] Got error when i compile my project

查看:99
本文介绍了编译项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译时有一个项目,而不是我得错误。所以请帮助我如何修改它。





I have one project when i compile than i got error.So pls help me how tofixed it.


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





Regard
Sinnam Kushwah

推荐答案

请参考以下链接。



http://forums.iis.net/t/ 1148147.aspx [ ^ ]



http://forums.asp.net/t/769696.aspx [ ^ ]
Please refer following link.

http://forums.iis.net/t/1148147.aspx[^]

http://forums.asp.net/t/769696.aspx[^]


抱歉先生我已经引用这些链接但没有解决方案。



root web.config

sorry sir i already refer these links but no solution.

root web.config
<?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>

<授权>

< deny users =?>







< connectionstrings>

< add name =DataAccessQuickStartprovidername =System。 Data.SqlClientconnectionstring =Data Source = SSKUSHWAH-PC; Initial Catalog = tsm; User ID = sa; Password = SSKUSHWAH>



< dataconfiguration defaultdatabase =DataAccessQuickStart>

< appsettings>

< clear>



< system.web>

< pages enablesessionstate =trueenableviewstatemac =falseenableeventvalidation =falseviewstateencryptionmode =Nevertheme =SkinFilecontrolrenderingCompatibilityversion =3.5clientidmode =AutoID>

< controls>

< add namespace =AjaxControlToolkitassembly =AjaxControlToolkittagprefix =ajaxToolkit>

< add tagprefix =CustomControlsnamespace =CustomWebControlsassembly =CustomWebControls>





< compilation debug =truedefaultlanguage =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 =中性,PublicKeyToken = B77A5C561934E089>

< add assembly =System.Web.Services,Version = 4.0.0.0,Culture = neutral, PublicKeyToken = B03F5F7F11D50A3A>



< httphandlers>

< add verb =POST,GETpath =ajaxpro / * .ashxtype =AjaxPro.AjaxHandlerFactory,AjaxPro.2>



< authentication mode =Forms>

< forms name =AuthCookiepath =/loginUrl =〜/ Admin / AdminLogin.aspxprotection =Alltimeout =20>

< / forms>



<授权>

< allow users =?>



< sessionstate timeout =60>

< customerrors mode =Off>







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



请给我正确的解决方案。


这篇关于编译项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆