|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Consuming ASP.NET Web Serviceconsuming C# code-behind method compiled in a separate project. Both run on localhost. The test drivers provided in Visual Studio .NET 2003 can invoke the method. When I attempt to add a web reference in the consuming project for the webservice I get the error message ... 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 43: by Microsoft that offers a single logon and core profile services for member sites. Line 44: --> Line 45: <authentication mode="Windows" /> Line 46: Line 47: <!-- AUTHORIZATION Can you give me some guidance on how to correct this condition to permit me to establish the reference to the webservice? After I see this simple (first) case, I will be able to attack the "real" project. If there is a better newsgroup for my question, please let me know. (Yes I do have administrator on privileges on this machine and access to IIS configuration.) Hi Thom,
Please open the web service virtual directory's property in IIS mmc. In Virtual Directory->Application Setting, check if the virtual directory's corresponding application has been created. If it isn't created, please click 'Create' button to create the application. If the application has been created yet, the error may be caused by there is duplicate application path in IIS metabase sometimes, for example: the application name is blank. You can click 'Remove' to delete the application and then create it again with a valid name. Please post here to let me know if issue still persists. Thanks. Best regards, WenJun Zhang Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ===================================================== Business-Critical Phone Support (BCPS) provides you with technical phone support at no charge during critical LAN outages or "business down" situations. This benefit is available 24 hours a day, 7 days a week to all Microsoft technology partners in the United States and Canada. This and other support options are available here: BCPS: https://partner.microsoft.com/US/technicalsupport/supportoverview/4001 0469 Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/ If you are outside the United States, please visit our International Support page: http://support.microsoft.com/common/international.aspx ===================================================== This posting is provided "AS IS" with no warranties, and confers no rights. The application was already there.
I removed it. I closed VisualStudio. I closed the IIS configuration utility. I then loaded the IIS configuration utility, created the application again, loaded Visual Studio, and attempted to establish the web reference. I got the same error. -- Show quote-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. -- ""WenJun Zhang[msft]"" <v-wzh***@online.microsoft.com> wrote in message news:FeRTdh1MFHA.2540@TK2MSFTNGXA03.phx.gbl... > Hi Thom, > > Please open the web service virtual directory's property in IIS mmc. > In Virtual Directory->Application Setting, check if the virtual > directory's corresponding application has been created. > > Please post here to let me know if issue still persists. > > WenJun Zhang > Microsoft Online Partner Support > > When responding to posts, please "Reply to Group" via your newsreader > so that others may learn and benefit from your issue. > > ===================================================== > > Business-Critical Phone Support (BCPS) provides you with technical > phone support at no charge during critical LAN outages or "business > down" situations. This benefit is available 24 hours a day, 7 days a > week to all Microsoft technology partners in the United States and > Canada. > > This and other support options are available here: > > BCPS: > https://partner.microsoft.com/US/technicalsupport/supportoverview/4001 > 0469 > Others: > https://partner.microsoft.com/US/technicalsupport/supportoverview/ > > If you are outside the United States, please visit our International > Support page: http://support.microsoft.com/common/international.aspx > > ===================================================== > > This posting is provided "AS IS" with no warranties, and confers no > rights. > Hi Thom,
Could you collect the following info and send them to me at: v-wzh***@online.microsoft.com (remove online.) 1) The IIS log of web service's host site. at \system32\LogFiles\W3SVC[x] 2) Use MetaEdit to dump IIS metabase configuration. How To Install MetaEdit 2.2 on Windows NT 4.0 or Windows 2000 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q301386&sd=tec h For IIS6 on Windows 2003, please use metabase explorer in IIS6 resource kit: Internet Information Services (IIS) 6.0 Resource Kit Tools http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyi d=56fc92ee-a71a-4c73-b628-ade629c89499 3) Name of the web service virtual directory. I'll wait for your message. Thanks. Best regards, WenJun Zhang Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. This posting is provided "AS IS" with no warranties, and confers no rights. From the screenshots, looks like both IE access and WSDL command line
just worked fine, right? If so, this is most likely a VS.net IDE issue now. I have further questions as below: 1) Can you successfully use the assemblies generated by WSDL/CSC command to call the web service? 2) If launching VS.net on another client machine to add the same web reference, will this succeed? If both answers of above are Yes, I think we can confirm it¡¯s a ¡®strange¡¯ VS.net IDE then.. Do you agree? I think you may get some suggestions by posting to out VS.net IDE newsgroup: microsoft.public.vsnet.ide Best regards, WenJun Zhang Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. This posting is provided "AS IS" with no warranties, and confers no rights. |
|||||||||||||||||||||||