PC Review


Reply
Thread Tools Rate Thread

DirectShow: Cannot assign Filename property of Dexter MediaDet object

 
 
Hartmut Schroth
Guest
Posts: n/a
 
      16th Dec 2003
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
 
Reply With Quote
 
 
 
 
Xin Huang [MSFT]
Guest
Posts: n/a
 
      17th Dec 2003
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.

 
Reply With Quote
 
Hartmut Schroth
Guest
Posts: n/a
 
      17th Dec 2003
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
>-----Originalnachricht-----
>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.
>
>.
>

 
Reply With Quote
 
Xin Huang [MSFT]
Guest
Posts: n/a
 
      18th Dec 2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a object property inside another object property -- pleassehelp!! almurph@altavista.com Microsoft C# .NET 1 12th Feb 2009 02:25 PM
Assign property from db to object property? Burt Microsoft VB .NET 2 7th Feb 2006 10:33 PM
How to assign filename automatically from document content? =?Utf-8?B?TGl0byBLdXNuYWRp?= Microsoft Word Document Management 1 13th Jan 2006 04:50 PM
Is there a Filename property in PrintOut property Christian Microsoft Excel Programming 4 3rd Sep 2004 10:12 PM
How can I use DirectShow Editing Services (MediaDet object) in VB.NET Hartmut Schroth Microsoft VB .NET 2 15th Dec 2003 07:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 PM.