Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have developed a windows application. The application is basically a console that helps the user to launch multiple 3rd partly applications e.g. MS word.exe, MSExcel.exe, Windows calculator etc. The application is currently running fine as windows application. Generally launches applications through Process.Start() method.
Now, I am planning to release a web based version of my application. My idea is that if the user has access to my application through web, he/she can run MSword, Excel and all applications which are available through my application.
kindly guide me how I can achieve this.
Thanks..!
Your Process.start() function is attempting to open MS Word on the server and not on the client. It will open the word file if the server and client are on same machine i.e. the document is on the same machine you have hosted web application on .
In the case of opening word.exe etc on client side you can not due to browser security restrictions. You can do one thing give the link to some word or excel file which can be downloaded on client side and the client can use it then . Hope it helps
Something like this is not easy to do in ASP.NET. Using Process.Start() is simply going to run the application on the ASP.NET Web Server, not the client. Because of browser restrictions, its a security hazard to be able to execute application on the client.
One solution I would suggest though is to use SilverLight. Using SilverLight, you can use the following code to run an application on the client:
dynamic cmd = AutomationFactory.CreateObject("WScript.Shell");
cmd.Run("calc.exe", 1, true);
Note you must be running Silverlight 4.0 or higher for this code to work.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Hello i have an application working with window service and i want to start its service at background, i mean even when the application is not running the service should run at a specific time for example: start(9am) and then stop the service at (6pm).
Do you have any idea ?
Thanks in advance !
If the PC is turned off then there is no way you can start a service. You need to tun on the PC and Login fist. There are some Services that can start on boot up though, you can start an executable after boot up by adding it to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute. Never thought I'd see such question on StackOverflow
A service can't run if the PC is switched off. I assume that you want the software to run even if the user is not logged in.
If you want to run software without logging in, you won't have a user interface. Windows Programs without user interface are called services, and they can be started manually, or automatically whenever the computer is switched on.
As you have a windows forms application, you'll have to separate it into two applications: one with the user interface parts, and one with the parts that you want to run as soon as the computer is switched on. The latter part has to be put in the windows service software.
Whenever an operator logs in, he starts the windows forms program that holds the user interface parts. This program communicates with the already windows service.
There are numerous examples, also here on stackoverflow that will help you how to create and start a windows service and how to communicate with a running service.
That's a server not a service, NOTHING runs on a personal computer when it is turned off, even when servers shutdown, nothing runs on them too.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Say I coded some application in C# using visual studio. Is there anyway I can take this application and embed it into a website so folks can use it from a website in the same way I would use it from my desktop?
If you coded a console application - no.
If you coded a winforms application - no.
If you coded a WPF application - yes
Two options:
Migrate it to silver light and it will only work on browsers which can install the silver light plug in. keep in mind that silver light is being disbanded by Microsoft, so it is not considered a recommended practice anymore even by MS. also consider that not everyone would agree to install silver light plugin for their browser.
You can also migrate your WPF to become a browser application - but this will require the client machine to have .Net installed on it - so this is like a replacement solution to what once was achieved by ActiveX technology.
Main difference between those two options is that the 1st one is cross-platform/cross-browser solution and the 2nd one is not.. however this might change in the future as .net is becoming available to Linux too..
If you coded ASP.Net - it is already designed for developing web applications.
I'm not sure what exactly you are trying to achieve but I think the WPF/Browser APP is what you looking for, you can read more about it in How to: Create a New WPF Browser Application Project
Edit:
I thought I'd mention if you have a Console or Winform app that people wish to use remotely (ie via a web browser) don't forget they can use Remote Desktop to access the application. Many large enterprises do this using Citrix. Often this is more practical when the cost of rewriting legacy applications is not feasible.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I currently have an MVC 4 app running on a Windows Azure website. Some of the users need to use the app, but may be at a location without internet access. The goal is to have an iPad app with offline capability, and will push the changes to the Windows Azure database when an internet connection is established. I am in the planning process, and I have questions about how both apps can use the same database concurrently. When I create a Windows Azure Mobile Service and use the same database the Azure dashboard does not show the existing tables used by the MVC app. Is it possible for both the iOS app and MVC 4 app to use the same tables, or am I going to have to go a different way? Thanks.
You would have to write web api against your database,its very easy to Write Web Api 2 that can easily communicate with any sort of device or application because it is HTTP based.I personally have done this. Web api returns xml or JSON based data you can use this to populate your local database in your iOS Application.
You can also implement some logic to save data back to the database when you got connected to the internet.
The iOS app should absolutely not connect directly to your database. I actually don't think it's possible through the iOS SDK to do that if you wanted to, anyways, but just in case: don't.
Instead, your iOS app should connect to an API that you will need to build. The API, alone, will interact with the database. You can also retrofit your existing website to use the API as well, removing database concurrency issues entirely.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a Asp.net MVC 3 application which I want to give to a user to use without them having to host it in IIS to run.
What I would like to have is some sort of executable that they click or a service which will host the application and then they can use it from any browser on the network.
What are my options?
Have you looked into IIS Hostable Web Core?
This feature basically allows you to host the entire IIS functionality
within your own process. This gives you the power to implement
scenarios where you can customize entirely the functionality that you
want "your Web Server" to expose, as well as control the lifetime of
it without impacting any other application running on the site.
You can look into IIS Express http://learn.iis.net/page.aspx/868/iis-express-overview/ Although it is still IIS it's much lighter weight and might be what you need:
It doesn't run as a service or require administrator user rights to perform most tasks
IIS Express works well with ASP.NET and PHP applications
Multiple users of IIS Express can work independently on the same computer.
If the application is meant for production use, you need to host it under an IIS environment. IIS Express is intended as a development server and not for production use.
Otherwise, IIS Express is the way to go if you want someone else to work on it in a local development environment.
Take a look at the following example.
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host
http://owin.org/
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
http://blog.micic.ch/net/owin-and-razor-enabled-mvc-application-framework
Regards
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an asp.net web page with a "dial" button; when the user presses the button, it connects the user to the PTSN network to make a phone call. This is for outbound calling only so there's no need to worry about incoming calls.
I'm thinking of using a webphone and finding a VOIP wholesale provider. Ideally, I'd like the server that's hosting the web app to not be involved in this process (ie. the webphone connects directly to the VOIP provider).
What are some of the pitfalls to avoid?
Thanks for your suggestions.
There are a few Flash based softphones around you could use. I'd recommend taking a look at Phono from Tropo. It's designed for initiating calls via javascript in the browser. I think it does or will use HTML5 where available but falls back to Flash for some parts.
One pitfall: WHat you describe is not a web page, it is a local application the user has to install ON HIS COMPUTER. Mileage may wary.
ASP.NET is not running on the users side (beginner mistake). It is a server side technology - the user basicall gets normal HTML, Javascript... which has NO higher programming capabilities and no voip capabilities. Lize a pizza delivery - asp.net is the top oven, but the user gets a normal pizza. Point.
So, your pitfall is that you need to make a web call out of a HTML page (no asp.net involved, no .net involved) and this is not possible without the user installing software on his computer.
SOmething like FLASH may work, or silverlight. But I expect some rights issues (especially: connect to ANOTHER server, not the server hthe flash / silverlight plug in was loaded from) which require configuration / epriviledge elevation, i.e. no normal users again.