473,394 Members | 1,746 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,394 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 4966
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.