473,320 Members | 1,952 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,320 software developers and data experts.

IIS problem with Excel , C# and ASP.NET

Ana
Here is the problem:
I have an IIS installed on my computer and a web site. When you click
on the button on that website, it should save excel file. If I do it,
it works fine ( but I'm an administrator on my own machine). If
someone else try that same thing (calling the web site through URL),
they get a message:
"Error: Microsoft Excel cannot access the file
'\\network_drive\some_folder'.
There are several possible reasons:
• The file name or path name does not exist.
• The file you're trying to open is being used by another program.
Close the document in the other program, and try again.
• The name of the workbook you're trying to save is the same as the
name of another document that is read-only. Try saving the workbook
with a different name.
Line: Microsoft Excel"
I presume there is a permission issue, but I don't know where to look.
I already have IIS on Integrated Windows authentication and web.config
file has <identity impersonate="true" />. Why am I the only one who
can do anything?
Jul 21 '05 #1
3 4965
Ali
Try giving permission access to ASPNET user

Ali

"Ana" <an*********@yahoo.com> wrote in message
news:1c*************************@posting.google.co m...
Here is the problem:
I have an IIS installed on my computer and a web site. When you click
on the button on that website, it should save excel file. If I do it,
it works fine ( but I'm an administrator on my own machine). If
someone else try that same thing (calling the web site through URL),
they get a message:
"Error: Microsoft Excel cannot access the file
'\\network_drive\some_folder'.
There are several possible reasons:
. The file name or path name does not exist.
. The file you're trying to open is being used by another program.
Close the document in the other program, and try again.
. The name of the workbook you're trying to save is the same as the
name of another document that is read-only. Try saving the workbook
with a different name.
Line: Microsoft Excel"
I presume there is a permission issue, but I don't know where to look.
I already have IIS on Integrated Windows authentication and web.config
file has <identity impersonate="true" />. Why am I the only one who
can do anything?

Jul 21 '05 #2
For this you need to change the DCOM configurations for excel application.
Type DCOMCnfg in run command dialog. and give permissions to ms excel
application.
"Ana" <an*********@yahoo.com> wrote in message
news:1c*************************@posting.google.co m...
Here is the problem:
I have an IIS installed on my computer and a web site. When you click
on the button on that website, it should save excel file. If I do it,
it works fine ( but I'm an administrator on my own machine). If
someone else try that same thing (calling the web site through URL),
they get a message:
"Error: Microsoft Excel cannot access the file
'\\network_drive\some_folder'.
There are several possible reasons:
. The file name or path name does not exist.
. The file you're trying to open is being used by another program.
Close the document in the other program, and try again.
. The name of the workbook you're trying to save is the same as the
name of another document that is read-only. Try saving the workbook
with a different name.
Line: Microsoft Excel"
I presume there is a permission issue, but I don't know where to look.
I already have IIS on Integrated Windows authentication and web.config
file has <identity impersonate="true" />. Why am I the only one who
can do anything?

Jul 21 '05 #3
Ana
I tried it but it didn't work. I've never used it, so maybe I'm doing
it wrong. What should I really do?

"Navdeep Bhardwaj" <na******@netsoftglobal.com> wrote in message news:<eX**************@TK2MSFTNGP12.phx.gbl>...
For this you need to change the DCOM configurations for excel application.
Type DCOMCnfg in run command dialog. and give permissions to ms excel
application.

Jul 21 '05 #4

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

Similar topics

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...
3
by: Dean Bortell | last post by:
This code runs fine on win xp and office xp: string sheetPassword = "Senior1993"; string sheetToOpen = "NewRpt1c.xls"; Excel.Application excelApp = new Excel.Application();...
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...
0
by: acharyaks | last post by:
Hi life saver, I am using excel component for the development. The purpose is to connect to excel through the odbc connection string. Then through the connection extract data into a dataset and...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
6
by: Darrell Wesley | last post by:
A VB2003 application upgraded to VB2005 that builds an Excel spreadsheet. Everything appears to work correctly except that the Excel object does not go away it is still in the Process list in task...
2
by: kosecki | last post by:
Hi, I can't find the way to do something from vb .net in current copy of Excel. All posts which I read tell how to make application.excel object and do something. I need to write something like...
0
by: Jedawi | last post by:
Hi, would anyone be able to point me in the right direction on how to import an image (.jpg file) into an Excel worksheet using VB.Net and Option Strict On. This should be straight forward...
6
by: AleydisGP | last post by:
I have a .plt file (which is a tab delimited ASCII file) and I want to format it to get a .dbf with data in rows and columns, detele some rows/columns and substitute decimal '.' with ','. All this...
2
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.