Is it possible to develop a Web Service using Visual Web Developer 2010? - asp.net

Is it possible to develop an ASP.NET Web Service using the Visual Web Developer 2010? Or I must use Visual Studio itself for creating the Web Service?
Thanks,
LS Developer

Yes. But for future understanding, please consider these notes:
Creating Web Service actually doesn't need any IDE. You can create a web service (or an entire web site) using Notepad. Therefore, Visual Studio is just a helpful tool for you.
Creating a web service based on .NET Framework actually needs you to compile your code. Therefore, you can again create the web service with notepad, and compile it using C# or VB.NET compiler, deploy it and use it.
Visual Web Developer 2010 (Express) is just an IDE. Web Service on the other hand is an Item Template (which writes the basic infrastructure for you). But even if you don't use that Item Template, you can create a class, inherit from WebService and create your web service.
Good luck.

Yes: http://msdn.microsoft.com/en-us/library/8wbhsy70.aspx

Related

Web Deployment tools for Visual Studio 2013

I am responsible for supporting a relatively complex Website project written with .NET 3.5.
Previously I was using Web Deployment Project with Visual Studio 2010 to deploy this website but at the moment I have only access to Visual Studio 2013.
As far as I know, there is no longer such a tool to be used for deployment in Visual Studio 2013 and I do want to compile the code before deploying to the production server. As mentioned earlier, the project is a bit complex and this would not be easy to be converted to a Web Application.
Any idea?
Unless I missed it, unsure what the issue is - in VS2013, Publish is what you are looking for (either WebSite or Application).
What exactly do you mean by "none of the (vs 2013 publish) options worked"? What is/was the issue?
In one of your comments, you state you want to "pre-compile" (aka "don't want to upload .cs source files) and that's a setting in Publish.
You can Publish to your local file system: "Custom" -> File System:
This extension still exists for Visual Studio 2013: http://www.iis.net/downloads/microsoft/web-deploy
Little bit confused with the question because you are keep referring about website rather web application.
If you are looking to convert web site to web app then you need to follow this: http://msdn.microsoft.com/en-us/library/vstudio/aa983476(v=vs.100).aspx
Otherwise, if you are referring about the deployment project. Yes, it is no longer available.
I'd a very similar situation like you and Since 2013 I have stopped using any deployment project, instead I have started using Publish that creates a deployment package for you on a Network , FTP, Local Drive or even on Azure.
Here is a nice guide from Microsoft
http://msdn.microsoft.com/en-us/library/dd465323(v=vs.110).aspx
If you still want to go for Deployment Project, then you would need to go for "Installshield" limited edition,which is free (http://samirvaidya.blogspot.com.au/2013/11/how-to-enable-installshield-le-for.html).
http://msdn.microsoft.com/en-us/library/2kt85ked(v=vs.110).aspx

how to Create Setup of Web application in asp.net?

How to Create Web Application Set up in asp.net ?
I have a web site in a Visual studio.I want to create a single web setup project which should install the web site.So how to create a single web setup project which supports multiple web application installation?
You can use Installshield to do that. When you go to add new project you will see that option under Other Project Types --> Setup and Deployment
http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio?lang=1033&ver=prem
There are many 3rd party tools that can perform this for you (We use Anthill Pro to deploy between our various environments).
I've used the full version of InstallShield in the past but there was a bit of a learning curve to get it right.
The free alternative is to use the Web Setup Project template in Visual Studio (This uses the 'lite' version of InstallShield I believe). You can also check out this link, which describes many different options for you to deploy your website. Extract from the last link:
Visual Studio, ASP.NET, and IIS provide tools that can help you with
the process of deploying your web application or web site. Some of the
Visual Studio tools work only with web application projects, while
others work only with web site projects. (All MVC projects are web
application projects.)
Hopefully this walkthrough should provide you a good starting point should you choose to go down the Visual Studio route.

Enterprice portal application in .Net other than Sharpoint

My client need an enterprise web portal app where a set of applications will be shown in the portlets and he can work on those portlets or navigate to the particular web application by clicking the relevant portlet. I would like to know about the available software that I can use to develop the Portal in .Net since the client is a .Net company.
I know SharePoint and Microsoft Dynamics is there by I need to know other alternatives available in .net language stack .
You can install AX addons to Visual Studio that will allow you to access AOT objects in a .net application. You can find an example in my response here:
How to use microsoft's Dynamics AX classes?

cannot find solution for my webservice

I am new to .net and I have downloaded VS 2008 trail version today. I was trying to develop a web service.
I added a new project and selected asp.net web service application.Then i wanted to add a new project to the same webservice but i was unable to find solution for my webservice in the solution explorer, to right click on it and add a project. It only shows webservice, then properties and references below it. Do I need to make any changes in the settings?
First of all, why not use Visual Studio 2010? It also has a trial version.
Secondly, you shouldn't be using the "ASP.NET Web Service Application" for new development. That's now a legacy technology. Use the "WCF Service Application" instead.
Finally, the default is to not show the solution if there is only one project. In Tools->Options->"Projects and Solutions", check "Always show solution".

Do I have to convert my website project into a web application project to migrate to Azure?

I have a current website project that I need to migrate to Windows Azure. Back in 2009 we had to convert the website project to a web application project. Is that still the case today?
Your life will probably be a lot easier if you use web application projects, but you can use website projects. At the very least, you can use cspack from the command line and point it at any directory. You can also use the physicalDirectory attribute in ServiceDefinition.csdef to point to an arbitrary directory. That directory can be your website project.
I'm not sure if there are better ways from within Visual Studio to use a website project as a web role.
You can add any project to the Windows Azure Visual Studio project. I like to create a new Windows Azure project first, and then add existing projects to it (rather than the other way around).

Resources