It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have simple WPF app that I deployed using click once to shared folder on my computer so it can be installed via local network. When I click on install button , it prompts me to download/save setup file, and when I run it, it installs app to my computer. But, when I try to start it I get this screen
and then nothing happens. Any ideas...?
That dialog is checking for updates. My best guess is that you have an unhandled exception that occurs on application startup, which causes your app to crash.
For WPF, you will want to add handlers to both of these events:
AppDomain.CurrentDomain.UnhandledException
Application.Current.DispatcherUnhandledException
I usually attach to them in my application class's OnStartup method. In the event handlers, I would then log the exception, so I can look at what is failing in production.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a WCF service that hosted in windows services.
I'm trying to call the service from the code, when i'm in visual studio everything works fine, but if i'm closing visual studio and run the application from bin/debug/MyApp.exe i'm getting an exception )it can't find the service).
what should I do in order to call window service?
Thank you all...
Fix your programming error.
Simple, isn't it?
THat is about the only answer that is suitable for your question - you totally fail to give even a baseline Explanation.
I would look into
Errors that happen in in the Service. Maybe the WCF Service is NOT hosted when starting outside visual Studio?
Reading skills - targttted epecially at the exception you get, which seriously also includes a stack trace.
Getting some nice Story telling skills. We all like you to tell nice stories, for example how the servie is configured, the relevant lines of code where you actually set it up.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've seen some applications that create virtual desktops. I want to create one.
However, I do not know how you would do this, or even it it is possible.
How do I create a virtual desktop/monitor in C#?
You need to use CreateDesktop function in order to create full functional dekstop on windows os:
Creates a new desktop, associates it with the current window station
of the calling process, and assigns it to the calling thread. The
calling process must have an associated window station, either
assigned by the system at process creation time or set by the
SetProcessWindowStation function.
Would invite your attention also on interesting article from CodeProject:
Desktop Switching
In general multidektop environment already exists in Windows Os for many years, but never has been "visible" via any multi-dektop application implemented by MS itself.
For some reason MS never, as much as I'm aware of, implemented multidesktop app.
If I'm not mistaken, beginning even from WindowsNT familly OSes, you already have a second desktop. When you press Ctrl+Alt+Del the screen that appears, in reality, is on another, fully functional, windows desktop.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I developed on console application. I finished that successfully.My requirement is,that application automatically run in weekly once. I don't know how to set automatic debug.Can you please any one help me.
When you create a Console application, you will get an executable file *.exe.
You may schedule the exe using Operating system scheduling. That way you can specify the time and interval for the application to launch itself. You can't set it to debug through visual studio.
Another way could be to create Windows Service application, but probably you don't need it. Scheduling is a much better option.
You may see this article: How to schedule a program to run automatically.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I Have created a application, and i want to create a set up file, where the application should run automatically like when we move it to start up folder. but here i want to keep it when it will install the application.
and second thing, I want to implement also when my application will close, but that application should not quit, it will run like any anti virus software, skypee, etc. and we can maximize it from show hidden icons
You are looking for a Windows Service.
The service will run at all times even when no-one is logged in.
A WinForms application could be added to the system tray How to make a Windows Forms .NET application display as tray icon? and it could communicat with the service to find out its status or to configure it.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
any help with this would be gratefully received.
I have a Windows Forms project in C#. This, when a button is pressed opens a new Outlook email via interop. When the email has been sent and added to the sent items folder, the Windows Forms project then opens a single form which contains a single panel currently.
My problem is that everything seems to run fine, I use Marshalling to sever the links with the interop instance of Outlook all other methods seem to run as normal in the Windows Forms project, but the form that is opened (called zoom) just shows the Spinning Wheel waiting symbol.
When I break on the code to see what it's doing, it appears to be doing nothing. This is driving me nuts. Can anyone suggest why the form (Zoom) that is launched after the interop facility has done its stuff and apparently been disposed appears to hang.
It does appear to me somehow to be connected to the Interop instance but I can't see how.
As I remember interop objects should be disposed.
Try this