Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 5th, 2003, 03:19 AM
msrnivas msrnivas is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 30 msrnivas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Permission denied when access excel obj

We're running a web application that's supposed to extract data from an
Excel sheet into a database. For this, we use an ASP pages. In the ASP page, we create a VB object. This is where the error occurs,
and it also happens if we use the Set obj = New Excel.Application
syntax.We installed the excel software in the server login as administrator.

In client machine if user(client) have the administrative previliges , when using IE asp page works fine .if user doesn’t have administrative previliges getting 'Permission denied' on the
creation of the Excel application object.

We've already tried to add the IUSR_-account to the Administrators group but still same problem.

In IIS under security tab if I change anon access user from IUSR to a domain account which is having administrative previliges its working fine. But I don’t want to do this.Instead of assigning administrative account is there any way to do or what previliges I need to run this excel object ?if I know this I can create one new account and I can assign this account in anonymous account.

Reply With Quote
  #2  
Old August 3rd, 2004, 01:45 AM
Ramesh_y Ramesh_y is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 Ramesh_y User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Access Denied for Excel Application in ASP.NET

I have faced a lot of problems while Deploying the the Excel Application in ASP.NET. The Error which troubled me was "System.UnauthorizedAccessException : Access Denied"

I have written some of the tips to clear this bug and step by step methods to use an excel Application(Office Application) in ASP.NET.

Converting an Excel COM object to .NET Dll.

1)First we need take the Excel9.OLB file from the Office directory.
2)With the .NET framework we will get a Type Library Importer TlbImp.Exe we need to use this file to convert excel9.olb file to excel.dll.
we will find this TlbImp in .Net framework's Bin directory.

Syntax : TlbImp.exe Excel9.Olb

will give us three .dll files Office.dll, excel.dll and VBIDE.dll(with Office 2000).

Now we can use these file in our .Net programs(Using excel).

After doing all these I got this Access Denied error

This is just permission issue.

I have searched a lot in Google but i didn't got any solution for it. Finally

steps get rid of Access Denied error.(Do these steps by logging as Administrator


1. Click Start, click Run, and then type DCOMCNFG. Select the application that we want to automate. The application names are listed below:

2. Microsoft Excel 97/2000/2002/2003 - Microsoft Excel Application

3. Click Properties to open the property dialog box for this application.


4. Click the Security tab. Verify that Use Default Access Permissions and Use Default Launch Permissions are selected.
5. Click the Identity tab. Verify that The Launching User is selected.
6. Click OK to close the property dialog box and return to the main applications list dialog box.
7. In the DCOM Configuration dialog box, click the Default Security tab.
8. Click Edit Defaults for access permissions. Verify that the following users are listed in the access permissions, or add the users if they are not listed:

SYSTEM
INTERACTIVE
Everyone
Administrators
OfficeAutomationUser
IUSR_<machinename>*
IWAM_<machinename>*

* These accounts exist only if Internet Information Server (IIS) is installed on the computer.

9.Make sure that each user is allowed access and click OK.
Click Edit Defaults for launch permissions. Verify that the following users are listed in the launch permissions, or add the users if they are not listed:

SYSTEM
INTERACTIVE
Everyone
Administrators
OfficeAutomationUser
IUSR_<machinename>*
IWAM_<machinename>*

* These accounts exist only if IIS is installed on the computer.

10.Make sure that each user is allowed access, and then click OK.
Click OK to close DCOMCNFG.
Start REGEDIT and verify that the following keys and string values exist for the Office application that we want to automate:

Microsoft Excel 97/2000/2002/2003:
Key: HKEY_CLASSES_ROOT\AppID\EXCEL.EXE
AppID: {00020812-0000-0000-C000-000000000046}

11.If these keys do not exist, we can create them by running the following .reg file on our system: REGEDIT4


[HKEY_CLASSES_ROOT\AppID\EXCEL.EXE]
"AppID"="{00020812-0000-0000-C000-000000000046}"




Please refer articles.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;288367

http://support.microsoft.com/default.aspx?scid=kb;EN-US;288366

http://support.microsoft.com/default.aspx?scid=kb;EN-US;288366

Reply With Quote
  #3  
Old August 6th, 2004, 11:52 AM
aedna aedna is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 aedna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
should i do the same steps for each user's computer if i want my web page that uses excel objects to be displayed correctly for them?
thank you!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Permission denied when access excel obj


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek