Last post Oct 24, 2011 08:54 AM by jassi_singh
Oct 19, 2011 12:40 PM|sivapragasammca|LINK
i kept getting the following errors.
"Could not load file or assembly 'System.Core, Version=18.104.22.168, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified."
I am developing an web application in framework 3.5. I copied the System.Core dll from my development pc to hosting server. After this i get the following error.
"Could not load file or assembly 'System.Core, Version=22.214.171.124, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
I am not using this dll in my project.
I reffered the following site too:
I used the assembly binding as follows:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727" > <dependentAssembly> <assemblyIdentity name="System.Core" publicKeyToken="7cec85d7bea7798e"/> <bindingRedirect oldVersion="126.96.36.199" newVersion="188.8.131.52"/> </dependentAssembly> </assemblyBinding>
Help me to get out from this error.
Oct 19, 2011 08:02 PM|robwscott|LINK
seems that your hosting server is running your app under 2.0 instead of 3.5+. are you able to access this hosting server? if you are, try to install 3.5 or 4.0 framework on this server. here is another article on System.Core and the effects it has on programs,
whether you reference the .dll or not
also i read this:
Just add System.Core.dll, System.Windows.dll and system.dll to GAC(From C:\Windows\Microsoft.Net\framework\theFrameworkFolder
was for silverlight, but could work for you also
Oct 20, 2011 06:50 PM|markfitzme|LINK
Have you checked to make absolutely sure that your host doesn't have the application set as 4.0? Keep in mind, ASP.Net 3.0 and 3.5 are add-ons really to 2.0, which is why they are such small frameworks as they only add on top of it. 4.0, on the other hand,
is a completely different product so that's why it has a different application pool setting. You may want to check that as I've had that happen to me before when I accidentally set my site to use a 4.0 app pool instead of a 2.0 app pool (which works even though
the app is compiled as 3.5 since it is just additional items).
Oct 21, 2011 04:06 AM|kctt|LINK
Do you have access to server as administrator?
If yes, yo ucan download and install asp.net 3.5 here
Oct 24, 2011 08:16 AM|necro_mancer|LINK
May I please know where did you host your site? Have you contacted your host with regards to this problem?
Oct 24, 2011 08:54 AM|jassi_singh|LINK
Could not load file or assembly 'System.Core, Version=184.108.40.206, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
I've had about all I can take from this error. It occurs randomly, out of nowhere, when I try to compile anything in VSTS and a Silverlight project (of any type, xap, dll, etc) exists in that compile sequence.
Up until now the only fix I have found is to exit all instances of Visual Studio and load them back up. This makes the error go away for at least one compile.
Well, having put up with just about enough out of Silverlight, I have another fix that is technically not something you would normally want to do. Add System.Core.dll to the Global Assembly Cache (GAC).
Search for the System.Core.dll relating to Silverlight (likely at C:\Program Files\Microsoft Silverlight\2.x) and use the
gacutil.exe to add it.
After doing this, the problem has not reoccurred for me.