473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DirectShow: Cannot assign Filename property of Dexter MediaDet object

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
Nov 20 '05 #1
3 2132
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.

Nov 20 '05 #2
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 weakpermission set, and can't access many local directories. You can just grantASPNET 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 latestcritical updates and service packs available for your computer's Windowsoperating system.

.

Nov 20 '05 #3
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.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
4
by: Eric | last post by:
How can I dynamically assign an event to an element? I have tried : (myelement is a text input) document.getElementById('myelement').onKeyUp = "myfnc(param1,param2,param3)"; ...
9
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
1
by: RicercatoreSbadato | last post by:
I have some big problems with the StreamWriter and MediaDet. I have read that StreamWriter isn't threadsafe from the MSDN.. I have used a lock() but nothing... -- RicercatoreSbadato
0
by: RicercatoreSbadato | last post by:
I am taking the video frames with the MediaDet Class. The problem is that I can't find how to know the exact width and height of the frame of the video... Any ideas?
2
by: Hartmut Schroth | last post by:
Hi, I want to develop a VB.NET application for saving video frames (e.g. from an AVI file) to a JPEG-file and want to use the MediaDet object of DirectShow Editing Services for that. The...
1
by: Doug D via .NET 247 | last post by:
I really really need some insight on this problem I am trying to bind a strongly typed collection object to a datagrid. I already Inherited CollectionBase, but .NET says that it cannot find my...
9
by: Michael A. Covington | last post by:
C# won't let me do something elegant. I'm creating a class and want to give it "write to file" and "read from file" methods. I'm actually using the XML serializer, but that's not the problem. ...
2
by: tomromanul | last post by:
Hi all, I built a Windows Froms user control and I use it in IE 6+. It functions properly (it displays properly in IE and executes code, such as displaying a message box), except that in the web...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.