Reputation: 1
I'm a newbie to xaml and I had made an application a long time ago. It is a small project, nothing fancy or difficult, it was my first xaml/wpf project and I had made it in just a week end. I retrieved the code recently. The application still builds and runs, but the designer doesn't load. There are errors in the xaml file. I don't recall having these errors before. The first one of these errors is:
Unable to load the metadata for assembly 'MyProject'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'MyProject' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) C:\visualStudioWorkspace\MyProject\MyProject\MainWindow.xaml 1 1 MyProject
I tried to go to the url mentioned, but I didn't understand any of it. I didn't download it from the web. I don't know what a 'assembly' is. I tried going through a few random files in my project but none had this "unblock" button they're talking about in their respective files properties.
Then there's around 10 errors in the xaml, all of which are similar to this one:
The type 'local:ClickSelectTextBox' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\visualStudioWorkspace\MyProject\MyProject\MainWindow.xaml 351 22 MyProject
What can I do to solve this error ?
Thanks
Upvotes: 0
Views: 2383
Reputation: 392
to delete the streams associated with files in your solution :
c:\streams -s -d <path to your solution>
Upvotes: 0
Reputation: 64979
Windows keeps track of whether files may have been downloaded from the web by creating 'alternate data streams' for these files. For a file named myfile.txt
, the information about where it came from will be stored in a data stream named myfile.txt:Zone.Identifier:$DATA
. To unblock myfile.txt
and make Windows stop worrying about where you got the file from, you just have to delete this alternate data stream.
You can use the Sysinternals Streams utility to find and get rid of these alternate data streams.
Upvotes: 2