|
|
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
|
|
|
|
|
Though I am not very sure, but we had a similar problem in our project. If we choose the framewrok to 4.0 (the project was supposed to run in 3.5), we used to get these errors.
To resolve it go to your web.config file and change the 4.0.0.0 to 2.0.0.0. It worked for us!
Hope it helps
|
|
|
|
|
Hi,
Where in the Web config we have to change the version from 4.0.0.0 to 2.0.0.0, I am not seeing any where that I am setting it to 4.0.0.0.
Can you please point me the element name in the Web config I have to do it?
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Try searching in your web .config file.
Otherwise if possible please post the web .config file here.
So that I can have a look
|
|
|
|
|
This is the same problem I had two days ago and it took me way too long to figure out. If you right click the project in Visual Studio and go to Property Pages you will see the targeted framework. You have said that your's is targeted correctly however under MSBuild Options make sure that you do not have any of the checkboxes checked. It took me forever to figure out that I had one checked off and it was interfering with testing in the browser. Hope this helps.
|
|
|
|
|
hi ,
How to play MP3 music in whole background.
(I have 2 Master Pages)
continue to play from page to page. Example, when the first song is still playing and the visitor click on another page, I want that song to continue playing without reload.
and when in one page in stoped the music then stop when i go to other page.
and in i pause that it pause in other page and start when i clik play .
In Other word :
I am wondering how I make get an audio file to play 'continuously' on all pages. So if the audio file has played for 20 seconds, then when navigating on another page it will continue from where it left off. I also am trying to get the volume to decrease after navigating away from my home page
Thanks in advanced!
|
|
|
|
|
|
how to make a mobile application on visual studio 2008?.
|
|
|
|
|
|
|
I am working on a website for which I use SSO Login. On one of the webpage I need to make HttpWebRequest to another resource which needs SSO credentials of the logged in user. How can I pass the SSO login credentials (may be in base64 encoded format) which I used to login to website to the HttpWebRequest header? I tried using CredentialCache.DefaultCredentials and DefaultNetworkCredentials but they do not return anything.
Thanks in advance, Rahool Sharma
modified 8-Jan-14 5:49am.
|
|
|
|
|
I came to the conclusion after research that I need to get the credentials from the SMSESSION cookie in the webpage to pass it to the consequent request. Can anyone help on how to extract the credentials from the SMSESSION cookie?
Thanks in advance, Rahool
|
|
|
|
|
I need to open outlook email from web apps (using Microsoft.Office.Interop.Outlook) it working fine on my local pc but not on a server.
1. Do i need to install outlook on a server
2. if there are a better way to accompish this req
|
|
|
|
|
byka wrote: Do i need to install outlook on a server Where are the mail messages stored that you are trying to open?
Veni, vidi, abiit domum
|
|
|
|
|
email message is generated on a fly in my code...
Customers would like to open outlook message so they can add(if needed) additional cc and bcc
|
|
|
|
|
byka wrote: email message is generated on a fly in my code. Where? On the client or server?
byka wrote: Customers would like to open outlook message so they can add(if needed) additional cc and bcc Then you will need to store it on the same system that has outlook installed.
Veni, vidi, abiit domum
|
|
|
|
|
i want to create a simple tab in asp.net pls give me simple code
|
|
|
|
|
|
I need to generate 8 digit uniq number with time and date..
I was able to get random number but because my application is running to fast some times its not uniq .
Could you help me to add any time????
Dim random = New Random(System.DateTime.Now.Millisecond)
Dim randomNumber As Integer = random.[Next](1, 500000)
Dim str As String = DateTime.Now.ToLongTimeString()
|
|
|
|
|
byka wrote: 8 digit uniq number with time and date..
What do you mean by "with time and date"? Does it mean that the date and time should be part of the random number?
byka wrote: my application is running to fast some times its not uniq
Shouldn't be the case. If you seed it properly, they won't repeat.
byka wrote: Dim str As String = DateTime.Now.ToLongTimeString()
What does this line of code do?
|
|
|
|
|
Dim random = New Random(System.DateTime.Now.Millisecond)
If you are doing that every time, just before you call random.[Next](1, 500000) then it is most likely that you will get duplicates. You should call the seeding method only once in your entire program.
Veni, vidi, abiit domum
|
|
|
|
|
I want to ask, so I was able to perform it about the use of repeaters and multiple choice using the radio button for in asp.net. I want to ask, how do I make a correction about using mysql in asp.net
thank you
|
|
|
|
|
Your question is not worded properly to attract an answer. Please edit your question and rephrase it. You may also explain your problem with code and examples.
|
|
|
|
|
Hello friends, please I need your help. I'm currently working on chat program and I'm using asp.net. I'm display chat messages with repeater control, and this repeater control is inside a panel control which I set the scrollbar to vertical. Everything is working fine but the challenge I'm having is how to make the panel control always scroll to bottom, so that chat users can always see the new messages. I tried the following but is not working<pre><script type="text/javascript">
function Scrl()
{
var panel=document.getElementByid('<%=pnlcht.ClientID%>');
panel.scrollTop=panel.scrollHeight;
}
</script>
</pre>
then on the PreRender of the panel control, the following is written
<pre>ScriptManager.RegisterStartupScript(pnlcht,pnlcht.GetType(),"Scrl","Scrl",true)</pre>
Please help...
-- modified 9-Jan-14 4:53am.
|
|
|
|
|