Compiling (?) for C-Sharp using Mono ... problem w/ InitializeComponent

P

Paul C.

I am new to programming in C# using Mono (mcs). What .dll does this
"InitializeComponent()" method reside in?


Code:

// mcs web.cs -lib:C:\Program~1\Mono-1.0\lib -r:System.Data
-r:System.Web -r:System.Web.Services -r:System.Drawing
//
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;

namespace HelloService
{
public class HelloService : System.Web.Services.WebService
{
public HelloService()
{
//CODEGEN: This call is required by the ASP.NET Web Services
Designer
InitializeComponent();
}

[WebMethod]
public string SayHello(String strMyName)
{
return "Hello " + strMyName;
}

[WebMethod]
public string SayGoodBye()
{
return "Goodbye!";
}
}
}
 
S

Sunny

You don't need it for a webservice. This method is generated by VS.Net
designer. As you are not using it, you don't need it.

Sunny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top