Multiple instances of a WinForms application on one Windows system [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a complex legacy software which is a C# WinForms application, recently upgraded to .NET Framework 4.7.2 and added with a WCF REST API for external communication.
This application requires certain files on the disk, certain partitions needs to be available (such as a D: drive) and so forth (due to a lot of hardcoded file management etc). The app also requires a license USB dongle and a big SDK framework installed on the PC.
Now we would like to run several instances of this application in one server and get results out from it via its REST API. Is there any way we can do this? I guess several virtual machines would work, but is there any other way, Docker maybe?

Docker is out. As a commenter stated, Docker is not designed to mimic real hardware. See this comparison for more information.
I suggest a traditional Windows virtual machine and something like Hyper-V USB Passthrough.

Related

Need to Create a Windows and Web-based version of the same app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a wrapper or framework that can easily convert or run a MVC web app as a windows based app or vice versa? One version needs to run in a browser, and the other standalone.
Seems kind of a niche and pointless thing but this is a bit of an awkward problem. With some planning I can probably maximize code reuse, but there's still going to be a lot of almost duplicate but slightly different code writing needed. Any ideas?
I think your best option would be to implement your MVC application and then use Hosted Web Apps approach to create Windows 10 app. Basically it will be your website in an application window, and you can implement many Windows Store features on top of it like for instance in-app purchases. It will look and feel like a native app.
From the website
For existing web applications, Windows 10 makes it easy for you to
create a Universal Windows Platform (UWP) app that packages your
website for publishing to the Store.
They promise:
Look great across all Windows-based devices, including PCs, tablets, phones, HoloLens, Surface Hub, Xbox and Raspberry Pi.
Update and call native Windows APIs from JavaScript running on your website, creating a more engaging user experience.
Integrate with Cortana voice commands.
Debug your app with Microsoft Edge F12 Developer Tools.
Track status, ratings, and reviews, see analytics, and get paid for all of your Windows app in the Windows Store.

Alternatives For ActiveX in .NET [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know that there are a lot of threads talking about this topics but please let me discuss my problem in some details.
In our project, we are using a lot of devices (Cameras, Printers, Fingerprint devices, Smartcard readers) in desktop applications and we have already C# components that are developed to deal with these devices using their SDKs.
The problem now is that we are moving into web development and we are supposed to convert our WPF desktop applications into ASP.NET MVC web applications and also we should use our existing components for the devices.
The possible solutions to deal with devices from web .Net application are:
Using ActiveX (Which is dead or will die soon and it required some COM experience and very hard to develop).
Using Silverlight (Also, is dead or will die soon and it is very limited such that we can not add reference to existing C# components).
Using Java Applets (which require some Java experience and we will rewrite existing c# components in Java).
Is there any other solution so that we can deal with devices from ASP.NET MVC application over Intranet?
You can write browser extensions for Chrome, Firefox, and Edge (soon). I'm not sure how much code reuse you'll get across the browsers if you need to target them all, and I'm not sure of the extent to which you can run arbitrary code to connect to devices from your extensions, but it's something you should look into. You can then have your browser extensions communicate with your webpages to pass the necessary data.
Your users would need to install the extension for their browser to receive the functionality.
You can still distribute small "helper" applications that are based on a pared down version of your current WPF applications. These would perform the device access, and communicate directly back to your web server. The web site would serve as the interface.
This would allow you to leverage your existing device communication code. On the downside, it requires a separate install on the client, which means one more thing for the user to do and one more thing to keep updated.

Cost of hosting php and asp.net web api [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
We are a small startup with majority PHP talent and also C# talent. We're working on a web service which is going to we be talking to multiple clients like our website, phone apps and some embedded devices. We have decided to go with asp.net Web API for the web service and php for the web site.
Being a startup we are extremely sensitive to cost. Is this setup too costly to host and what would the performance be like if we host this configuration on a single server?
Visit Azure pricing tab. Your best bet is to host WebAPI on Azure or a Windows VPS.
In case of VPS, you can buy managed windows VPS (costly) or an un-managed windows VPS. A quick Google search can give you the cost estimates for same.
In case of Azure Websites, everything is managed by MS & you just need to deploy your code to Azure.
If you can't afford Azure, go with PHP for REST services.
In general, hosting on Linux is much cheaper than windows.
Apart from hosting, you may need to invest in SQL server (you can also use MySQL on windows). VS 2013 community is now free and hence you have saved some cost for IDE.
Assuming you choose windows, performance depends on so many things (server config, code etc). No can answer this vague question. Having said that, IIS can handle large volumes.

StatsD and Graphite-like tools for .Net and Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was recently sent this link to Statsd which would be an interesting tool for us to monitor various aspects of our product, but it would be a hard-sell for us because of the PHP and non-Windows toolset. (This question asks about installing this on Windows, without an answer...)
Can anyone recommend Windows / .Net toolsets that might provide similar low-overhead monitoring of systems? Within reason, paying for a toolset should not be a problem.
I did find this microsoft page that looks quite interesting, but let's be honest, it does not have as many cool graphs that show the kind of thing that would be nice to have as an end-result :)
Your experiences and thoughts on direction would be appreciated: I think our ultimate goal would be 'wall-boards' e.g. large screens cycling through several key graphs or views so the whole team could understand and monitor some key metrics of the products we are supporting. Our client uses SQL Server Reporting Services for this, but their reports seem to be mostly statistical and very little graphical.
I've ported Graphite to Windows. It was pretty easy to do this. I've issued a pull request to the main project. I hope it will get merged. Until then, you find the fork under:
https://github.com/stephanstapel/carbon
Graphite installation requires some additional steps I published here:
http://www.s2-industries.com/wordpress/2012/12/running-graphite-on-windows/
Why not run Graphite in a Linux VM on top of a windows server? You get the full support of the graphite community, while being completely hosted on windows.
If you were wanting to replicate statsd, I would create a Windows service listening via UDP on a specific port. With a fairly open database schema, you could mimic its low-friction fluidity. That would take care of statsd and Carbon, the data collector piece of Graphite. You would then need to write a management tool that analyzes and presents the data in place of Graphite.
I would, for this reason, encourage you to just take the Linux route. Otherwise, you'd be fighting every battle the developers of those tools fought all over again.

looking for how to transfer file to 200 terminals (windows-mobile) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
i have 200 terminals (Windows-mobile) that connect to the server Through WIFI
how i can transfer any file to all of them ?
is there any tool or can i get any C# sample code for this ?
thanks in advance
You should write some sw on the mobiles to sink the file instead of pushing on them. So each user can ask the server for transfer the file. If the file you need to transfer is a deploy of an application, you can even consider some strategy of auto upgrade as described here: http://msdn.microsoft.com/en-us/library/aa446487.aspx
You could create a log-on script assuming you have Active Directory and a friendly system administrator.
http://www.rlmueller.net/LogonScriptFAQ.htm
Microsoft have a non-free tool called System Center Configuration Manager that will do what you want. You need to install the client app on the phones first, then they poll the server for updates.
This is likely to be massive overkill for what you want but it's hard to be sure from the question.

Categories

Resources