
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are experiencing a problem within Visual Studio/Revit when building our solution that includes WPF's and xaml files. For some reason, unknown to us, our computers will randomly "lose" the xaml file associated with a WPF. We have searched all over for others experiencing this smae issue, but are coming up blank. So I am hoping that a specific post here might help us get an answer. So far, this issue has happened on two different computers with different logins (and profiles). All the while, other computers can build and run the solution in Revit even after the other computers "break".
We are using Visual Studio 2013 and using Team Foundation Source Control and programming in Revit 2015. The computers in question are running 2015R2(2015UR4) and 2015UR3.
As far as we can tell, everything is in order regarding the files remaining in place within the Visual Studio workspaces and etc. We have removed the solutions from the computer and pulled down all code again from Source Control, copied Visual Studio workspaces from one computer to another and the problem remains.
The error we recieve is included below. I have also attached the three files in question (MainWindow.xaml, MainWindow.xaml.cs, and TicketManager\TicketManager.cs) as a single zip file in the event it helps.
Any help or points in the right direction would be greatly appreciated.
System.IO.IOException: Cannot locate resource 'ticket%20tools/ticketmanager/views/mainwindow.xaml'.
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at EDGE.TicketManager.MainWindow.InitializeComponent() in d:\Visual Studio 2013\Projects\EDGE\EDGE\Ticket Tools\TicketManager\Views\MainWindow.xaml:line 1
at EDGE.TicketManager.MainWindow..ctor() in d:\Visual Studio 2013\Projects\EDGE\EDGE\Ticket Tools\TicketManager\Views\MainWindow.xaml.cs:line 26
at EDGE.TicketManager.TicketManager.Execute(ExternalCommandData commandData, String& message, ElementSet elements) in d:\Visual Studio 2013\Projects\EDGE\EDGE\Ticket Tools\TicketManager\TicketManager.cs:line 21
Thanks,
Keith
Solved! Go to Solution.