Disappearing namespace? [modified]
-
Having an issue that is causing me to bang my head. my namespace is not being seen by the designer but still compiles and runs fine. the problem is that I can't view the forms at design time this happened shortly after I moved my files into folders to organize my program better. Yes I did make namespace modifications all throughout my app otherwise it wouldn't run. here is the main window xaml that is causing the error to occur.
these three give the error xmlns:local="clr-namespace:MHManager" xmlns:classes="clr-namespace:MHManager.Classes" xmlns:controls="clr-namespace:MHManager.Controls" Maybe this will help to figure this out. It only happens when I copy all the files and transfer them to my laptop to work on the project there. So on my desktop everything is fine, but after I open the project on my laptop the Designer displays this message: An Unhandled Exception has occurred System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType
-
Having an issue that is causing me to bang my head. my namespace is not being seen by the designer but still compiles and runs fine. the problem is that I can't view the forms at design time this happened shortly after I moved my files into folders to organize my program better. Yes I did make namespace modifications all throughout my app otherwise it wouldn't run. here is the main window xaml that is causing the error to occur.
these three give the error xmlns:local="clr-namespace:MHManager" xmlns:classes="clr-namespace:MHManager.Classes" xmlns:controls="clr-namespace:MHManager.Controls" Maybe this will help to figure this out. It only happens when I copy all the files and transfer them to my laptop to work on the project there. So on my desktop everything is fine, but after I open the project on my laptop the Designer displays this message: An Unhandled Exception has occurred System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType
Try using command Rebuild Soulution from Build menu. It will clean cache and build it again. Then try restarting visual studio. If those namespaces are in a diffrent project, then check references. Edit: You also coud try to delete .suo file that lies in the same folder that has a solution file. That file resets Certan IDE elements, but does not break project/solution. This file has hidden attribute. You need special settings to see it.
modified on Saturday, August 27, 2011 4:57 PM
-
Try using command Rebuild Soulution from Build menu. It will clean cache and build it again. Then try restarting visual studio. If those namespaces are in a diffrent project, then check references. Edit: You also coud try to delete .suo file that lies in the same folder that has a solution file. That file resets Certan IDE elements, but does not break project/solution. This file has hidden attribute. You need special settings to see it.
modified on Saturday, August 27, 2011 4:57 PM
Thanks I've tried cleaning and rebuilding the project/solution but I havn't tried deleting the .suo file.
-
Thanks I've tried cleaning and rebuilding the project/solution but I havn't tried deleting the .suo file.
Ok tried that and a few other things still get the same error and can't display design time window. Also it won't let me compile a release version like this although a debug version is fine.
-
Ok tried that and a few other things still get the same error and can't display design time window. Also it won't let me compile a release version like this although a debug version is fine.
What error does it throw when you compile release version. Maybe something is missing. Maybe you should check the folowing: Debugging Design-Time Controls[^] Walkthrough: Debugging Custom Windows Form control at Design Time[^]
-
Try using command Rebuild Soulution from Build menu. It will clean cache and build it again. Then try restarting visual studio. If those namespaces are in a diffrent project, then check references. Edit: You also coud try to delete .suo file that lies in the same folder that has a solution file. That file resets Certan IDE elements, but does not break project/solution. This file has hidden attribute. You need special settings to see it.
modified on Saturday, August 27, 2011 4:57 PM
ok now I can get it to build debug or retail on my desktop but my laptop gives me the error. Mind you it always been the laptop giving the error. Brand new Laptop 4gig ram, has the new AMD APU in it. What throws me is that it will compile and run in debug but not retail and the designer can't display my main form. Yet, on my desktop it is fine. This is driving me nuts. As for the Library Controls links I reviewed them, I do have some custom controls in my project but have not been giving me any trouble as they are basically overridden controls. Extended RTF editor, Masked Text Box, etc.
-
Having an issue that is causing me to bang my head. my namespace is not being seen by the designer but still compiles and runs fine. the problem is that I can't view the forms at design time this happened shortly after I moved my files into folders to organize my program better. Yes I did make namespace modifications all throughout my app otherwise it wouldn't run. here is the main window xaml that is causing the error to occur.
these three give the error xmlns:local="clr-namespace:MHManager" xmlns:classes="clr-namespace:MHManager.Classes" xmlns:controls="clr-namespace:MHManager.Controls" Maybe this will help to figure this out. It only happens when I copy all the files and transfer them to my laptop to work on the project there. So on my desktop everything is fine, but after I open the project on my laptop the Designer displays this message: An Unhandled Exception has occurred System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType
Is your solution/project saved on a network path? I ran into this issue an had to do some digging. I lost the link to it, but I am pretty sure it is a known issue if this is the case. The WPF designer is unable to pull the libraries across network shared paths so it can not render. Of course a normal application can do it so it will actually compile and run fine.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
-
Is your solution/project saved on a network path? I ran into this issue an had to do some digging. I lost the link to it, but I am pretty sure it is a known issue if this is the case. The WPF designer is unable to pull the libraries across network shared paths so it can not render. Of course a normal application can do it so it will actually compile and run fine.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.
I've tracked down the issue, trying to resolve it now. My issue stems from creating a custom style in Blend for parts of a third party control. I am using NavigationPane from Codeplex and had created styles for the splitterbars and buttons this seemed to work fine on my desktop but when moving it to my laptop it wouldn't display the design-time preview of the form. removing the Style="" comment made it viewable again. I've decided to modify the source code of NavigationPane and added my own style to it's list of Styles. So far this has solved the issue. This has been resolved Thank you for all the help.