[Originally posted by dynecnn] Hi, When I try the example, I got such error as shown below. My OS is Win2K professional, IE 6.0, Visual Studio.Net (academic). Should I set something? regards, dyne =================================== Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1519: Invalid token 'string' in class, struct, or interface member declaration Source Error: Line 11: public class HelloService1 : WebService{ Line 12: [WebMethod(Description="Greet by name.")] Line 13: pubic string Greet(string name){ Line 14: if (name == "") name = "Stranger"; Line 15: return "Hello, " + name + "!"; Source File: c:inetpubwwwroothelloservice1.asmx Line: 13 ...... Microsoft (R) Visual C# .NET Compiler version 7.00.9466 for Microsoft (R) .NET Framework version 1.0.3705 Copyright (C) Microsoft Corporation 2001. All rights reserved. c:inetpubwwwroothelloservice1.asmx(13,9): error CS1519: Invalid token 'string' in class, struct, or interface member declaration
|