Please find the enclosed code
Webservice part code
------------------------------
[WebMethod]
public bool CanWeFixIt()
{
AppDomain secondDomain =
AppDomain.CreateDomain ("New AppDomain");
secondDomain.ExecuteAssembly
("CallTestAssembly.exe");
return true;
}
CallTestAssembly Code
--------------------------------
namespace CallTestAssembly
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the
application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
Console.WriteLine ("in
CallTestAssembly");
//
// TODO: Add code to start
application here
//
}
}
}
WebService Client code
-----------------------------
private void triggerButton_Click(object sender,
System.EventArgs e)
{
//string DataSource;
string strTemp;
bool bTemp=false;
Service1 myService = new Service1
();
bTemp = myService.CanWeFixIt();
if(bTemp)
{ strTemp += "Assembly called";
resultLabel.Text = strTemp;
}
}
With Regards
Nirmal
-----Original Message-----
Maybe we can help you if you post some code?
--
Greetz
Jan Tielens
________________________________
Read my weblog:
http://weblogs.asp.net/jan
.