Failed to create out of process COM Server in .aspx

B

bubzhang

The line below always fail, Why?
myEXESvr.CmySimpleClass obj=new myEXESvr.CmySimpleClass();




//////////////////////////////////C#Source code
///////////////////////////////////////////////
It's a web application written with C#
WebFrom1.aspx.cs
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button1;

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
private void Button1_Click(object sender, System.EventArgs e)
{
try
{
myEXESvr.CmySimpleClass obj=new myEXESvr.CmySimpleClass();
}
catch(Exception _e)
{
_e.ToString();
}
}
}
 
C

cbDevelopment

There's a lot of reasons it could fail. Keep in mind the number one
cause of failure: permissions. ASP.Net applications run under the local
account ASPNET (unless you have impersonation on). Would ASPNET have
access to run this application?

I could tell you more if I knew what _e was returning.
 

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