Publish WinForms application on remote server - winforms

I want to publish my WinForms Application on remote server to enable web installation for the application.
I need some relevant information how to configure IIS 7.5 web site to enable publishing by VS2012. I've found some links but it mostly about publishing web application and as I could understand the process is different in some points.
Where I could find information for the configuring IIS web site?

Are you referring to a ClickOnce application?
If this is the case, you simply need to have write access to where it is going to be deployed, and users need read access.

Related

How can I connect my SQL Server database that is placed on another server using API or Web Service in MVC to website that is on a different server

I uploaded my website to GoDaddy web hosting and the database is placed on another server.
I want to create an API - either REST or SOAP - to connect my web site with my SQL Server database.
I need help - how can I create an API in ASP.NET MVC 5 so that I can connect my database with my web site? Kindly provide me with a link or code so that I can solve my issue.
I have never worked on API before - any help will be much appreciated.
ASP.NET MVC is now old school. Try ASP.NET Core.
You need to design and develop an N-Layered application: Data, Service and UI.
It doesn't matter where the database server is sitting, as long as your WebAPI can connect to it.
I suggest you build a restful web api with asp.net core :
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-3.1&tabs=visual-studio
Put your db connection string in the app settings file.
Although you use other database server, it doesn't matter. You just need to make sure you check your connection string and point it to your database server. For publishing method, it is same, you can use FTP or Visual Studio
Please open your project with Visual Studio tool
On the Solution Explorer windows (which is normally located on the top right hand corner of the VS tool), right click your project and select Publish
Please kindly publish it to a local folder, such as C:\Project
Please just upload whatever files/folders you see on C:\Project to your server via FTP
If you have any problems, you can contact your support team
You can get the Reference from
Sample_WebAPI_Project ,
instead of Using List created you can create Database Connection and get data from Database

Deploy a asp.net core web application with sql db to azure using visual studio team services

How to deploy a asp.net core web application with sql db to azure using visual studio team services(VSTS). Application is using entity framework code first approach.
This is a challenging question that falls into the topic of continous integration. It takes a bit of time.
from VS you have set up TFS for pointing your VSTS account and project and the code first to install its changes when deployed at the first launch (application start event).
on VSTS project account, you have set up building feature for launch a build after, let's suppose, a commit on server.
on VSTS project account, you have set up your azure web app account profile from the administration panel of the account (you have the xml file with the references to the web app account and password).
on VSTS project account, you have set up deploy features that make also substitution at fly of the environment connection string (I've done in this way..) and that points to the azure web app account profile you have created on VSTS.
make a commit from your VS and, if all it is done right, then you'll find your code and db changes on azure.
Describing the whole process, would require a substantial article and the relative time to do it. But you can find help googling around (most posts are on StackOverflow) and posting question step by step as you go forward to do this process.

Running CMD Bat Scripts with IIS Application Pool User

I have inherited an IIS server running Windows Server 2012 and a bit of a novice with Microsoft server product.
One of the users is trying to execute CMD/Bat files to launch DNX web application through IIS. From what I understand, for IIS to run the script the user assigned to the application pool needs to be granted permissions to run bat/cmd files. These permissions need to be set to the user some how.
Having looked at the standard tools installed on the windows system (Computer Management > Local Users / Group) I have been unable to find any option to grant permissions.
I'm just wondering how secure this solution is? And how to grant the permissions to the user?
Things work a bit differently with ASP.NET Core 1/dnx. IIS only supposed to act as a reverse proxy - i.e. the ASP.NET Core application runs in a separate process and is using Kestrel web server as a host and IIS only forwards requests to the appliaction. Take a look at this article which explains how to publish ASP.NET Core 1 /dnx app to IIS.

How To sync online database (of web application) and offline database (of Desktop Application)?

I have 2 application
1st Desktop Application – Which has database on local pc
2nd Web Application – Which has database on server
If internet is unavailable then i m storing data on desktop application and when internet is available data should be store on the server and should also update the data which was stored when internet connection is unavailable
Can you please tell me how above can be achieved
Desktop Application is C# Win form
Web Application is Asp.ne / C# Web application
Thanks in Advance
You don't say what your database technology is, but Microsoft makes the Sync Framework to solve problems like this.

Application Server and Web Server running on same hardware/physical server

I have a conceptual design question. I'm building an application/platform that will consist of a server, possibly running Apache Tomcat w/ a MySQL database, and several client applications (such as native iPhone apps, android apps, blackberry apps). Communication between the client applications and the server will be handled via SOAP, or XML-RPC (also trying to figure this out).
All of the above I'm reasonably comfortable with, but the last part of my plan is to create web/browser based client interface to the platform. And this is where I run into my question, should I install Apache Web Server on my same physical server and build a PHP application that invokes RPC's on the Application Server (Tomcat, running on same physical machine)? Does this type of design pattern make sense? Or should I stick with one type of server software for all possible client applications, including the web/browser based application? Thanks!
I think the web server and app server ought to be separate. I'd make the database separate from the app server too, if I could.
The reason I like the web server to be separate is that it's usually in between two firewalls. The app server lives inside the second firewall in the "safe" network.

Resources