473,796 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Is Denied

Ed
I have searched the archives and found several entries that address the problem I'm having, however, the solutions fall short of explaining exactly what to do

Like many others, when I attempt to access an Excel file via an ASP.NET page, I get an access is denied error on the line "dim XSL as new Excel.applicati on"

some solutions tell me to change my authentication in web.config file - I don't know what to chang
some solutions tell me to enter component services and change the default security settings on my dcom - which dcom, there's only about 50 of the things. I did the obvious, changed it on the excel application - didn't work

these solutions addressed this application and a given file. this is being developed on a development machine with IIS installed and running as the test platform. assuming I get it to work here, what changes on the IIS network server and the file server when I move the file and the apps

if anyone would be gracious enuf to take the time and give the step by step instructions as to what to change and where, I would be most appreciative. sorry for the sarcastic overtones, its been a long day

Thanx
Ed.
Jul 21 '05 #1
2 2037
See comment inilne.

"Ed" <an*******@disc ussions.microso ft.com> wrote in message
news:78******** *************** ***********@mic rosoft.com...
I have searched the archives and found several entries that address the problem I'm having, however, the solutions fall short of explaining exactly
what to do.
Like many others, when I attempt to access an Excel file via an ASP.NET page, I get an access is denied error on the line "dim XSL as new
Excel.applicati on".

The user account used for the web application (by default, it is ASPNET)
usually does not have permission to run programs on the server outside the
web app, unless you/server administrator authorize the web app user account
to do so.

some solutions tell me to change my authentication in web.config file - I don't know what to change

Authentication does not make things different regarding permission,
authorization does. They are different things. You need to give the user
account of your web app (ASPNET, or other if you impersonate the account),
permisstion t execute "EXCEL.EXE" (located in C:\Program files\Microsoft
Office\Office[office10][office11]).

Theoretically, you can run office desktop apps on web server, but it is
usually a bad design. Apps in office are never designed to run in an
unattended web server, especially if the server is open to the Internet. You
may be able to run it fine in a small network, like your office LAN, with
little chances of many users accessing Excel on the server concurrently, on
a publicly accessible web server, with unkonown concurrent users' access,
you may end up with so many Excel apps launched and not responding due to
unexpected warning messagebox. Who is going to the server physically dismiss
that?
some solutions tell me to enter component services and change the default security settings on my dcom - which dcom, there's only about 50 of the
things. I did the obvious, changed it on the excel application - didn't
work.
these solutions addressed this application and a given file. this is being developed on a development machine with IIS installed and running as the
test platform. assuming I get it to work here, what changes on the IIS
network server and the file server when I move the file and the apps?
if anyone would be gracious enuf to take the time and give the step by step instructions as to what to change and where, I would be most
appreciative. sorry for the sarcastic overtones, its been a long day.
Thanx.
Ed.

Jul 21 '05 #2
If your purpose is to read (or event update) data in *.xls file, you do not
have to open it in Excel on the web server. Yo can use OleDb namespce to
handle data in *.xls file as a database. This way you can simply put the
*.xls file in your web app's directory/subdirectory, so the web app user
account can access it without extra permission problem. To use OleDb to
access data in *.xls file, someone just asked a similar question and William
Ryan gave a good reply, here I copy the reply here for your convenience
(follow the link Ryan gives):
William Ryan wrote:
If you need to manipulate the data once you open it and do anything with the
worksheets, than you are probably going to have to use COM. However, if you
just need to open it up and read in data and possibly write it back, then
check this out.. http://www.knowdotnet.com/articles/exceldatasource.html

"João Santa Bárbara" <jo****@i24port ugal.com> wrote in message
news:#2******** ******@tk2msftn gp13.phx.gbl...
Hi all
i need to open a Excel File Without using the com Objects, how can i do this ???

i have see that msoffice 2003 install in the windows\Assmbly Directory an
assembly, but i tried to browse it via reference, but dotnet 2003 doens´t
accept ? how can i solve this ???

thsk
JSB


"Ed" <an*******@disc ussions.microso ft.com> wrote in message
news:58******** *************** ***********@mic rosoft.com... Thanx for the information and tip, however, when I gave permissions to execute to ASPNET and then reran the form, I got the same error - Access
denied. I understand that using Excel in a web app is a bad idea, however,
we have users here that put a lot of data into an Excel spreadsheet(s -
100s) and now need to get those data to the DB. In my attempt to learn
ASP.NET I thought it would be a good exercise to move this data using
ASP.NET. I'm not under any time constraint (yet) and I would be the only one
using the app - so, what the hell - give it a try.
In so far as the access denied error, I have no idea what to do next - can find any documentation (on-line books) about it.
Ed.

Jul 21 '05 #3

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

Similar topics

2
3059
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what I am trying to do: Set the "campus" listbox value and theb call fire event, such as in the code below. I get an "access denied" error.
0
2947
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can think of to login via the MySQL client but get a variation of the following error every time: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
9
6332
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use the attribute for the Main() function, I get "access denied error", if I use a ManagementEventWatcher to connect to the local machine to receive events. Is there anybody out there, how possibly can explain why this happens?? If I remove this...
0
3539
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
16
7389
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my project runs fine for several compiles then the error starts up again...and another iisreset. I seem to recall a similar issue a long time back which required turning off indexing, which I have had off since (I just re-checked to confirm it is...
12
3100
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty asp editing (like I used to be able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes, save and refresh my browser. Problem is that I get an Access is Denied error when I try to save the file and then the file gets wiped on...
3
8009
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that libraries I made myself were not having this problem, but it only happened with a zip library I downloaded and copied into my program's directory. When using classes from this library, my service threw an "Access Is Denied" FileLoadException, which...
3
7966
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
8
6053
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in ASP.NET 1.1, but was migrated to 2.0 during development. The reason this is an issue is because the application is using the Microsoft.Web.UI.WebControls.dll for the tree view and tab strip controls that didn't exist prior to 2.0. Well, that is...
0
3966
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was getting the Access denied error. After checking different settings and googling I wasnt able to pinpoint the problem and as a temporary fix I decided to merge the two assemblies into one, my logic being no offending assembly no access denied...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10244
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9061
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
7558
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
6802
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
5454
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
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

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.