I have a Web Service that I am trying to publish from VS.
This is the configuration in my project's properties:
When I try to run the code I get this message:
It works when I choose Use Local IIS Web Server, but why doesn't it work in the first case as well?
Related
I got a WPF project that is using ASMX web-service to connect to database. The problem is I can't connect to the web-service without updating web-service reference. Even if I've updated reference and then built the solution I can't connent to the web-service after closing visual-studio.
In this situation, it appears VS is hosting your web service via Cassini or IIS Express. That port number is a setting that can be changed in the project's configuration. When you close visual studio you are closing the web application host. If you are attempting to test your service locally, without VS hosting, then you will need to configure a new web application to run on a local instance of IIS pointing to the output directory of the service. You can still bind inside of your solution to the services' project reference, you just don't need VS running to access it locally.
I am getting below error while publishing site on iis 7.I am using visual studio 2012 and windows 8.
Web deployment task failed (There was an error reading iis configuration schema from C:\Windows\system32\inetsrv\config\schema)
I don't want to make it as my default web site i want to publish it on any port other than 80 .
I am running visual studio in administrator mode too.I have all permissions on iis. Still getting the error.
Is it necessary to create virtual directory and check use local iis web server option and all those settings in "Web" option of project properties while publishing?
Which settings i have to do to get rid of this error ? Help Me.
I built a Web API service that's hosted locally on my machine in IIS. I have an iOS app that I'm running via XCode that makes the call to the web service. The connectivity is there, and works. The iOS app successfully makes the connection to my published web service.
The problem is my web service is returning a non descriptive error to the client (iOS), so what I need to be able to do is step through the web service code while running my iOS app.
So, in summary:
I run an iOS app via my MacBook, and it connects to my .NET Web API service.
My Web API service is published to my local IIS, and is returning an error back to the client.
Breakpoints aren't being hit in Visual Studio - do I need to attach my Visual Studio debugger to a specific process? I've tried running my web service in debug mode while running my iOS app, to no avail.
How can I step through my web service code when running the client app (iOS) that accesses the web service?
Attach to process - http://msdn.microsoft.com/en-us/library/vstudio/3s68z0b3.aspx
Make sure "Show processes from all users" is checked, and pick w3wp.exe
You may need to hit the service once first to make sure its started.
To debug an app that's hosted by IIS, you want to attach to process (in Visual Studio it's Tools->Attach to Process or Ctrl+Alt+P) and pick w3wp.exe from the list (you might have to check a few boxes for the process to show up).
Another option is to use our free VS Extension called Conveyor
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti
With it you open up IIS Express to remote connections on your network (or even the web through tunnelling).
Once you've done that you can debug the project directly from VS and connect to the Conveyor port number (or domain name via tunnelling) and debug as you would locally.
you can use Postman client.
First : run the API FROM visual studio
Second : go to postman put the url and add the parameter in body
More information : http://www.tutorialsteacher.com/webapi/test-web-api
this often works for me i generally list all of the processes in IIS with appcmd command
appcmd list wp
and pretty much you know which process to attach by seeing the names of the web services
if appcmd is not available please visit
Here for configuring this
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.
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