ورود

View Full Version : سوال: اجرا کردن سایت در IIS



teardrop
سه شنبه 17 اسفند 1389, 19:23 عصر
به نام خدا
با سلام
من سایتی رو با فریم ورک 4 نوشتم در محیط ویژوال استودیو اجرا میشه.ولی وقتی Publish میکنم و براش دایرکتوری مجازی میسازم یا از نوار آدرس اجرا میکنم ارور میده ولی اگر سایت رو با فریم ورک 3.5 مینویسم با IIS میتونم اجراش کنم.
چه طوری در IIS سایت فریم ورک 4 رو اجرا کنم؟
ERROR:



Server Error in '/b' 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 6: <configuration>
Line 7: <system.web>
Line 8: <compilation debug="true" targetFramework="4.0"/>
Line 9: </system.web>
Line 10: </configuration>


Source File: G:\Users\hr\Desktop\b\web.config Line: 8

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

IranVisual
سه شنبه 17 اسفند 1389, 20:25 عصر
رو application pool مورد نظر دو بار کلیک کن و ورژن اون رو به .net 4 تغییر بده الان رو .net 2 تنظیمه .