473,772 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dsoFile Summary Updates in ASP.Net

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 btnAccept_Click (ByVal sender As Object, ByVal e As
System.EventArg s) Handles btnAccept.Click
Dim oSummProps As DSOFile.Summary Properties
Dim fi As New FileInfo(Sessio n("sFile"))

m_oDocument = New DSOFile.OleDocu mentPropertiesC lass

Try
m_oDocument.Ope n(fi.FullName, False,
DSOFile.dsoFile OpenOptions.dso OptionOpenReadO nlyIfNoWriteAcc ess)
oSummProps = m_oDocument.Sum maryProperties
oSummProps.Titl e = CType(mpHoriz.F indControl("txt Title"),
TextBox).Text
oSummProps.Auth or = CType(mpHoriz.F indControl("txt Author"),
TextBox).Text
oSummProps.Subj ect = CType(mpHoriz.F indControl("txt Subject"),
TextBox).Text
oSummProps.Comp any = CType(mpHoriz.F indControl("txt Company"),
TextBox).Text
oSummProps.Comm ents = CType(mpHoriz.F indControl("txt Comments"),
TextBox).Text
m_oDocument.Sav e()
Catch ex As SystemException
Response.Write( ex.ToString)
Response.End()
Finally
m_oDocument.Clo se()
m_oDocument = Nothing
End Try
OpenDocumentPro perties(fi)
End Sub

I've given Full Access rights to the folder where the changes are to be made
but that hasn't made a difference. But what's strange is that when I use the
modified demo application it should work for my local files but it also comes
up with the "Access Denied" error.

Is there something I'm missing?
Nov 19 '05 #1
3 1672
On Fri, 22 Jul 2005 07:21:03 -0700, "Bill Alexander" <Bi***********@ discussions.mic rosoft.com>
wrote:

¤ 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 btnAccept_Click (ByVal sender As Object, ByVal e As
¤ System.EventArg s) Handles btnAccept.Click
¤ Dim oSummProps As DSOFile.Summary Properties
¤ Dim fi As New FileInfo(Sessio n("sFile"))
¤
¤ m_oDocument = New DSOFile.OleDocu mentPropertiesC lass
¤
¤ Try
¤ m_oDocument.Ope n(fi.FullName, False,
¤ DSOFile.dsoFile OpenOptions.dso OptionOpenReadO nlyIfNoWriteAcc ess)
¤ oSummProps = m_oDocument.Sum maryProperties
¤ oSummProps.Titl e = CType(mpHoriz.F indControl("txt Title"),
¤ TextBox).Text
¤ oSummProps.Auth or = CType(mpHoriz.F indControl("txt Author"),
¤ TextBox).Text
¤ oSummProps.Subj ect = CType(mpHoriz.F indControl("txt Subject"),
¤ TextBox).Text
¤ oSummProps.Comp any = CType(mpHoriz.F indControl("txt Company"),
¤ TextBox).Text
¤ oSummProps.Comm ents = CType(mpHoriz.F indControl("txt Comments"),
¤ TextBox).Text
¤ m_oDocument.Sav e()
¤ Catch ex As SystemException
¤ Response.Write( ex.ToString)
¤ Response.End()
¤ Finally
¤ m_oDocument.Clo se()
¤ m_oDocument = Nothing
¤ End Try
¤ OpenDocumentPro perties(fi)
¤ End Sub
¤
¤ I've given Full Access rights to the folder where the changes are to be made
¤ but that hasn't made a difference. But what's strange is that when I use the
¤ modified demo application it should work for my local files but it also comes
¤ up with the "Access Denied" error.
¤
¤ Is there something I'm missing?

What type of authentication are you using for your Web app? Are you implementing impersonation?

If you are not implementing impersonation have you provided sufficient permissions to the ASPNET
account?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #2


"Paul Clement" wrote:
On Fri, 22 Jul 2005 07:21:03 -0700, "Bill Alexander" <Bi***********@ discussions.mic rosoft.com>
wrote:

¤ 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 btnAccept_Click (ByVal sender As Object, ByVal e As
¤ System.EventArg s) Handles btnAccept.Click
¤ Dim oSummProps As DSOFile.Summary Properties
¤ Dim fi As New FileInfo(Sessio n("sFile"))
¤
¤ m_oDocument = New DSOFile.OleDocu mentPropertiesC lass
¤
¤ Try
¤ m_oDocument.Ope n(fi.FullName, False,
¤ DSOFile.dsoFile OpenOptions.dso OptionOpenReadO nlyIfNoWriteAcc ess)
¤ oSummProps = m_oDocument.Sum maryProperties
¤ oSummProps.Titl e = CType(mpHoriz.F indControl("txt Title"),
¤ TextBox).Text
¤ oSummProps.Auth or = CType(mpHoriz.F indControl("txt Author"),
¤ TextBox).Text
¤ oSummProps.Subj ect = CType(mpHoriz.F indControl("txt Subject"),
¤ TextBox).Text
¤ oSummProps.Comp any = CType(mpHoriz.F indControl("txt Company"),
¤ TextBox).Text
¤ oSummProps.Comm ents = CType(mpHoriz.F indControl("txt Comments"),
¤ TextBox).Text
¤ m_oDocument.Sav e()
¤ Catch ex As SystemException
¤ Response.Write( ex.ToString)
¤ Response.End()
¤ Finally
¤ m_oDocument.Clo se()
¤ m_oDocument = Nothing
¤ End Try
¤ OpenDocumentPro perties(fi)
¤ End Sub
¤
¤ I've given Full Access rights to the folder where the changes are to be made
¤ but that hasn't made a difference. But what's strange is that when I use the
¤ modified demo application it should work for my local files but it also comes
¤ up with the "Access Denied" error.
¤
¤ Is there something I'm missing?

