i simply create a webservice (Add two numbers) in a ASP.NET page usin vb.net 2005. when i run it usin vb.net it runs using some "localhost port"(ex:-"http://localhost:1543/........").so then i can access those methods using that url.but i cant access that from an another machine by typing my IP Address and other <service>.asmx page.
my simple Service is:-
************************************************** *****************************************
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Public Class Service
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function add(ByVal a As Integer, ByVal b As Integer) As Integer
Return a + b
End Function
End Class
************************************************** ******************************************
(i use vb.net 2005,windows 2000 SP4,IIS Version 5 )
Isimply copy and paste my web service folder to "\Inetpub\wwwroot" and run it.
i reseive this error message:-
************************************************** *****************************************
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
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 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrors> section enables configuration
Source File: c:\inetpub\wwwroot\webtesth1\web.config
Line: 51
************************************************** ******************************************
please help me to solve this.
(I am new to ASP.NET and Web services. I have fair knowledge of all Vb versions,vb, Vb.net 2003 and Vn.net 2005)
Finally I reset the IIS server as MSDN site