Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to like pages of my website using C# and asp.net Pin
Krishnakumar Gupta8-Jan-14 18:43
Krishnakumar Gupta8-Jan-14 18:43 
AnswerRe: How to like pages of my website using C# and asp.net Pin
puja111918-Jan-14 19:31
puja111918-Jan-14 19:31 
AnswerRe: How to like pages of my website using C# and asp.net Pin
Tom Marvolo Riddle9-Jan-14 18:03
professionalTom Marvolo Riddle9-Jan-14 18:03 
AnswerRe: How to like pages of my website using C# and asp.net Pin
joginder-banger9-Jan-14 19:30
professionaljoginder-banger9-Jan-14 19:30 
QuestionCustom Control on web form Pin
wrappingduke8-Jan-14 17:43
wrappingduke8-Jan-14 17:43 
SuggestionRe: Custom Control on web form Pin
Richard MacCutchan8-Jan-14 22:31
mveRichard MacCutchan8-Jan-14 22:31 
GeneralRe: Custom Control on web form Pin
wrappingduke9-Jan-14 12:01
wrappingduke9-Jan-14 12:01 
QuestionTrying to run .Net 2.0 application in Visual Studio 2012 getting following error Pin
indian1438-Jan-14 14:22
indian1438-Jan-14 14:22 
Hi,

I have .Net 2.0 application I opened it in VS2012 its opening properly. I have set the target property v2.0 only and in IIS also I have set the application pool target to v2.0. But still I getting the following error when I am trying to run the application.
Please help me in resolving the error.

Server Error in '/apps/cnpweb/zzfdpsource/ORFdpProd' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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].

 

Stack Trace: 


[FileLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52

[ConfigurationErrorsException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +351
   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +56
   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +146
   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1219
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +97
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
   System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8986035
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Trying to run .Net 2.0 application in Visual Studio 2012 getting following error Pin
puja111918-Jan-14 19:19
puja111918-Jan-14 19:19 
GeneralRe: Trying to run .Net 2.0 application in Visual Studio 2012 getting following error Pin
indian1439-Jan-14 11:24
indian1439-Jan-14 11:24 
GeneralRe: Trying to run .Net 2.0 application in Visual Studio 2012 getting following error Pin
puja1119114-Jan-14 2:44
puja1119114-Jan-14 2:44 
AnswerRe: Trying to run .Net 2.0 application in Visual Studio 2012 getting following error Pin
smepperson21-Jan-14 7:05
smepperson21-Jan-14 7:05 
QuestionPlay Mp3 in website background Pin
Member 94738098-Jan-14 8:33
Member 94738098-Jan-14 8:33 
AnswerRe: Play Mp3 in website background Pin
Member 947380910-Jan-14 9:33
Member 947380910-Jan-14 9:33 
Questionmobile application Pin
Pushpam Abhishek7-Jan-14 23:36
Pushpam Abhishek7-Jan-14 23:36 
AnswerRe: mobile application Pin
Richard MacCutchan7-Jan-14 23:59
mveRichard MacCutchan7-Jan-14 23:59 
AnswerRe: mobile application Pin
joginder-banger9-Jan-14 19:54
professionaljoginder-banger9-Jan-14 19:54 
QuestionSSO Login Issue Pin
Rahool S7-Jan-14 23:23
Rahool S7-Jan-14 23:23 
SuggestionRe: SSO Login Issue Pin
Rahool S8-Jan-14 21:17
Rahool S8-Jan-14 21:17 
Questionopen outlook email from web apps Pin
byka7-Jan-14 9:18
byka7-Jan-14 9:18 
AnswerRe: open outlook email from web apps Pin
Richard MacCutchan7-Jan-14 22:10
mveRichard MacCutchan7-Jan-14 22:10 
GeneralRe: open outlook email from web apps Pin
byka8-Jan-14 6:32
byka8-Jan-14 6:32 
GeneralRe: open outlook email from web apps Pin
Richard MacCutchan8-Jan-14 6:46
mveRichard MacCutchan8-Jan-14 6:46 
Questioncreate a tab Pin
Member 104690297-Jan-14 4:58
Member 104690297-Jan-14 4:58 
SuggestionRe: create a tab Pin
Richard MacCutchan7-Jan-14 6:03
mveRichard MacCutchan7-Jan-14 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.