What if:
1. you first create the follwing in the web.config file
<appSettings>
<add key="servicePath" value="http://yourmachin/MyService/Service.asmx"/>
</appSettings>
2. Then you add using System.Configuration; in the source file
3. in the page load method:
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager1.Services.Add(new ServiceReference(ConfigurationManager.AppSettings["servicePath"].ToString()));
}
Will this help?
/Frank