473,786 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems using dsofile.dll in ASP.NET

1 New Member
This post is in regard to archived discussion:

http://www.thescripts. com/forum/thread103110.ht ml

Here is important information about dsofile.dll from an ASP.NET 2.0 application with regard to access rights/file security:

I ran into security access violations when I tried to access a file on a network share using impersonation and read the summary properties using dsofile.dll.

It turns out that COM components (such as dsofile.dll) are single threaded apartments (STA) whereas the ASP.NET page normally runs in a multiple threaded apartment (MTA). When a MTA calls into a STA in ASP.NET 2.0 it drops the impersonated identity on the calling thread and uses the aspnet_wp.exe to make the call regardless of your authentication method. The workaround is to add this page directive: AspCompat="true "
and make the call through a web page and not global.asax for instance.

It should be noted that there is a performance penalty for running a page in AspCompat mode.

More info:

http://support.microso ft.com/kb/325791/EN-US
Jul 25 '07 #1
0 1351

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2096
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ . Started out just trying to find the solutions and then moving on, to "aggressively" trying to find the best solution for each problems. First started to work on the problems using C++ and then moved on to using Python, mostly since it was much easier...
14
8737
by: Curtis Tammany | last post by:
Hello- Can someone tell me if DSOFile.dll can be accessed within ASP.NET? DSOFile.dll is registered and I have no problem using it in my .ASP scripts. I have tried the following: Dim oFilePropReader As DSOleFile.PropertyReader Dim oFileProperties As oFilePropReader.GetDocumentProperties("C:\MyDoc.doc") Response.write ("<table>" & vbCRLF) Response.write ("<tr><td><B>Title: </B></td><td>" & oFileProperties.Title & "</td></tr>" &...
0
1303
by: Curtis Tammany | last post by:
To Microsoft: For the next release of .NET framework, can you please include the functionality of DSOFile.dll??? Trying to implement DSOFile in .NET and get all the extended properties including its icon and thumbnail are extremely hard (if not impossible). Thanks- Curtis Tammany
10
2416
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ComboBox.SelectedValue = db_value; If the db_value was not included in the ComboBox value list the ComboBox.SelectedIndex used to return -1, Now the very same code is
0
928
by: Do | last post by:
Hi, I can use DSOFile correctly to pull Word, Excel, and Powerpoint properties. Can't pull Visio and Access properties. Is this normal? Do
3
1673
by: Bill Alexander | last post by:
I'm having trouble with updating general fields (Title, Autor Suject, etc.) in the summary of documents located on our Intranet. I've downloaded the FilePropDemoVB7 example (http://support.microsoft.com/?kbid=224351) and even tried modifing it to make the changes to my local files and I get the same error on both the original and the ASP.net version. Here is an example of my code that's tring to make a change: Private Sub...
0
1140
by: Don | last post by:
Hi, Anyone have any quick ideas as to why we can write extended file properties with dsofile.dll to all sorts of file formats - but not XML? Even in Word 2003, when I save as DOC extended file properties appear, but save as XML - they don't. Is this a Windows issue or a restriction in the DLL?
4
11163
by: Paul Bromley | last post by:
I have been pondering over this one all night!! I want to read the properties of a Word document WITHOUT opening it - notably the title document. Having read the newsgroups it seems that I neede to download from the MS site the DSOFile package containing the said DLL. However on looking in the newsgroups the best option to me seems to be using the DSOleFile.PropertyReader and then the GetDocumentProperties property, but this seems to be...
0
1017
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Has anyone had any success getting DSOfile working with a windows 2003 Server? I know it isn't listed as being supported, but had hoped it would work. When it runs I get empty strings returned for the values on the summary fields but there is definetly information in the fields. Any suggestions on another simple method that will work for server 2003? Thanks, Andrew.
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.