DirectShow: Cannot assign Filename property of Dexter MediaDet object

H

Hartmut Schroth

Hi,

I want to use the Dexter 1.0 Type library in a VB.NET Web
project.
So I created a project reference to the com object
Interop.DexterLib.dll and added the following code to the
load property of the main form


Dim Det As New DexterLib.MediaDet
Det.Filename = "C:\SomeFilename.avi" ' existing avi file
.........

The program hangs when it reaches the 'Det.Filename = '
command.

I tried exactly the same in a VB.NET Windows.Form project
and everything works all right!

Is it not possible to use the Dexter Lib in a Web project?

Thanks for help in advance.

Regards

Hartmut
 
X

Xin Huang [MSFT]

ASP.NET runs as a local user named ASPNET, which by default has a very weak
permission set, and can't access many local directories. You can just grant
ASPNET access to the file and try again.

Hope this helps.

Regards,
Xin

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? Visit http://windowsupdate.microsoft.com to get the latest
critical updates and service packs available for your computer's Windows
operating system.
 
H

Hartmut Schroth

Hi,

that is what I tried already: ASPNET has full control over
the file. That semms to have nothing to do with the hang
up.
Do you have another idea?!

Thanks in advance

Regards Hartmut
 
X

Xin Huang [MSFT]

I tried the code and it seemed to be working for me. What is your
environment? Mine is Windows 2003, .NET Framework 1.1, and DirectX 9.0b.

To double-confirm that ASP.NET have access to the file, you can just create
a BinaryReader for the file and close it before using the MediaDet object.

Hope this helps.

Regards,
Xin

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? Visit http://windowsupdate.microsoft.com to get the latest
critical updates and service packs available for your computer's Windows
operating system.
 

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