Publish a web service on Visual Studio 2010 - c#

I created a web service in C#, using Visual Studio 2010 ( Framework .NET 3.5). In debug mode it works great, but now I must publish it on the internet, so that I can consume it in remote (the app that will consume the web service is an android app).
So the question is: how do I publish my web service on Internet so that I can consume it in remote?
Thanks in advance; this is a work for taking my degree!

A simple way: you switch to release mode, update your web.config for production, right click on your service project and from the menu select publish. Then you publish it to the local folder. This way it copies only the files needed. Then you copy the contents of the folder to your remote site using ftp, for example, your hosting provider should have given you the credentials.
for some hosters it is also possible to publish directly but I don't use this.

Related

How to create exe of a web application in asp.net

I have to create an exe of an website created in asp.net using visual studio 2010.
I don't known whether exe of web application can be created or not, but I want that my application with database will be able to run on another system where visual studio will or will not be there.And my code should not to be visible to the users using that exe or running that project.
How can I achieve it?!
you can't make a exe for web application but you can do one thing to solve your problem
1)make a window project in this project make a code for run iis and open browser with your web application url and make your window application form hide
2) now make exe of your window application project
You cannot create an executable file in asp.net.
All you can do is create a website using visual studio. once done, publish your website. Deploy it to IIS or host it to a paid web hosting company so you can have your domain. Once done, other users can see your beautiful and elegant website.
You don't create exe of a web application. It is hosted on IIS. So first of all you have to publish your website and then you can host it. For more information you can refer to this one:http://msdn.microsoft.com/en-us/library/20yh9f1b%28v=vs.100%29.aspx Or google for more articles.
Posting to an old thread, but I came across this situation and found the solution.
Following footsteps of Spring Boot and other containerized solutions, I believe now Microsoft also has added this feature.
My scenario: Created a basic REST based Web application and built it.
This created Debug and Release folder within \bin within the root directory of Web application.
It also creates an exe file.
You just need the necessary runtime dependencies (like .NetCore 3.1 etc in my case) to run this exe.
I copied the entire Web application folder to a Windows Server 2016. There were some issues initially, however later when I added the required dependencies (dotnet folder which was present in my earlier machine), it worked like a charm.

How do I get the asmx web service file in Visual Studio 2012?

I need to deploy a asmx web service to a server. I can run the service locally and it runs fine but where is the asmx file kept? In my project folder I can only see the solution file. This is my first time dealing with web services so forgive me if this is a stupid question. The service is written in C# if that makes a difference.
On your project, select Build Menu -> Publish. There are many publish method, but for simple way, you can choose File System. Define Your Target Location and click Publish. When it's Done, go to your Target Location using Windows Explorer and you will get all file that need to move to your IIS server virtual directory.

What is the correct procedure to deploy a Visual studio 2008 Web Application to IIS 6

Currently, I have a Visual Studio 2008 Web Application using .NET Framework 3.5 and I want to deploy to my IIS 6 server. I have try to use the Build > Publish menu to publish my site to IIS 6 but it keep on giving me this error:
Visual Web Developer does not support creating Web sites on a SharePoint Web server. See Help for more details.
So, may anyone share with me some insight on the correct procedure to deploy my Web application?
For your info: MOSS 2007 is also installed.
Try to use the same publish command but target a local file system folder or a network share and not IIS. Once you have got your binaries and pages in such folder deploy on iis manually with a file copy.
Thanks Davide,
Actually I used another command to perform the deploy.
reference: http://msdn.microsoft.com/en-us/library/ms229863%28v=vs.80%29.aspx

WAP, How to Publish to Web with Web Deploy?

I want to publish my web application on a hosting server.
Domain: mysite.com
Folder: mysite.com/TestWAP
Can I use one-click deployment on typical discount shared hosting?
Will I need to make any installation on the server first, and how is
this done?
With the above details, what would I specify in the
"Service URL" and "Site/Application" fields?
Check out these resources:
How to: Deploy a Web Application Project Using One-Click Publish and Web Deploy
Walkthrough: Deploying a Web Application Project Using One-Click Publish
ASP.NET Web Application Project Deployment FAQ
Build, publish local with a manual first time setup on shared host. From then on publish through Visual Studio Publish - FTP option.
I think you are looking for this.
Configure the Web Deployment Handler
Hope this help.

how do i publish my asp.net project to my local iis?

I've been looking and I've seen a few how-tos but I find them to be somewhat confusing.
Does anyone have a good tutorial or step by step writeup that's easy to follow for a newbie
In Visual Studio, go on project properties > tab web and check "Use Local IIS Web Server". Then, it will ask you to if you want to create the virtual directory, answer yes and vouala...you create a IIS virtual directory, when you run your application, they will run on IIS.
If you're just looking to run your application under IIS, setting up a virtual directory is pretty straightforward. If you're looking to test publish a build, the web deployment project is the way to go (you can do it from the command line and in VS.Net, it enables a "Publish" right-click option).
A good place to start would be looking into web deployment projects.
This link is for VS2008, but they also exist for VS2005
VS2008 Web Deployment Project
You can publish your web app to an iis website. Click on Build > Publish Web app and select to publish to Local IIS website. Job done.
For a local development environment this is fine but if you want to deploy to a test or staging server than look at another solution such as the Web Deployment project or use nant or msbuild.

Categories

Resources