I went to Access Permissions under the Security tab. All I see is Allow Local Access and Remote Access. Allow Local is already checked. Am I missing something? Windows 2003 is on the server.
Main Topics
Browse All TopicsI’m using Visual Studio 2005 to do the development.
I need ASP.NET to:
1. Take data from an SQL database.
2. Put data into an Excel spreadsheet (that is already created).
3. The Excel Spreadsheet then does some calculations.
4. ASP.NET saves and copies the spreadsheet with new name.
The only thing not working is putting data into the Excel Spreadsheet (that is already created). It works on the desktop but when I run it on the server I get the following error message:
File Creation failed. Reason is as follows System.UnauthorizedAccessE
'-------------------------
'Produce a Excel spread sheet
'-------------------------
Dim dsExcel As DataSet = DGS.OTR.FAS.Business.Trans
Dim Excelrow As DataRow
Dim i As Integer
Dim MyExcel As New Excel.Application
Dim oWorkbooks As Excel.Workbooks = MyExcel.Workbooks
It errors out on Dim MyExcel As New Excel.Application. Excel is on the server. It appears to be a permssions problem.
I don’t like doing it this way but was directed to put Excel on the server. I didn’t create this someone else did. I was just assigned the task of making it work. Personaly I would like it to access Excel on the desk top.
Can anyone tell me how to fix this problem or give me links to a site that will tell me how to fix this problem? If it’s easyer to use Excel on the desk top I’d be happy to change it. I just don’t know how to do it. Can someone tell me our give me some sites that have instructions.
Thank you for any help you can provide.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: weichunglowPosted on 2006-08-14 at 09:07:56ID: 17311264
Please try this: m/MSDN/Sho wPost.aspx ?PostID=59 5892& SiteI D=1
=========
http://forums.microsoft.co
The solution is in non-english, however, this is what translated by Google:
- Control panel: tool of administration
- Services of components
- Configuration DCOM
- To select EXCEL Application -
properties mitre safety -
to personalize the authorizations of execution and activation (button to modify)
- to add to the list of users ASP.NET and to give the all authorizations
==========================
I have done similar configuration before:
Cotnrol panel > Component Services>
Console Root > Component Services > Computers > My computer> DCOM Config > Microsoft Excel Application
Right click > Properties
Security tab> For each of the permission configure the necessary permission to ASPNET user. In winxp, it will be ASPNET; for win 2003 it will be IUSR_MACHINENAME
hope it helps