Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 763
  • Last Modified:

Excel Interop on Windows 2012 Server

When trying to reference Excel I get the Error below on Windows 2012 server.  I am logged in as an admin and have full rights. When I browse to the AppData\Local\Temp\2 direcory i don't see a "Dir1" sub  Direcory.

HELP!!!!


Error Message
0
mobileistic
Asked:
mobileistic
  • 3
  • 2
1 Solution
 
Daniel Van Der WerkenIndependent ConsultantCommented:
Do you have the appropriate version of Office installed on the system? It needs to be installed for Interop to work.
0
 
mobileisticAuthor Commented:
Yes I have Office 2007 Enterprise installed on the machine.  I have now found I can add the reference to a Console or Form vb application but not a Website.  I think its some kind of rights issue when doing a website application.
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
Okay. Web site. Note that a web site works under an application pool. The application pool runs under a user context. Usually it's Network Service.

What happens if you make the Network Service local admin on the server (just for testing purposes -- don't leave it at that high level of access)?
0
 
mobileisticAuthor Commented:
Problem fixed!  I re-installed office and it fixed the issues with adding the reference.
0
 
mobileisticAuthor Commented:
its what worked
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now