473,480 Members | 4,827 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Does a COM Object need special permissions?

The title sounds odd but let me explain....I have a custom DLL created with
VB6 which is installed on the server and running just fine. One of the many
functions within the COM Obj is that it will write data from a recordset to
an Excel file and save the file as using a naming convention of username +
date. For example: johndoe_nov_04_03.xls. Now IF the file already exists,
the function deletes the old and saves this new one in it's place. The
Response from my function is simple....it either returns a the path of the
new file created which I'll use in a hyperlink OR the error message from the
server.

All of this seems to work fine on my local PC for testing. But when I run
this DLL on the server and call the function from a ASP script, I get a
"Permission Denied" error when my function tries to WRITE the file. It
seems to be deleting the existing files just fine...but when it gets to the
second half of the function, it just will not WRITE a new file. Any ideas?
I could post code but I really don't think it's a code issue. It seems to
be a permission issue and it works just fine in VB Studio.

On the server, I have given the Everyone, IUSR_xxxx, and IWAM_xxx users Full
control of the folder where the Excel files should be written to.
Still....no dice. Any ideas?

Thanks!

--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
*********************************

Jul 19 '05 #1
1 1332
Nevermind....resolved.
=)

--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
*********************************
"D. Shane Fowlkes" <sh***@raccoonbob.com> wrote in message
news:Ot**************@TK2MSFTNGP12.phx.gbl...
The title sounds odd but let me explain....I have a custom DLL created with VB6 which is installed on the server and running just fine. One of the many functions within the COM Obj is that it will write data from a recordset to an Excel file and save the file as using a naming convention of username +
date. For example: johndoe_nov_04_03.xls. Now IF the file already exists, the function deletes the old and saves this new one in it's place. The
Response from my function is simple....it either returns a the path of the
new file created which I'll use in a hyperlink OR the error message from the server.

All of this seems to work fine on my local PC for testing. But when I run
this DLL on the server and call the function from a ASP script, I get a
"Permission Denied" error when my function tries to WRITE the file. It
seems to be deleting the existing files just fine...but when it gets to the second half of the function, it just will not WRITE a new file. Any ideas? I could post code but I really don't think it's a code issue. It seems to
be a permission issue and it works just fine in VB Studio.

On the server, I have given the Everyone, IUSR_xxxx, and IWAM_xxx users Full control of the folder where the Excel files should be written to.
Still....no dice. Any ideas?

Thanks!

--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
*********************************

Jul 19 '05 #2

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

Similar topics

15
6823
by: lkrubner | last post by:
I want to give users the power to edit files from an easy interface, so I create a form and a PHP script called "fileUpdate". It does a reasonable about of error checking and prints out some...
11
9199
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
24
3762
by: David Mathog | last post by:
If this: int i,sum; int *array; for(sum=0, i=0; i<len; i++){ sum += array; } is converted to this (never mind why for the moment):
9
10853
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
6
467
by: Bob | last post by:
Having trouble getting started. I created an instance of MSDE called VSDOTNET on a computer with the name of sysdev. Using MS SQL Web Adminstrator I created a database called temp with a...
1
1120
by: Daniel | last post by:
when my C# service impersonates a secondary account does the secondary account need any special permissions? what are they?
13
1678
by: MLH | last post by:
Invalid qualifier error displays at compile time on this A97 example from Permissions Property HELP. What's wrong with the strContainerName assignment line? (6th line) Sub...
7
5797
by: Artie | last post by:
Hi, Our team have a web project which includes some C# ActiveX DLLs. On some developers' PCs, the code which calls methods in the ActiveX dll is succesful - no exceptions. On other PCs, the...
19
4166
by: Angus | last post by:
I have a socket class CTestClientSocket which I am using to simulate load testing. I create multiple instances of the client like this: for (int i = 0; i < 5; i++) { CTestClientSocket* pTemp...
1
7075
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
7040
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,...
0
6905
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7080
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...
1
6736
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...
0
6908
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...
1
4772
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...
0
2994
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...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
178
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...

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.