2

I suddenly started getting this error after working on this project for a few days.

In my MainWindow.xaml :

enter image description here

The more specific location of the error in my SidePanelView.xaml (a user control) :

enter image description here

I am using a package (from Nuget) that uses this config file. If I go to that file location then the file is there so I'm not sure why it says its not found, and also I'm not sure why it ends up in that location either.

This error causes the SidePanelView user control to not displayer in the Designer for the MainWindow, which is fine because the app appears to run correctly and everything displays. The only problem I am having is with a strange Buttom command binding issue which I thought maybe could possibly be related to this issue since I don't know to what else (WPF Button Command not firing, what am I missing?).

Does anybody have any ideas as to what is causing this issue, or should I just ignore it? Thanks

Community
  • 1
  • 1
CBrown77
  • 517
  • 4
  • 18
  • It actually looks like its trying to find the key `machineConfigFilename` in your `mydllname.dll.config` file. Can you verify that you have that file and that it includes a key that points to the machine.config file? – Ron Beyer Aug 18 '15 at 14:18
  • Maybe package is updated and you have to re-refence it (delete dll from project references and add it again)? – Sinatr Aug 18 '15 at 14:20
  • @RonBeyer I have the file but it does not contain they key. I have used this same package for a WinForm application, so I'm not sure why its raising an exception now. Why does it need the `machineConfigFilename` key? Or does it not? – CBrown77 Aug 18 '15 at 14:27
  • @Sinatr I'll give that a shot! – CBrown77 Aug 18 '15 at 14:27
  • Maybe some WPF-specific feature is requesting the key, but since it is complaining about it then I would guess its needed. Without knowing *what* package you are using, its hard to tell you why its complaining about it in this case and not in Winforms. – Ron Beyer Aug 18 '15 at 14:28
  • @Sinatr didn't work :( I'm not sure why its even looking in that file for the parameter `machineConfigFilename`... – CBrown77 Aug 18 '15 at 14:34
  • Something has changed if that was working before. Try to get this package again. Try fresh project and if it works, try to find out why yours stops working: comment recent changes, temporarily removing files from project, etc. – Sinatr Aug 18 '15 at 14:36
  • @RonBeyer It seems the application runs smoothly for the most part despite this error. Do you think my problem I linked to (http://stackoverflow.com/questions/32059694) would somehow be related? Or do you think I can solve that issue independent of this one which seemingly hasn't effected anything other than not seeing the user control in the Designer. – CBrown77 Aug 18 '15 at 14:45
  • 1
    i think you can have a look at http://stackoverflow.com/questions/24906964/why-does-my-usercontrol-not-display-in-the-designer – Justin CI Aug 19 '15 at 12:26

0 Answers0