473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Making an Excel File

Hello,

I have a web site that is accessing the Excel Reference:

Dim Excel As New Excel.Application
When this line of code is executed I get the following error.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET write
access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

I have attempted what is suggested with no success.

Any Suggestions will be greatly appreciated. All I am doing is making an
Excel File out of a dataset.

Chuck
Nov 19 '05 #1
2 1115
I don't recommend COM interop with Excel from ASP.NET, but if you're
determined to make it work, the details are here along with some better
options:
http://SteveOrr.net/articles/ExcelExport.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:Ok**************@TK2MSFTNGP09.phx.gbl...
Hello,

I have a web site that is accessing the Excel Reference:

Dim Excel As New Excel.Application
When this line of code is executed I get the following error.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET
write
access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

I have attempted what is suggested with no success.

Any Suggestions will be greatly appreciated. All I am doing is making an
Excel File out of a dataset.

Chuck

Nov 19 '05 #2
On Tue, 1 Nov 2005 11:36:02 -0800, "Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote:

¤ Hello,
¤
¤ I have a web site that is accessing the Excel Reference:
¤
¤ Dim Excel As New Excel.Application
¤ When this line of code is executed I get the following error.
¤
¤ ASP.NET is not authorized to access the requested resource. Consider
¤ granting access rights to the resource to the ASP.NET request identity.
¤ ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
¤ Network Service on IIS 6) that is used if the application is not
¤ impersonating. If the application is impersonating via <identity
¤ impersonate="true"/>, the identity will be the anonymous user (typically
¤ IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET write
¤ access to a file, right-click the file in Explorer,
¤ choose "Properties" and select the Security tab. Click "Add" to add the
¤ appropriate user or group. Highlight the ASP.NET account, and check the
¤ boxes for the desired access.
¤
¤ I have attempted what is suggested with no success.
¤
¤ Any Suggestions will be greatly appreciated. All I am doing is making an
¤ Excel File out of a dataset.

In addition to what Steve mentioned:

INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/default...b;en-us;257757
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #3

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

Similar topics

6
by: LRW | last post by:
This may be a question more directed to Excel, but I'm using PHP to generate a CSV to be imported into Excel, so maybe the solution is there. So, sorry for crossposting. Anyway, I'm generating a...
13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
1
by: george_y | last post by:
I need some help to generate with a C++ programm a file in Excel format (or at least in a way that all the information in it can be read by Excel) containing a graph with the data I choose. As an...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
1
by: mail2atulmehta | last post by:
Hi, I do not know if this is right place for this, but i need some help. I have a text file, whose values are seprated by a delimiter. I want to open this file in excel, ( not import it) . I have...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
2
by: chalres | last post by:
i'd like to make some word and excel file from webpage this word file is the same as the webpage how can i make it?
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
9
by: Sam Lambson | last post by:
Hi, This is similar to another post, because I still haven't gotten to the bottom of it. I have a back end database on a shared drive. Each (of 4) user has a front end file on their own C:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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,...
0
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...

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.