Cannot reference dsofile.dll in ASP.NET project  
Author Message
David Mulford





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top

Hello!

I have successfully registered dsofile.dll on our development web server and want to use it in a project to read Structured Storage files. My first question is will dsofile.dll allow me to read outlook .MSG files

My second concern is regarding an error I receive when trying to add a reference to dsofile.dll in my project. I browse to the server share that holds the dll and get the following error: "A reference to 'Z:\DsoFile\dsofile.dll' could not be added. Could not register the ActiveX type library 'Z:\DsoFile\dsofile.dll\1'."

Any ideas on either of these Thanks in advance!



.NET Development21  
 
 
Paul P Clement IV





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top


First, not sure whether dsofile will read Outlook message files although I'm certain they are structured storage. I've seen at least one product designed to do this (from Priasoft).

Second, you should be adding the project reference of a local version, definitely not a network version. You'll likely encounter a security issue if you attempt to reference a network version.



 
 
David Mulford





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top

That makes sense about referencing a local copy. However, this is an ASP.NET web app. I don't think I mentioned that in my original post. I will try referencing a local copy and see if it will copy over correctly. I'll post my results when I am done.

Edit: I could not add dsofile.dll to the project locally as I don't have the permissions here at work to register the library. I'll see if I can't track down the Prisoft solution.

Thanks!


 
 
Paul P Clement IV





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top


During development you can add the reference to a local file. There is nothing you need to change once you deploy to your web server. You just need to include the interop assembly for dsofile (that is generated in the bin folder when added to the project) and make sure the that the dsofile.dll component itself is registered on the web server.

Looks rather pricey unless you have the budget to allocate:

http://www.priasoft.com/exchangemigration/products_msg_r.asp



 
 
David Mulford





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top

Yeah, I noticed the price right away as well. I downloaded the Priasoft demo and am getting a new error about not being able to load the assembly because the format is incorrect. Given that and the price (which would never get approved here), I'll abandon this idea for now.

Is this there any low-level documentation that shows you the format of Structured Storage files I've searched msdn for most of the week and everything seems to be at a very high level. Nothing saying how to read them at all that I could find.

Thanks for your help, Paul!


 
 
Paul P Clement IV





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top


There is a structured storage API but I've never worked with it personally:

Structured Storage Fundamentals

Below is a wrapper example:

http://www.codeproject.com/atl/structuredstorage.asp

Desaware's StorageTools is a third-party option for structured storage files:

http://www.desaware.com/products/universalnet/storagetools/features.aspx



 
 
David Mulford





PostPosted: .NET Framework Data Access and Storage, Cannot reference dsofile.dll in ASP.NET project Top

Awesome! The first link you gave me is exactly what I wanted! I am writing a wrapper class for the IStorage interface. This shouldn't take too long. I'll post my results when complete!

Paul, you rock! Thanks for all of your help!