PDA

View Full Version : مشکل در لود کردن صفحه وب طراحی شده با asp.net



alvandyhamed
یک شنبه 29 دی 1392, 10:26 صبح
سلام
من یه وب طراحی کردم،بعد تو سیستم خودم اومدم iss نصب کردم (ویندوز 7)
بعد تو iss یه وب سایت جدید تعریف کردم و وب سایت پابلیش دم رو دادم بهش بعد بانک مربوط به وب سایت رو دوبار اتچ کردم(قبلا دی تچ کرده بودم)
بعد استارت اجراش که میکنم ارور زیر رو می ده


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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:


Line 17:
Line 18: <system.web>
Line 19: <compilation debug="true" targetFramework="4.0" />
Line 20:
Line 21: <authentication mode="Forms">

Source File: E:\site\web.config Line: 19

Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474

ahmad156
یک شنبه 29 دی 1392, 10:48 صبح
iss

مسلماً منظورتون IIS هست:لبخندساده:
شما پروژه ای که با NET 4.0. درست شده رو با VS 2005 باز کردین.

alvandyhamed
یک شنبه 29 دی 1392, 11:16 صبح
مسلماً منظورتون IIS هست:لبخندساده:
شما پروژه ای که با NET 4.0. درست شده رو با VS 2005 باز کردین.

آره همومن iis ببخشید(با عجله تایپ کردم)
خب من تو همون سیستمی که طراحیش کردم دارم بار گزاریش میکنم
چه کنم؟؟؟

vira1368
یک شنبه 29 دی 1392, 11:48 صبح
ورژن برنامه ای که نوشتین دات نت 4 هست. اما ورژن دات نت برای پروژتون در iis دات نت 2 هست.
باید برین توی تنظیمات iis و برای سایتتون دات نت 4 رو تعریف کنید. اگر هم اونجا دات نت 4 رو نداشت باید اول خود دات نت 4 رو نصب کنید.
ولی چون میگید با همون سیستم که برنامه رو نوشتین دارین اجرا میگیرین پس قبلا دات نت 4 نصب شده رو سیستم فقط کافیه تنظیم کنید.

ahmad156
یک شنبه 29 دی 1392, 11:49 صبح
<compilation debug="true" targetFramework="4.0" />

از web.config حذف کن و بعد اجرا کن ببین خطای دیگه ای میده

alvandyhamed
یک شنبه 29 دی 1392, 14:03 عصر
<compilation debug="true" targetFramework="4.0" />

از web.config حذف کن و بعد اجرا کن ببین خطای دیگه ای میده
سلام این کار رو کردم جوابش شد این!!!!!!

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: Could not load file or assembly 'main_faregh' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Source Error:


Line 57: <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 58: <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 59: <add assembly="*"/>
Line 60: <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Line 61: <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>

Source File: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Co nfig\web.config Line: 59

Assembly Load Trace: The following information can be helpful to determine why the assembly 'main_faregh' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474