[Mono-aspnet-list] InvalidCastException invoking WCF web service
Andrus
kobruleht2 at hot.ee
Wed Jul 14 11:20:39 EDT 2010
I tried to invoke WCF web service but got exception below.
How to use wcf web service ?
Andrus.
Server Error in '/myapp' Application
--------------------------------------------------------------------------------
Cannot cast from source type to destination type.
Description: HTTP 500. Error processing request.
Stack Trace:
System.InvalidCastException: Cannot cast from source type to destination
type.
at System.ServiceModel.ServiceHostBase.ApplyConfiguration () [0x00000] in
<filename unknown>:0
at System.ServiceModel.ServiceHostBase.InitializeDescription
(System.ServiceModel.UriSchemeKeyedCollection baseAddresses) [0x00000] in
<filename unknown>:0
at System.ServiceModel.ServiceHost.InitializeDescription (System.Type
serviceType, System.ServiceModel.UriSchemeKeyedCollection baseAddresses)
[0x00000] in <filename unknown>:0
at System.ServiceModel.ServiceHost..ctor (System.Type serviceType,
System.Uri[] baseAddresses) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.SvcHttpHandler.EnsureServiceHostCore ()
[0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.SvcHttpHandler.EnsureServiceHost ()
[0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.SvcHttpHandler.ProcessRequest
(System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator5.MoveNext () [0x00000]
in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.7 (/trunk/mono r160287 Tue Jul
13 14:25:28 EEST 2010); ASP.NET Version: 2.0.50727.1433
More information about the Mono-aspnet-list
mailing list