wcf winservice "method not allowed"

  • Thread starter Thread starter ogled
  • Start date Start date
O

ogled

Hi

I apologize in advance if I have posted wrong, but my problem seems to
be more than just a webservice question,

I have a made a wcf windows service with several webservices. It
works
fin on several server and locally, but now I have run into "method
not
allowed" and don't know what to do...


All service are implemented without a svc file (the url like
http://mywebserver:8080/myservice/myservicepoint instead of
http://mywebserver:8080/myservice/myservicepoint.svc)


I can get the wsdl, but as soon as I try an access the webservice I
get "method not allowed".


The server is a win 2003 server. The webservice is implemented in the
win service with simplehttpbinding. I have tried and activated all
extentions (in case the right via IIS6 would affect this) but that
doesn't help.


Is this a rights problem or is it something else? Is there a
workaround for this?
 
Hi

I apologize in advance if I have posted wrong, but my problem seems to
be more than just a webservice question,

I have a made a wcf windows service with several webservices. It
works
fin on several server and locally, but now I have run into "method
not
allowed" and don't know what to do...


All service are implemented without a svc file (the url like
http://mywebserver:8080/myservice/myservicepoint instead of
http://mywebserver:8080/myservice/myservicepoint.svc)


I can get the wsdl, but as soon as I try an access the webservice I
get "method not allowed".


The server is a win 2003 server. The webservice is implemented in the
win service with simplehttpbinding. I have tried and activated all
extentions (in case the right via IIS6 would affect this) but that
doesn't help.


Is this a rights problem or is it something else? Is there a
workaround for this?

It sounds like a security problem.One way to figure out what is going on
is set up tracing or logging in the WCF service and trace/log liberally.
This will let you know if the problem is IIS calling the service (no
logs) or a particular method in the WCF service. I suspect the later.

If it is the later, you will have to explore what you are doing that you
do not have priveleges to do and fix the problem.

When you use HTTP binding, you set yourself up with many of the same
rules an ASMX service has, although it is often easier to solve in WCF,
as there are a few more workarounds.

In ASMX, a common problem is accessing file based resources (spinning up
a process on the server in a folder outside of the web root, for
example). I am not sure if that is an issue for you, or not. If so,
there are ways to turn this "feature" off, realizing it allows
transversal hacks for your websites (ie, internal network MAYBE,
Internet NOT ON YOUR LIFE).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
(e-mail address removed):












It sounds like a security problem.One way to figure out what is going on
is set up tracing or logging in the WCF service and trace/log liberally.
This will let you know if the problem is IIS calling the service (no
logs) or a particular method in the WCF service. I suspect the later.

If it is the later, you will have to explore what you are doing that you
do not have priveleges to do and fix the problem.

When you use HTTP binding, you set yourself up with many of the same
rules an ASMX service has, although it is often easier to solve in WCF,
as there are a few more workarounds.

In ASMX, a common problem is accessing file based resources (spinning up
a process on the server in a folder outside of the web root, for
example). I am not sure if that is an issue for you, or not. If so,
there are ways to turn this "feature" off, realizing it allows
transversal hacks for your websites (ie, internal network MAYBE,
Internet NOT ON YOUR LIFE).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog:http://gregorybeamer.spaces.live.com

*******************************************
|      Think outside the box!             |
*******************************************- Dölj citerad text -

- Visa citerad text -

Thanks for the tip, I'll try that. And everything is installed and run
in a closed network with no access point to the internet - so that's a
maybe.

Thanks again.

/erik
 
Back
Top