Solved

Excel Interop on Windows 2012 Server

Posted on 2014-10-14
5
593 Views
Last Modified: 2014-10-20
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
Comment
Question by:mobileistic
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 40382003
Do you have the appropriate version of Office installed on the system? It needs to be installed for Interop to work.
0
 

Author Comment

by:mobileistic
ID: 40382208
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
 
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 40382860
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
 

Accepted Solution

by:
mobileistic earned 0 total points
ID: 40382880
Problem fixed!  I re-installed office and it fixed the issues with adding the reference.
0
 

Author Closing Comment

by:mobileistic
ID: 40391529
its what worked
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now