Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Disappearing namespace? [modified]

Disappearing namespace? [modified]

Scheduled Pinned Locked Moved WPF
helpdotnetwpfdesignquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alisaunder
    wrote on last edited by
    #1

    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

    S L 2 Replies Last reply
    0
    • A Alisaunder

      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

      S Offline
      S Offline
      Saksida Bojan
      wrote on last edited by
      #2

      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

      A 2 Replies Last reply
      0
      • S Saksida Bojan

        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

        A Offline
        A Offline
        Alisaunder
        wrote on last edited by
        #3

        Thanks I've tried cleaning and rebuilding the project/solution but I havn't tried deleting the .suo file.

        A 1 Reply Last reply
        0
        • A Alisaunder

          Thanks I've tried cleaning and rebuilding the project/solution but I havn't tried deleting the .suo file.

          A Offline
          A Offline
          Alisaunder
          wrote on last edited by
          #4

          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.

          S 1 Reply Last reply
          0
          • A Alisaunder

            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.

            S Offline
            S Offline
            Saksida Bojan
            wrote on last edited by
            #5

            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[^]

            1 Reply Last reply
            0
            • S Saksida Bojan

              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

              A Offline
              A Offline
              Alisaunder
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • A Alisaunder

                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

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                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.

                A 1 Reply Last reply
                0
                • L Lost User

                  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.

                  A Offline
                  A Offline
                  Alisaunder
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups