Hi
It took me a very very long time to figure out I am having the issue because of the Infragistics controls
Following is the explanation of the error I get:
Error 1 Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified. C:\Projects\SilverlightApplication1\SilverlightApplication1\MainPage.xaml 1 1 SilverlightApplication1
I get this error only after I dragged the XAM Web Tree onto my project, rather after the infragistics controls are added to the project, I am using :
I am using SL 4.0 the Silverlight application is hosted inside of a .Net 4.0 application developed in VS 2010, I have both VS 2010 and VS 2008 installed on my system.
And the runtime version of this Infragistics.Silverlight.XamWebTree.v10.1.dll is rendered as v2.0.50727 on the visual studio.
I am not sure if it is a known error or if I have to reinstall something , Please let me know how to handle this as soon as possible, i have already spend far too many hours researching into this error and I have to finish off my work at hand as soon as possible.
Thanks
I actually encountered this exact issue on my own machine. In my case, I suspect it had something to do with a conflict between the Systems.Window.dll files across Silverlight 3 & 4.
My solution was to uninstall Silverlight (3 & 4), then re-install Silverlight 4. Specifically, I went to Start->Control Panel->Uninstall Programs and uninstalled Silverlight, the Silverlight 3 SDK, the Silverlight 4 SDK, and Silverlight 4 Tools for Visual Studio. Then, I re-installed Silverlight 4 from these links:
Silverlight 4 Developer Runtime: http://go.microsoft.com/fwlink/?LinkID=188039
Silverlight 4 Tools for Visual Studio: http://go.microsoft.com/fwlink/?LinkID=177428
Perhaps that will work for you.
Do i need to delete all the files related to silverlight in the reference assemblies?!
Further can you please check if i can install this one file should that be sufficient?
http://www.microsoft.com/downloads/details.aspx?FamilyID=eff8a0da-0a4d-48e8-8366-6ddf2ecad801&displaylang=en
That link is for Silverlight 4 Tools for Visual Studio 2010, so yes that should certainly be useful.
I had to first un-install Silverlight using the Control Panel, then re-install the Silverlight 4 components. You will probably need to install Silverlight 4 before installing the Silverlight Developer Tools.
As for reference assemblies, I started a new project in VS2010 after re-installation, and the build worked after adding the Infragistics control.
If un-installing and re-installing Silverlight doesn't work immediately, I would definitely recommend removing and re-adding the assembly references (at least to System.Windows) to the project, and trying to build again.
Neither of them are working! I just uninstalled everything, re installed them back again but still the issues persist, I am not sure how to take this forward.
Should I reinstall/run a repair on my VS 2010?!
You could try only installing the Silverlight 4 SDK, and _not_ installing the Silverlight 3 SDK, to see if version confusion between is the two is the root of your problem. You can verify which SDKs are installed in the Control Panel. Also, make sure that the System.Windows.dll exists where your project reference says it exists.
You could also try doing a re-install of VS 2010, though it's much less convenient. Personally , I re-installed VS 2010, but that didn't immediately resolve the issue-- the .dll build problem didn't go away until I fiddled with my Silverlight installations.
Working with .dll issues is tricky; in this case, the System.Windows.dll file is part of Microsoft Silverlight, not Infragistics. So, you might have some luck in Microsoft or Visual Studio forums.
Windows is capable of logging details for failed assembly binds, so if re-installing Silverlight doesn't work, this link might be relevant for you. See this article on fuslogvw.exe: http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx That's about all the information I can supply on the subject, though.
Glad to hear you got it working.
Thanks for the quick response, I was able to get to at least work after installing the SDK again, forcibly pulling the System.Windows.dll onto the GAC and setting the Copy Local to true.
Anyways thanks again for your help.