سلام من توی پروژه کنترلر اصلی مربوط به دانشجویان و یک Area کردم واسه ادمین حالا میخوام برای ورود به بخش ادمین صفحه لاگین داشته باشم چطوری باید web.config را تنظیم کنم
لازم نیست چیزی را در Web.config تنظیم کنید، برای Admin هم یک Area ایجا کنید و برای هم کدام یک صفحه لاگین ایجاد کنید.
درست کردم ولی خطا میده
Server Error in '/' Application. 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: 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. Source Error: Line 27: <!--<httpRuntime requestValidationMode="4.5" />--> Line 28: <httpRuntime maxRequestLength="1048576" /> Line 29: <authentication mode="Forms"> Line 30: <forms loginUrl="~/Account/Login" defaultUrl="Home" /> Line 31: <!--timeout="10"-->
از Identity 2.0 استفاده نمی کنید ؟
چی هست؟
این لینک رو ببینید
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)