I am using WPF to display a Openlayers map in a program. But when starting it, i get this error, which doesn't really tell me anything at all:
The Error-Popup
Interestingly enough i can still load it in Internet Explorer (which is used internally by WPF).
If anyone could tell me how to properly debug this problem i would be quite thrilled.
Thanks in advance!
Related
I have created an Windows Form. I have worked very hard on it. I inserted a bunifu button and the deleted it via Form.Designer.cs. The form and it's border still appears (I set border to none) !(https://imgur.com/AWltgCp)
It doesn't work at all.
There isn't a ton of info here. If the project is still open you could try to ctrl-Z your way back. Hopefully you are using some sort of version control. If so you could utilize that. Otherwise I believe we will need to see more code.
This is a problem that happens to me, quite often. But it depends on the code. So, first of all, post your code so we can see it and tell what is the problem. Now, by guessing, possible solutions:
Check your design code. See if you removed anything by accident. If yes try doing it the right way.
Try cleaning and rebuilding your project. Sometimes files can get corrupted and that can help.
Try pressing Ctrl+Z to undo and see if it does something. As #alphamalle said, you should have been using a kind of version control(git, etc.) so you could easily go back to your previous revision.
If all of these don't work, then sadly we can't tell. Please post your code, because the project could have been permanently deleted. Good lesson to use version control.
I started converting a WinForms application of mine over to WPF, and there was one major issue I noticed right off the bat: even on a completely blank WPF project, the application will take roughly a second to open, whereas even heavy/intense WinForms applications I've written start up instantly or with no noticeable delay. Is this a global issue, or is it just me? If the former, is there any way to circumvent this? I find it incredibly annoying.
I apologise if this is a duplicate question (since it seems like something really basic), but I can't find any information on this.
I have a very odd problem. I've written a little inhouse app which scrapes a load of URLs, performs HEAD requests to get the size and populate a ListView control. Everything works fine when I am running it inside Visual Studio when debugging, but when I deploy the listview does not populate. The 2 are making exactly the same calls consistently. Does anyone have any idea what may cause this to happen?
Thanks I was able to find the solution by attaching the debugger to the process... many thanks to all for answering. I know this is a trivial question...
Many thanks
JT
I might have a hard time explaining this because I am at a total loss for what is happening so I am just looking for some guidance. I might be a bit wordy because I don't know exactly what is the relevant information.
I am developing a GUI for a project that I am working on in using .Net (C#)
Part of the interface mimics, exactly, what we do in another product. For consistency reasons, my boss wants me to make it look the same way. So I got the other software and basically copied and pasted the components into my new GUI.
This required me to introduce a component library (the now defunct Graphics Server GSNet, so I can't go to them for help) so I could implement some simple graphs and temperature/pressure "widgets."
The components show up fine, and when I compile, everything seems to work fine. However, at some point during my programming it just breaks. Sometimes the tab that these components are on starts throwing exceptions when I view the designer page (A missing method exception) so it won't display. Sometimes JUST those components from the GSNet library don't show up. Sometimes, if I try to run it, I get a not-instantiated exception on one of their lines of code in the designer code file. Sometimes I can't view the designer at all.
No matter what I do I can't reverse it. Even if I undo what I just did it won't fix it. If it happens, I have to revert to a backup and start over again.
So I started to backup pretty much every step. I compile it and it works. I comment out a line of code, save it, and then uncomment that same line of code (so I am working with the same exact code) and the components all disappear. It doesn't matter what line of code I actually comment out, as long as it is in the same project that these components are being used.
I pretty much have to use the components. . . so does anyone have any suggestion or where I can look to debug this?
The only thing that comes to mind is a read-only bin directory. I've found that .NET has trouble if the interop libraries in the bin directory are read-only. Read-only interops generally prevent controls using those interops from displaying in the form designer and thus mess up compilation (if you do a full build anyway). A rebuild might let you get the app running and then fail when it reaches the part using the read-only interop.
This may or may not be your problem but it's all that comes to mind.
I know this is very late to the game, but I just ran into this same problem.
I'd pulled down one of our applications from SVN, and when I first tried to open the main form for editing, I was prompted with the custom component not being defined in the software, even though I could plainly see it as a class. I was given a choice to ignore it, which I did, and the custom control promptly disappeared from the form (still showed up in the project).
So at the suggestion of my colleague, I deleted the instance from my hard drive, and re-checked it out from SVN. Before i did anything else, I built the project for both release & debug, and that fixed the problem.
Maybe this'll help someone else who finds this SO question when they run into this.
I developed a window application and setup for that application, when i click the setup it is open and when i clicked for second and third time and so on it is opening again and again.
please help me in this situation thank u.
I developed the application in C# language.it is running perfectly but when i click the setup again it is opening how can i stop it?
I think this is pretty much the expected behaviour. If you want to make sure that only one instance of your programm is started - which can be pretty challengeing - this is another issue. Pls let us know which language etc. you're using.
This codeguru article might be a good starting point anyways.
ADDITION:
In C# terms you might find this devblogpost interesting.