Drop 12 Labs Lab 6 Ex1

Topics: Mobile Client Software Factory
Nov 7, 2006 at 5:58 AM
originally posted by: mccoolm

I have a problem when trying to add a web reference to the OrderTest web service. Does anyone know how to fix it ?

I get the following error when I Select the service from the list of available services

The document at the url http://localhost/OrderTest/Service.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.
- Report from 'WSDL Document' is 'There is an error in XML document (1, 2).'.
- Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.
- Report from 'XML Schema' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.


The web service has the following markup

<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>
Nov 8, 2006 at 2:48 AM
originally posted by: dcazzulino

You should first verify that the webservice is working fine by trying to access it directly from the browser.
Next, try to add a webreference from a standard windows forms application.
Next, it could possibly be an issue related to the MCSF, but I doubt it, given the error you're getting.
Nov 9, 2006 at 12:01 AM
originally posted by: mccoolm

Fixed by using

aspnet_regiis –u
aspnet_regiis –i