Re: ADOStream Write Causes Permission Denied Error
From: Dan Sikorsky (dsikor_at_gte.net)
Date: 05/06/04
- Next message: Randy Birch: "Re: Variable Menu Names (the real one)"
- Previous message: Randy Birch: "Re: help please"
- In reply to: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Next in thread: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Reply: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 18:48:13 -0400
I thought that might be the case with Windows XP Pro.
My app is packaged using the Package and Deployment Wizard, then run and
installed to a separate folder to simulate a remote client doing an
installation. Included in the EXE app is a Live Update feature which
downloads a DLL from my website to the installation folder to overwrite the
prior version DLL.
It seems that I can rename the DLL prior to downloading the newer DLL with
the same name, and all is well ... the DLL downloads fine, but I end up with
a .dll.old file as well as the newer .dll file. Without renaming the .dll to
.dll.old I get the permission denied error.
Do you think getting rid of the dll and have an Update EXE and the actual
app EXE, and Shell to the Update EXE from the app EXE (and unloading the app
EXE), do the update, and shell back to the app EXE after unloading the
Update EXE?
-- Thank you kindly, Dan Sikorsky MSCS, BSCE, BAB "Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message news:8elk90tp3t8deal3b2uht8bcqu4rqdmqtl@4ax.com... > On Thu, 6 May 2004 09:09:57 -0400, "Dan Sikorsky" <dsikor@gte.net> wrote: > > ¤ Environment: Windows XP Pro, IE 6 > ¤ > ¤ When downloading a file (a DLL needing to be updated), whose filename > ¤ already exists, from a website using an HTTP response, I get a Permission > ¤ Denied error when executing the objADOStream.SaveToFile sFilePath, > ¤ adSaveCreateOverWrite line below: > ¤ > ¤ Set objADOStream = New ADODB.Stream > ¤ objADOStream.Type = adTypeBinary > ¤ objADOStream.Open > ¤ objADOStream.Write objHTTP.responseBody > ¤ objADOStream.SaveToFile sFilePath, adSaveCreateOverWrite > ¤ objADOStream.Close > > There are two possibilities that are likely affecting your ability to perform this operation. The > first is that the file is open by the application or another process. Second, the account under > which this application is running does not have sufficient permissions to write the file. > > If this is an ASP application, and authentication is Anonymous (no authentication), I sincerely > doubt that the IUSR or IWAM accounts have the appropriated permissions to write to the file system. > If you are using Basic authentication or higher, which requires authentication, then the > authenticated account must have sufficient permissions for the resource. > > > Paul ~~~ pclement@ameritech.net > Microsoft MVP (Visual Basic)
- Next message: Randy Birch: "Re: Variable Menu Names (the real one)"
- Previous message: Randy Birch: "Re: help please"
- In reply to: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Next in thread: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Reply: Paul Clement: "Re: ADOStream Write Causes Permission Denied Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|