IIS problem with Excel , C# and ASP.NET

  • Thread starter Thread starter Ana
  • Start date Start date
A

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?
 
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.
 
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?
 
Back
Top