PDA

View Full Version : Uploading Web Service to discountasp.net


kdcarden
04-23-2003, 01:38 AM
I am having trouble uploading my web service application to discountasp.net. I used Visual Studio to develop the webservice on localhost. After I used the setup to build the project's files, I tried to just copy the files I needed into my discountasp.net directory. When I tried to add a webreference to the .asmx file of the webservice in an application I am developing, I got the following 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 23: "Forms", "Passport" and "None"
Line 24: -->
Line 25: <authentication mode="Windows" />
Line 26:
Line 27:


Source File: E:\web\outbackamer\htdocs\webservice\web.config Line: 25

Can anyone help?

Kevin

bruce
04-23-2003, 02:58 AM
The error means that you are missing an application root.

You'll need to create an application using the web application tool in the control panel.

[b]quote:Originally posted by kdcarden

I am having trouble uploading my web service application to discountasp.net. I used Visual Studio to develop the webservice on localhost. After I used the setup to build the project's files, I tried to just copy the files I needed into my discountasp.net directory. When I tried to add a webreference to the .asmx file of the webservice in an application I am developing, I got the following 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 23: "Forms", "Passport" and "None"
Line 24: -->
Line 25: <authentication mode="Windows" />
Line 26:
Line 27:


Source File: E:\web\outbackamer\htdocs\webservice\web.config Line: 25

Can anyone help?

Kevin
</blockquote id="quote"></font id="quote">

kdcarden
04-28-2003, 08:33 AM
Ok, thanks for the help. I fixed that problem. I am now able to add a webreference to http://www.outbackamerica.org/webserv1/service1.asmx. However, now when I run the program and it tries to load something from the web reference I get an error saying, "Server was unable to process request - Not a valid file name". Also, in the "add web reference" wizard in visual studio.net, when I select my .asmx file and then select one of the webmethods, and try to click on "Invoke" to test the method, it is unable to find the file. Does anyone have any idea how to find which filename it is talking about?

bruce
04-28-2003, 09:52 AM
Very strange..... but too little information to help you.

can you post a simple hello world webservice on your site and see if it works.



[b]quote:Originally posted by kdcarden

Ok, thanks for the help. I fixed that problem. I am now able to add a webreference to http://www.outbackamerica.org/webserv1/service1.asmx. However, now when I run the program and it tries to load something from the web reference I get an error saying, "Server was unable to process request - Not a valid file name". Also, in the "add web reference" wizard in visual studio.net, when I select my .asmx file and then select one of the webmethods, and try to click on "Invoke" to test the method, it is unable to find the file. Does anyone have any idea how to find which filename it is talking about?
</blockquote id="quote"></font id="quote">