Exception of type 'System.Web.HttpParseException' was thrown in Service.svc  
Author Message
Ashish Sh





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Hi,
I used the WinFX service template to create a WinFX web service. I didn't modify the generated code and now when i try to build this project it throws the "Exception of type 'System.Web.HttpParseException' was thrown." in Service.svc file. I have no clue why this error is getting thrown.


Visual Studio 200821  
 
 
Madhu Ponduru -MSFT





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

This error means,something wrong in .svc file

.svc format should be like this

if possible,can you please share your .svc file info (just copy all the info in .svc file and post it)

-Thank you

Madhu



 
 
Ashish Sh





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Thanks for your quick response. Here's the .svc file contents


Like i said before... i haven't written a single line of code. I was just trying to compile the template generated code.
Thanks,
Ashish


 
 
Madhu Ponduru -MSFT





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Looks like they renamed class to service.

I am not able to repro this on my machine(feb ctp)

Are you using Feb ctp ,I will try to find one more machine with feb ctp and will try to repro.

-Thank you

Madhu



 
 
Ashish Sh





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Thanks again for all your help.
I downloaded the Feb CTP
Here are the links
http://www.microsoft.com/downloads/details.aspx familyid=F51C4D96-9AEA-474F-86D3-172BFA3B828B&displaylang=en

http://www.microsoft.com/downloads/details.aspx familyid=9BE1FC7F-0542-47F1-88DD-61E3EF88C402&displaylang=en

http://www.microsoft.com/downloads/details.aspx familyid=5A0AE4CD-DC79-4B12-8A05-B6195F89FFA2&displaylang=en
Please let me know if there is any problem

 
 
Ashish Sh





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Madhu,
Thanks for your help i got that thing working. I just installed Orcas for Feb CTP. It was my mistake.

I am trying to define WCF service which would be called from a VB6 application.
Can you please guide me as which Binding would be most compatible and if there is a way to automatically generate a VB6 proxy from the WCF service
Thanks for your help.
Ashish

 
 
Madhu Ponduru -MSFT





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

basicHttpBinding is simple and good choice for asmx clients and VB6 client applications.

WCf SVCUTIL is targetting only managed code,so we don't have any tools to generate proxy for vb6 apps,so you have to use soap toolkit or xmlhttp to post soap message to WCF service apps

we have some sample,How to use basicHttpBinding to interop with asmx client app

http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/wcf_samples/html/3ea381ee-ac7d-4d62-8c6c-12dc3650879f.asp

This Kb shows,how to post soap message by using xmlhttp

http://support.microsoft.com/default.aspx scid=kb;en-us;893659

you can use soap toolkit,soap toolkit is only supported for customers who has extended support,so i am not feeling comfortable to recommend soap toolkit to call WCF service.

Actually if we want,you can provide interop layer(some .NET class library takes calls from vb6 client and calls wcf apps) between VB6 client app and wcf service,that will solve all unmanaged client problem for now and once you migrate to VB.NET,you can use WCF service directly

-Thank you

Madhu



 
 
Ashish Sh





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

Thanks Madhu for all your help. You are amazing.

Ashish

 
 
Jeff Knutson





PostPosted: Windows Communication Foundation ("Indigo"), Exception of type 'System.Web.HttpParseException' was thrown in Service.svc Top

I realize Madhu Ponduru already provided a great answer, but i wanted to contribute this additional information which helped me get past this same error using the .net 3.0 bits:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=414261&SiteID=1
-- and --
http://blogs.msdn.com/madhuponduru/archive/2006/02/22/537627.aspx

Basically, change "Service" to "ServiceHost" and change "class=MyFancyIndigoService" to "Service=MyFancyIndigoService"

hopefully this will help save someone else some time :)

cheers

jk