What type of authentication are you using for your Web app? Are you implementing impersonation?

If you are not implementing impersonation have you provided sufficient permissions to the ASPNET
account?
Paul
~~~~
Microsoft MVP (Visual Basic)

Yes, I am implementing impersonation as shown in my web.config file:
<authenticati on mode="Windows" />
<identity impersonate="tr ue" />

I have also set the IIS Service to Authenticate using only Basic
Authentication because it's going to a DFS virtual directory with NTFS
permissions set on each folder. But this is only accessing a directory on the
Web Server itself (as a testing are) that I have given Full Access to all
users.

Thanks,
Bill Alexander
Nov 19 '05 #3
On Fri, 22 Jul 2005 10:38:02 -0700, "Bill Alexander" <Bi***********@ discussions.mic rosoft.com>
wrote:

¤ > ¤ 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 btnAccept_Click (ByVal sender As Object, ByVal e As
¤ > ¤ System.EventArg s) Handles btnAccept.Click
¤ > ¤ Dim oSummProps As DSOFile.Summary Properties
¤ > ¤ Dim fi As New FileInfo(Sessio n("sFile"))
¤ > ¤
¤ > ¤ m_oDocument = New DSOFile.OleDocu mentPropertiesC lass
¤ > ¤
¤ > ¤ Try
¤ > ¤ m_oDocument.Ope n(fi.FullName, False,
¤ > ¤ DSOFile.dsoFile OpenOptions.dso OptionOpenReadO nlyIfNoWriteAcc ess)
¤ > ¤ oSummProps = m_oDocument.Sum maryProperties
¤ > ¤ oSummProps.Titl e = CType(mpHoriz.F indControl("txt Title"),
¤ > ¤ TextBox).Text
¤ > ¤ oSummProps.Auth or = CType(mpHoriz.F indControl("txt Author"),
¤ > ¤ TextBox).Text
¤ > ¤ oSummProps.Subj ect = CType(mpHoriz.F indControl("txt Subject"),
¤ > ¤ TextBox).Text
¤ > ¤ oSummProps.Comp any = CType(mpHoriz.F indControl("txt Company"),
¤ > ¤ TextBox).Text
¤ > ¤ oSummProps.Comm ents = CType(mpHoriz.F indControl("txt Comments"),
¤ > ¤ TextBox).Text
¤ > ¤ m_oDocument.Sav e()
¤ > ¤ Catch ex As SystemException
¤ > ¤ Response.Write( ex.ToString)
¤ > ¤ Response.End()
¤ > ¤ Finally
¤ > ¤ m_oDocument.Clo se()
¤ > ¤ m_oDocument = Nothing
¤ > ¤ End Try
¤ > ¤ OpenDocumentPro perties(fi)
¤ > ¤ End Sub
¤ > ¤
¤ > ¤ I've given Full Access rights to the folder where the changes are to be made
¤ > ¤ but that hasn't made a difference. But what's strange is that when I use the
¤ > ¤ modified demo application it should work for my local files but it also comes
¤ > ¤ up with the "Access Denied" error.
¤ > ¤
¤ > ¤ Is there something I'm missing?
¤ >
¤ > What type of authentication are you using for your Web app? Are you implementing impersonation?
¤ >
¤ > If you are not implementing impersonation have you provided sufficient permissions to the ASPNET
¤ > account?
¤ >
¤ >
¤ > Paul
¤ > ~~~~
¤ > Microsoft MVP (Visual Basic)
¤ >
¤ Yes, I am implementing impersonation as shown in my web.config file:
¤ <authenticati on mode="Windows" />
¤ <identity impersonate="tr ue" />
¤
¤ I have also set the IIS Service to Authenticate using only Basic
¤ Authentication because it's going to a DFS virtual directory with NTFS
¤ permissions set on each folder. But this is only accessing a directory on the
¤ Web Server itself (as a testing are) that I have given Full Access to all
¤ users.
¤
¤ Thanks,
¤ Bill Alexander
I haven't used DFS before, so I'm not sure what kind of security issues there might be. Are you
specifying a physical path to the file when using the DSOFile component?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #4

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

Similar topics

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>" &...
4
11161
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
1351
by: aschurg | last post by:
This post is in regard to archived discussion: http://www.thescripts.com/forum/thread103110.html 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)...
2
5712
by: sanjay1983 | last post by:
Hi Everyone, I am stuck to access file properties using 'Interop.dsofile.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time of create instance (Activator.CreateInstance) of 'dsofile.OleDocumentPropertiesClass' it throw the following registry exception: "Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7461
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
6716
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
5355
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
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.