ورود

View Full Version : عدم شناسایی نسخه .Net



مهدی رحیم زاده
سه شنبه 21 اردیبهشت 1389, 19:21 عصر
سلام
من پروژه رو با .Net 3.5 کار کردم .
هاستمم رایگانه و تا ASP 4.0 رو ساپورت می کنه اما الان برای نمایش صفحه این پیغامو میده :


System.Configuration.ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.

در صورتی که توی Web.Config من از این کد استفاده شه :

<providerOption name="CompilerVersion" value="v3.5"/>
چکار کنم درست بشه؟
با تشکر

salehbagheri
سه شنبه 21 اردیبهشت 1389, 20:54 عصر
راه صحيحش استفاده از VS 2010 و تبديل سايت به نسخه 4.0 هست.

اما راه دوم اينه كه تمامي اعداد مربوط به ورژن (در فايل web.confing) كه 3.5 هستند رو به 4.0 تغيير دهيد و دوباره اون فايل رو آپلود كنيد.

exlord
چهارشنبه 22 اردیبهشت 1389, 09:28 صبح
اگه تو web.config این کد هست

<system.web>
<compilation debug="true" targetFramework="3.5" />
</system.web>
این سطر رو حذف کن

targetFramework="3.5"