View Full Version : No WebService found at [location]
bbudd
01-21-2008, 03:27 PM
Hi,
I'm getting an unexpected error from spring.net and asp.net ajax integration using ASP.NET 2.0, ASP.NET Ajax 1.0, and Spring.Net 1.1 in a windows xp environment
no webservice found /SearchService.asmx
This error only appears when http://localhost/SearchService.asmx/jsdebug or http://localhost/SearchService.asmx/js are called. The service works as expected when http://localhost/SearchService.asmx or SearchService.asmx?WSDL.
This appears to only happen in a web application or ajax enabled web application project. The sample applications run just fine using the new web project with app_code folders etc.
here is the stack trace:
InvalidOperationException: No web service found at: /SearchService.asmx.]
55 System.Web.Script.Services.WebServiceData.GetWebSe rviceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods) +829
56 System.Web.Script.Services.WebServiceClientProxyGe nerator.GetClientProxyScript(HttpContext context) +58
57 System.Web.Script.Services.RestClientProxyHandler. ProcessRequest(HttpContext context) +14
58 System.Web.Script.Services.HandlerWrapper.ProcessR equest(HttpContext context) +10
59 System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +358
60 System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +64
Any insight would be greatly appreciated.
Bruno Baia
01-22-2008, 01:13 PM
Hi,
Can you show us your WebServiceExporter configuration ?
Maybe you forgot something.
Check http://www.springframework.net/docs/1.1/reference/html/ajax.html#exposingWebServices
- Bruno
bbudd
01-25-2008, 05:05 PM
Bruno,
Thanks for your response. Here is my service configuration:
<object id="SearchWebService" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
<property name="TargetName" value="SearchService"/>
<property name="Namespace" value="http://domain.com/services/search"/>
<property name="Description" value="Presentation Service for the Search UI"/>
<property name="TypeAttributes">
<list>
<object type="System.Web.Script.Services.ScriptServiceAttribute, System.Web.Extensions"/>
</list>
</property>
</object>
<object id="SearchService" type="Services.SearchServiceStub, Services" />
This configuration was originally copied from the documentation referenced by your post.
I was able to reproduce the error using the Spring.Web.Extensions.Example. I created an AjaxEnabled Web Application Project in VS 2005 and copied all the code and configuration information from the Spring.Web.Extensions.Example project. When I ran the sample I get the previously noted error. As far as I can tell the only difference here would be the project type. I'm not sure if that helps you, but I thought it worth mentioning.
If you want me to email you the source example showing the problem, I'd be happy to send it to you.
Regards,
Bryce
Bruno Baia
01-29-2008, 07:24 AM
Hi,
Your WebServiceExporter id is SearchWebService so the web service is available @ SearchWebService.asmx !
(Note that your web service is also avalaible @ SearchService.asmx because it already has necessary WebService/WebMethod attributes)
Sorry, didn't see it before :x
HTH,
Bruno
dashaomai
02-17-2008, 03:08 AM
Hello, guys and gods ;)
I meet the same problem in works too, and on my machine I got the same errors with fresh "Spring.Web.Extensions.Example" project, the matter must not exist in this project, it's in somewhere.
after some TFT (try->fail->try), I found out the trouble is Microsoft .NET Framework 3.5. It's coming from Visual Studio 2008, and after uninstall it, the project "Spring.Web.Extensions.Example" works fine. so, I guess .NET 3.5 make trouble with Ajax process, and you can try for this.
Regards.
jvano
03-04-2008, 02:52 PM
Opened the ~\Spring.NET 1.1\examples\Spring\Spring.Web.Extensions.Example and tried to run it out of the box ... did not work.
It found the ContactWebSerivce.asmx fine thorough the WebServiceExporter but when I tried to click on the /js or /jsdebug got the yellow screen of death "No web service found at: /Spring.Web.Extensions.Example.2005/ContactWebService.asmx."
I haven't changed any of the configuration (web.config or spring.config).
I am running WinXP Pro with .NET 2.x and 3.5
oh and removing VS2008 is not a solution ...
Bruno Baia
03-06-2008, 09:06 AM
Hi,
I got .NET 3.5/VS 2008 too and don't have your pb.
I'm running the sample with VS2005 and it works.
Did you installed ASP.NET AJAX Extensions 1.0 for .NET 2.0 ?
http://asp.net/ajax/downloads/
-Bruno
Hi guys,
I have the same problem, and I don't have .NET 3.5 or VS2008 installed (although I do have the 3.0 framework). I'm on XP Pro, up-to-date service packs etc, working in VS2005, .NET 2.0, Spring.NET 1.1, and the AJAX Extensions installed.
My service class is a POCO with no [WebWhatever] annotations.
The service appears to be working if I access it directly, but the /js URL returns the same error message as the OP.
On the offchance that I might make some difference, I just uninstalled .NET 3.0 (which I wasn't using anyway), but it still doesn't work.
Any ideas?
Erich Eichinger
03-08-2008, 08:38 PM
Hi,
that's odd. I just checked this on my machines and it worked without problems. But I have no idea ... :-(
-Erich
dashaomai
03-09-2008, 03:07 AM
Hello!
In two of my working-computer( Win-XP Pro SP2, Win-Vista Business), I always meet this problem, I can publish the example "Spring.Web.Extensions.Example" but got error when run.
but when I publish the project from trouble working-computer to another App-Server without 3.5, only have .NET Framework 2.0 installed(Win-2003 Std), the project working fine.
detail of my working-computers:
#1: IBM Thinkpad T42
CPU: 1.6 G
Mem: 1.0 G x 2
OS: Win XP Pro SP2
With Frameworks:
.NET 2.0
.NET 3.0
.NET 3.5
.NET Ajax Extension 1.0
#2: DIY
CPU: AMD Athlon 3800+ X2
Mem: 1.0 G x 2
OS: Win Vista Business
With Frameworks:
.NET 2.0
.NET 3.0
.NET 3.5
.NET Ajax Extension 1.0
The regional setting of these computers are all China(PRC)
Erich Eichinger
03-09-2008, 10:58 AM
Hi,
did any of you who are experiencing this trouble look into your windows eventlog? asp.net logs unhandled exceptions there.
-Erich
did any of you who are experiencing this trouble look into your windows eventlog? asp.net logs unhandled exceptions there.
My application log contains a warning event from the web server with the same exception information as was sent to the browser, but there are no other errors or warnings to suggest a root cause for the problem.
Bruno Baia
03-10-2008, 04:26 PM
I got .NET 3.5 and ASP.NET AJAX 1.0 extensions installed and don't have your problems.
Are you guys using Firefox or IE to test ?
- Bruno
bchebrou
04-28-2008, 04:35 PM
Hello all,
Last week, i've got a new laptop. I installed VS2005, VS2008, ASP.NET AJAX Extensions 1.0 and IE7 on it. On my previous laptop all was ok : my application worked correctly and the Spring Sample too.
Now, on my new laptop nothing is working and i've the "No web service found" message when i try to get the /js or /jsdebug file.
Did you find any solution ?
I think it's can be related to an acces right problem. Do you know, where the js file or jsdebug file are generated ?
Below the event log :
Code de l'événement�*: 3005
Message d'événement�*: Une exception non gérée s'est produite.
Heure de l'événement�*: 28/04/2008 17:24:08
Heure de l'événement (UTC)�*: 28/04/2008 15:24:08
ID d'événement�*: b4ce2739cf844e26bc0dbea3a7fa40be
Séquence d'événements�*: 34
Occurrence de l'événement�*: 7
Code de détail de l'événement�*: 0
Informations d'application�*:
Domaine d'application�*: ec380e8e-3-128538686999882229
Niveau de confiance�*: Full
Chemin d'accès virtuel de l'application�*: /Spring.Web.Extensions.Example.2005
Chemin d'accès �* l'application�*: C:\Program Files\Spring.NET 1.1.1\examples\Spring\Spring.Web.Extensions.Exampl e\src\Spring.Web.Extensions.Example.2005\
Nom d'ordinateur�*: 69-BCHEBROU-P
Informations sur le processus�*:
ID de processus�*: 4452
Nom du processus�*: WebDev.WebServer.EXE
Nom du compte�*: CORP\bchebrou
Informations sur l'exception�*:
Type d'exception�*: InvalidOperationException
Message d'exception�*: No web service found at: /Spring.Web.Extensions.Example.2005/ContactWebService.asmx.
Informations sur la demande�*:
URL de la demande�*: http://localhost:3792/Spring.Web.Extensions.Example.2005/ContactWebService.asmx/jsdebug
Chemin d'accès �* la demande�*: /Spring.Web.Extensions.Example.2005/ContactWebService.asmx/jsdebug
Adresse d'hôte de l'utilisateur�*: 127.0.0.1
Utilisateur�*: CORP\bchebrou
Est authentifié�*: True
Type d'authentification�*: NTLM
Nom du compte de thread�*: CORP\bchebrou
Informations sur le thread�*:
ID de thread�*: 9
Nom du compte de thread�*: CORP\bchebrou
Emprunte une identité�*: False
Trace de la pile�*: �* System.Web.Script.Services.WebServiceData.GetWebSe rviceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods)
�* System.Web.Script.Services.WebServiceClientProxyGe nerator.GetClientProxyScript(HttpContext context)
�* System.Web.Script.Services.RestClientProxyHandler. ProcessRequest(HttpContext context)
�* System.Web.Script.Services.ScriptHandlerFactory.Ha ndlerWrapper.ProcessRequest(HttpContext context)
�* System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
�* System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
Détails de l'événement personnalisé�*:
Pour plus d'informations, consultez le centre Aide et support �* l'adresse http://go.microsoft.com/fwlink/events.asp.
bchebrou
04-28-2008, 07:10 PM
Hello,
Ok it's not a security problem, i remove the .Net 3.5 framework and the Spring Sample works now correctly. If I reinstall it (because I really need to reinstall it), and launch the Sample with VS2005, there is a "No Web Service Found" Exception when i click on the /js link...
In which order do you install your framework ?
Any others ideas ?
Benjamin
bchebrou
04-28-2008, 09:22 PM
Ok it's working for me now with framework 2.0, 3.0 and 3.5 side by side.
It seems that the problem comes from the version of the System.Web.Extension used. After the installation of the framework 3.5, a new version of the dll come in the GAC. During the runtime, I think it's the new dll which is used and there is the "No Web Service Found" message.
In my project with Copy Local = True on System.Web.Extension it works correctly.
I'm not sure to all understand here... But it works...
Bruno Baia
04-30-2008, 02:42 PM
It helps ! Merci :)
Btw, after your reinstallation, did you moved from Spring.NET 1.1 to Spring.NET 1.1.1 or you already was using Spring.NET 1.1.1 ?
- Bruno
bchebrou
05-14-2008, 10:40 AM
I was already using Spring.NET 1.1.1 and the very useful spring.panel :)
Benjamin
arahman
09-17-2008, 06:56 AM
I can't get it to work. I am afraid that this too will happen when I go into the production environment. How do I get this working stable?
In my project with Copy Local = True on System.Web.Extension it works correctly.
How does that work?
Erich Eichinger
09-17-2008, 07:41 AM
Hi,
you need to right-click the assembly in the references folder of your vs project and open its properties tab. There you can select "CopyLocal=Always"
-Erich
dashaomai
10-11-2008, 12:52 PM
Yeah~~ it is the way, thank you!
w00tson
10-24-2008, 09:23 AM
Hi,
you need to right-click the assembly in the references folder of your vs project and open its properties tab. There you can select "CopyLocal=Always"
-Erich
Does this mean that Spring is incompatible with AJAX 3.5? I sure can't get it to work and I'm not going back to old grumpy C# 2..
Erich Eichinger
10-25-2008, 02:33 PM
Hi,
Does this mean that Spring is incompatible with AJAX 3.5? I sure can't get it to work and I'm not going back to old grumpy C# 2..
No. "Copy Always" is only necessary when building for NET 2.0, because the System.Web.Extensions assembly is not there by default.
cheers,
Erich
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.