.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Web Service cannot be found/referenced in Web Application project (working in Web Site)

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application

Hi Everyone,

I am learning about the web service technology, and I tried to create my first Ajax style web service following the video tutorial by Joe Stagner (http://www.asp.net/general/videos/ajax-style-services-with-microsoft-visual-web-developer-2008)

The tutorial is quite basic, we simply create a web service, and call it from Javascipt in the same program.  But while I can create the web service no problem (testing the WSDL file from browser works perfectly), I cannot call it within Javascript.  Tellisence do not kick in, and when I run the program anyway, a Javascript error claims that the web service I created cannot be found.

After much frustration, I noticed that my program is created as a Web Application, while the tutorial is created under a Web Site.  So I created a Web Site too and everything works. 

So the question is, what setting(s) do I have to change in a Web Application for this to work?  I guess an even broader question is, what differences between Web Application and Web Site do I need to be fully aware of, so this kind of problem do not occur in the future?

Thank you very much!

View Complete Post

More Related Resource Links

calling a web service on a remote server from a ASPX page (web site project VS2005)

HI,I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder.  When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for  the new web service i'm trying to call. Have I missed any steps?Thanks in advance.-me

Web Service and Web Site in same application? .net 2.0

Hi  Is it possible to have a web Service and Website in the same application. e.g The web service would be mydomain.com/service.asmx  and website mydomain.com/sameapplication/login.aspx    Both would share the same code for logic and data access   Thank you

Managed Metadata Service - No EMM application proxy can be found



I have Managed Metadata Service configured with the default language German and the target Content Hub it also in German. When I try to publish a content type i got this error "cannot check for changes because no emm application proxy can be found". Any ideea?


Web application project type not found



I have VS 2005 installed on my system. The details are as follows -

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Enterprise

My Problem is -

1. I can not see Web application project template when creating new project.

2. When I open a project, it gives error as "Project file can not be loaded".

I searched forums and it says

Run VS80-KB915364-X86-ENU.exe first, then

run WebApplicationProjectSetup.msi.

3. Can anyone tell me what this installation does?




How can i convert my entire asp.net web site project to asp.net web application project


How can i convert my entire asp.net web site project to asp.net web application project


i want to use Microsoft Ajax Minifier but i could not find how to implement it to the asp.net web site project


so for using this feature i might convert my asp.net web site to asp.net web application


thanks for all kind of help

How do you move an UI testing for a web site project to a web application project?


I was not able to do unit testing for our existing web site project. I converted the web site project to a web application project. I did some unit testing and changes on the converted web application project. However, my co-worker was doing UI testing on the web site project.  We need put UI testing and unit testing to the web application project. Is it possible to move the UI testing code that my co-worker did to the web application project I am working? If so, how do you do it? Thank you for your help.

Li Ai Shen

Managed Metadata Service: Cannot check for changes because no EMM application proxy can be found


We have a managed metadata service with two owners. Both of them can't change anything to the term store anymore. The moment they try they get access denied:

The user doesnt have enough permissions. When looking into the log of SharePoint i found the following message:

Cannot check for changes because no EMM application proxy can be found

When I try to add another administrator using the Install_Admin account (who is farm admin) I get the same message that the user doesnt have enough permissions.

Our term store is setup in multiple languages with Dutch being the primary one.

Any help much appreciated.


Project server 2007 "Project Application Service " can not start


Hi, all

I have a sharepoint 2007 installed on server 2008,it works ok

,today I tried to installed project server 2007 (sp2)on it , it also is ok

but when I try to to start the "Project Application Service " to start project server

It also return back to stop.

I found the article from the web

but My server is windows 2008, the document and setting  can not access

Microsoft Project Server Frequently Asked Questions (FAQs): Overview

FAQ Title: Unable to start project application service after installation

Applies To: Server 2007
Group: Common Errors

Microsoft Project Server Frequently Asked Questions (FAQs): Details
Background Description

When you install Project Server 2007 the installation appears successful, but you are unable to start tgeProject Application Service from the "Services on Server" page.  Clicking the Start link causes the "Operation in Progress" page to display temporarily and then returns with the status unchanged.  


This may be related to permissions

SharePoint 2010 Service Application Proxy & My Site Settings


I have a SharePoint 2010 Site Configured with Claims based FBA. I have also made My Site work with FBA.

My question is:

In 2007 I would create a seperate SSP for FBA based my site and Set all configuration there. As SharePoint 2010 supports Service Application Proxy how can I isolate FBA based My site and Other AD sites.

While I was able to select the required services for my Site using Configure service application associations link in Central admin, all changes I make in My Site Settings reflect for both FBA & AD based application.

How do I isolate My Site changes ?? I wanted to have different configuration for each of the My Sites

Discovery on IIS hosted WCF service no endpoints found untill site is visited


I have a problem which makes the whole discovery (.net 4) idea useless.
I got self-hosted wcf services with discovey working so I now at least something about it, however, when I create a website with a .svc file, configure the web.config well and host it in IIS something goes wrong.

I have my windows forms client program to test the discovery and it doesn't return any endpoints, not after iisreset, not after checking twice, tree-times with long timeouts. I have to manually "visit" my .svc file in the website by browser to kind of activate it and than my client recogizes it immediately.

Because you have to visit the service first, you already have to know what the url is and makes discovery pointless in this case (and I need it so much)

What can I do about this?

SharePoint Application and Site Pages - Part 1 of 2

In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

Create Web Site vs Web Application


I follow the tutorial and creted a web site for my company sales system. One of my collegue mention we use the wrong templet, we should use Web application for company application.

Should i continue using web site or change to web application? We are creating application for company sales, inventory, hr ,etc where possible more than 1000++ user. And during month end, it will be high traffic and transaction. can Web Site Template with BLL and DAL handle it? or i just need a powerful server?

Web Site to Web Application Question


I've been building web sites and for my next project I will be creating a web application.  I use a 'BasePage' class in all my projects but, since web applications do not contain the 'App_Code' folder, what is the best place/practice for the 'BasePage' class?



is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


New off line application working with sdf file. Need advice


Hey Folks

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's



Convert WCF service to self hosting application


 I created project as a  WCF Service application and now according to recuriment that needs to be converted as a self hosting application

How can i do this?

Converting WCF service app to Self hosting app?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend