I have an inhouse WCF / ASP.NET page combination. in my unit tests my method called works fine. When i call same method from ASP.NET with same data, i get this error:
The remote server returned an error: (405) Method Not Allowed.
[WebException: The remote server returned an error: (405) Method Not Allowed.]
System.Net.HttpWebRequest.
GetRespons
e() +2060853
System.ServiceModel.Channe
ls.HttpCha
nnelReques
t.WaitForR
eply(TimeS
pan timeout) +54
[ProtocolException: The remote server returned an unexpected response: (405) Method Not Allowed.]
System.Runtime.Remoting.Pr
oxies.Real
Proxy.Hand
leReturnMe
ssage(IMes
sage reqMsg, IMessage retMsg) +7605567
System.Runtime.Remoting.Pr
oxies.Real
Proxy.Priv
ateInvoke(
MessageDat
a& msgData, Int32 type) +257
Mimeo.Services.Enterprise.
Production
Service.Pr
oductionSh
ippingServ
iceContrac
t.PostLogi
corXML(Str
ing PacklistBarcode, String LPN, Decimal Weight) +0
Mimeo.Services.Enterprise.
Production
Service.Pr
oductionSh
ippingServ
iceClient.
PostLogico
rXML(Strin
g PacklistBarcode, String LPN, Decimal Weight) in C:\TFS\Tools\Production Tools\rename-SR\myVPCServi
ceContract
s\Proxies\
LogicorShi
ppingServi
ceClient.c
s:67
Mimeo.Tools.ShippingTools.
Shippingto
ols2.Butto
n1_Click(O
bject sender, EventArgs e) in C:\TFS\Tools\Production Tools\rename-SR\ShippingTo
olsAJAX\Sh
ippingTool
sAJAX\Ship
pingtools2
.aspx.cs:3
0
System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e) +111
System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument) +110
System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument) +10
System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData) +36
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1546
I can see from Line # 30 that my button click passes the params back to the WCF service. Then these 2 lines are trying to deal with it:
System.Runtime.Remoting.Pr
oxies.Real
Proxy.Hand
leReturnMe
ssage(IMes
sage reqMsg, IMessage retMsg) +7605567
System.Runtime.Remoting.Pr
oxies.Real
Proxy.Priv
ateInvoke(
MessageDat
a& msgData, Int32 type) +257
I am expectin bool back.
What have i missed in either a configuration of IIS or some other space?
TIA
__Stephen
Start Free Trial