Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Error COMException (0x80080005) from ASP.NET 2.0

Subject: Error COMException (0x80080005) from ASP.NET 2.0

From: Patrick Tai

Date: 15 Nov, 2006 10:27:47

Message: 1 of 3

We have Matlab version 2006a and Windows XP profession operating
system.
We used ASP.NET Development server to execute a Matlab function using
the Interop.MLApp.dll. We use C# as the script language. That worked.

Then we tried to use IIS (version 5.1) as the Web Server to launch
the Matlab function. This failed with the error:

Retrieving the COM class factory for component with CLSID
{A052DEB6-24BF-4425-B4AE-E8C55D264566} failed due to the following
error: 80080005

at the point in the C# code:
    protected void Page_Load(object sender, EventArgs e)
    {
            matlab = new MLApp.MLAppClass();
    }

We have taken care of the followings:
1.The user ASPNET has full authorization for loading processes.
2.The Web page has references to Matlab Applcation and Matlab Type
Library.

Thanks for your help.

Subject: Error COMException (0x80080005) from ASP.NET 2.0

From: Neil

Date: 18 Jun, 2010 04:30:21

Message: 2 of 3

"Patrick Tai" <ptai@risconsulting.com> wrote in message <ef460b6.-1@webcrossing.raydaftYaTP>...
> We have Matlab version 2006a and Windows XP profession operating
> system.
> We used ASP.NET Development server to execute a Matlab function using
> the Interop.MLApp.dll. We use C# as the script language. That worked.
>
> Then we tried to use IIS (version 5.1) as the Web Server to launch
> the Matlab function. This failed with the error:
>
> Retrieving the COM class factory for component with CLSID
> {A052DEB6-24BF-4425-B4AE-E8C55D264566} failed due to the following
> error: 80080005
>
> at the point in the C# code:
> protected void Page_Load(object sender, EventArgs e)
> {
> matlab = new MLApp.MLAppClass();
> }
>
> We have taken care of the followings:
> 1.The user ASPNET has full authorization for loading processes.
> 2.The Web page has references to Matlab Applcation and Matlab Type
> Library.
>
> Thanks for your help.

Hey Patrick

I see this is quite an old post. Did you ever manage to sort out this issues. I am running into the same problem. I have added the ASPNET user to the MATLAB Application DCOM settings to no avail.

Thanks
Neil

Subject: Error COMException (0x80080005) from ASP.NET 2.0

From: Neil

Date: 22 Jun, 2010 00:18:05

Message: 3 of 3

"Neil " <neil.iain@gmail.com> wrote in message <hvesot$cuf$1@fred.mathworks.com>...
> "Patrick Tai" <ptai@risconsulting.com> wrote in message <ef460b6.-1@webcrossing.raydaftYaTP>...
> > We have Matlab version 2006a and Windows XP profession operating
> > system.
> > We used ASP.NET Development server to execute a Matlab function using
> > the Interop.MLApp.dll. We use C# as the script language. That worked.
> >
> > Then we tried to use IIS (version 5.1) as the Web Server to launch
> > the Matlab function. This failed with the error:
> >
> > Retrieving the COM class factory for component with CLSID
> > {A052DEB6-24BF-4425-B4AE-E8C55D264566} failed due to the following
> > error: 80080005
> >
> > at the point in the C# code:
> > protected void Page_Load(object sender, EventArgs e)
> > {
> > matlab = new MLApp.MLAppClass();
> > }
> >
> > We have taken care of the followings:
> > 1.The user ASPNET has full authorization for loading processes.
> > 2.The Web page has references to Matlab Applcation and Matlab Type
> > Library.
> >
> > Thanks for your help.
>
> Hey Patrick
>
> I see this is quite an old post. Did you ever manage to sort out this issues. I am running into the same problem. I have added the ASPNET user to the MATLAB Application DCOM settings to no avail.
>
> Thanks
> Neil

For anyone who is running into this issue there are a few issues I picked up.

Firstly, granting the ASP.NET user rights for the MATLAB.Application object in your DCOM settings resolves the issue with a test enviroment (VS in my case) however not when you deploy it to IIS.
If you unsure how change the DCOM settings read up on dcomcnfg

The way I got round this is my adding the following line to my web.config
<identity impersonate="true" userName="username" password="password"/>
where the user - username- is a user with local admin rights.

Licensing is another issue I ran into when testing this on my local machine. Once again it works just fine under the test environment, however when putting it on IIS the MATLAB application does not open.
Inspecting the Windows Task manager I notice there is an active_matlab.exe process that has opened. This makes sense ans my local machine has a named user activation while the deployment server has a dedicated computer license.
The strange thing is that even though I have set the identity to impersonate myself it still will not work. I gues there is some licensing issue and can live with that.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us