PDA

View Full Version : این Error مربوط به چیست؟



soroush_vs
سه شنبه 20 تیر 1385, 17:59 عصر
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.

Parser Error Message: Unrecognized configuration section 'location'

Source Error:


Line 62:
Line 63:
Line 64: <location path="signin.aspx">
Line 65: <system.web>
Line 66: <authorization>


در ضمن من از Net. 1.1 استفاده میکنم

white fox
سه شنبه 20 تیر 1385, 21:56 عصر
شما دارید برای یک صفحه تنظیمات سطح کاربری رو انجام میدید و Location میدید...غلطه
Location رو برای پوشه خاصی در مسیری خاص تنظیم میکنن نه یک فایل aspx
این صفحتون رو بزارید داخل یک پوشه و برای پوشه Location تعیین کنید
موفق باشید.

Behrouz_Rad
سه شنبه 20 تیر 1385, 22:10 عصر
شما دارید برای یک صفحه تنظیمات سطح کاربری رو انجام میدید و Location میدید...غلطه
Location رو برای پوشه خاصی در مسیری خاص تنظیم میکنن نه یک فایل aspx
این صفحتون رو بزارید داخل یک پوشه و برای پوشه Location تعیین کنید
موفق باشید.
کی همچین حرفی زده؟
کاملا اشتباه می کنی!
دقیقا بالعکس گفتی...!

white fox
سه شنبه 20 تیر 1385, 22:33 عصر
By default, all configuration settings defined within the top-level <configuration> tag are applied to the current directory location of the containing web.config file and to all of the child paths beneath it. You can optionally apply configuration settings to specific child paths under the current config file by using the <location> tag with an appropriately constraining path attribute. If the config file is the main machine.config file, you can apply settings to specific virtual directories or applications and the virtual path needs to include the friendly name of the site like, <location path="Default Web Site/EnglishPages/OneJapanesePage.aspx">, which is also shown in the example below. If the config file is a web.config file, you can apply settings to a specific file, child directory, virtual directory, or application.

آقای راد این متن مال خوده MSDN.....شاید من بد گفتم...بیانم بد بوده..اما منظورم همین بود تقریبا!؟
به هر حال قصد نداشتم که ایشونو به اشتباه بندازم.

white fox
سه شنبه 20 تیر 1385, 22:38 عصر
البته آره اشتباه کردم...در مسیر میشه نام فایل رو هم داد مثل زیر:


<configuration>
<location path="Logon.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>

خوب خوبه آدم اشتباهشو قبول کنه....نه؟

Behrouz_Rad
سه شنبه 20 تیر 1385, 23:03 عصر
خوب خوبه آدم اشتباهشو قبول کنه....نه؟
آره......!

soroush_vs
چهارشنبه 21 تیر 1385, 06:48 صبح
آقا جواب مارو که ندادید ولی به هر حال متشکر مشکلم حل شد!