PDA

View Full Version : چرا هیچ کنترلی اضافه نمیشه؟؟؟؟



soghra
سه شنبه 25 دی 1386, 11:08 صبح
با سلام
لطفا اگه دلیلشو می دونید برام توضیح بدید
وقتی رو ی هر کنترلی از toolbox دابل کلیک می کنم هیچ کنترلی به صفحه اضافه نمیشه و وقتی هم که اونو درگ می کنم این ارور رو می ده
sections most only apear one per config file.see help topic<location> for exception
E\project\web.config line 27

ولی در خط 27 webconfig هیچ خبری یا توضیحی در این مورد نیست!!!
دلیلش چیه؟؟؟

soghra
سه شنبه 25 دی 1386, 12:40 عصر
من از reset sll settings هم استفاده کردم ولی مشکل حل نشد
خواهشاً کمکم کنید

Behrouz_Rad
سه شنبه 25 دی 1386, 14:54 عصر
محتویات فایل Web.Config ات رو اینجا کپی کن.

soghra
سه شنبه 25 دی 1386, 17:07 عصر
سلام اقای راد
اینم محتویات فایل webconfig
باتشکر از شما


<?xmlversion="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<pagestheme="MyTheme"/>
<compilationdebug="false"strict="false"explicit="true" />
<pages>
<namespaces>
<clear />
<addnamespace="System" />
<addnamespace="System.Collections" />
<addnamespace="System.Collections.Specialized" />
<addnamespace="System.Configuration" />
<addnamespace="System.Text" />
<addnamespace="System.Text.RegularExpressions" />
<addnamespace="System.Web" />
<addnamespace="System.Web.Caching" />
<addnamespace="System.Web.SessionState" />
<addnamespace="System.Web.Security" />
<addnamespace="System.Web.Profile" />
<addnamespace="System.Web.UI" />
<addnamespace="System.Web.UI.WebControls" />
<addnamespace="System.Web.UI.WebControls.WebParts" />
<addnamespace="System.Web.UI.HtmlControls" />
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticationmode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

Behrouz_Rad
سه شنبه 25 دی 1386, 17:18 عصر
شما از دو تا تگ pages استفاده کردی!
در Web.Config از هر Parent Tag فقط مجاز هستی که یک بار استفاده کنی.
تگ pages ای که برای اون theme تعریف کردی رو حذف کن و theme رو به تگ pages بعدی اضافه کن.

موفق باشید.