473,545 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ 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 1333
Nevermind....re solved.
=)

--
*************** *************** ***
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
*************** *************** ***
"D. Shane Fowlkes" <sh***@raccoonb ob.com> wrote in message
news:Ot******** ******@TK2MSFTN GP12.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
6851
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 errors. It uses fileperms() to get the permissions of the file, and it includes that info in any error message. Today I'm getting the following error...
11
9217
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
24
3772
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
10867
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 the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a...
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 table called customer. In Visual Studio .NET I can see and access the data in the table. The dataconnection is called sysdev\vsdotnet\temp.dbo
1
1122
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
1691
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 SetDocPermissions(docUnknown As Document) Dim strContainerName As String ' Set UserName property to valid existing group account. docUnknown.UserName = "Marketers" '...
7
5802
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 ActiveX control doesn't even seem to get loaded. (On the failing machines, if we try and debug down to where the ActiveX DLL method is invoked, both...
19
4170
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 = new CTestClientSocket(this, ip, port); pTemp->Connect(); m_collClients.push_back(pTemp);
1
7082
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 someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down...
0
7415
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7928
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...
1
7440
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...
1
5344
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...
0
3470
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...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
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
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
726
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...

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.