Web Services error

T

tshad

I have a Web Service that works fine on my local machine, but when I move
the folder to my live site, I get the error:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:


Line 43: by Microsoft that offers a single logon and core profile
services for member sites.
Line 44: -->
Line 45: <authentication mode="Windows" />
Line 46:


Thanks,

Tom
 
G

Guest

Hi, try to configure the folder as an application by right clicking on the
folder on IIS, selecting properties and clicking on Create under application
name.

--Lorenc.
 
L

Lucas Tam

I have a Web Service that works fine on my local machine, but when I
move the folder to my live site, I get the error:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Did you set the directory as an application in IIS?
 
T

tshad

Lorenc said:
Hi, try to configure the folder as an application by right clicking on the
folder on IIS, selecting properties and clicking on Create under
application
name.

I can't do that as it is inside a folder that is already defined as an
application. I don't think I can define a folder as an application and then
define a folder inside of it also an application (can I?).

I did try that and then other errors dealing with the Web.Config file.

Here is a question.

If I am not going to open up my web services to the public, should I put the
Web Services folder in WWWRoot or my Applications folder (which is under
WWWRoot - as I don't have a Default WebSite).

Tom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,141
Latest member
BlissKeto
Top