Olá Comunidade!!
Antes de começar a descrever o erro que encontrei e não estou conseguindo corrigir, vou apresentar o raio-x do meu ambiente de desenvolvimento.
1- MICROSOFT WINDOWS VISTA ULTIMATE
2- VISUAL STUDIO 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005 77626-009-0000007-41913
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77626-009-0000007-41913
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-0000007-41913
Microsoft Visual C++ 2005
Microsoft Visual Web Developer 2005 77626-009-0000007-41913
Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 2005 77626-009-0000007-41913
Microsoft Web Application Projects 2005
Version 8.0.50727.762
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
Orcas Technology Preview - .NET Framework 3.0 Development Tools 1.0
Microsoft Visual Studio Code Name Orcas Community Technology Preview - Development Tools for WinFX
PROBLEMA ENCONTRADO.
Estava fazendo um helloworld simples com webservices para validar o meu novo ambiente de desenvolvimento com windows vista.
Criei 1 webservice simples com aquele velho metodo de helloworld que vem como template.
Executei localmente esse webservice e testei via INVOKE da propria página de teste que abri no IE do vista.
Criei uma aplicação console para testar esse WS e quando fui adicionar a referencia ao mesmo e fui testar mais uma vez se o WS funcionava via INVOKE ao metodo HElloWorld BINGO!!!!
Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +491030
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +104
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +175
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
|
Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312
Quando rodo a minha aplicação de teste acontece o mesmo erro apresentando no momento de invokar o teste na tela de adição de referencias do webservices.
O mais incrivel de tudo é que quando abro o serviço pelo IE e faço o mesmo procedimento de INVOKE do metodo HelloWorld, o mesmo funciona e retorna o SOAP com o resultado...
ALGUEM PODE ME AJUDAR!!!!