Solved

Excel Interop on Windows 2012 Server

Posted on 2014-10-14
5
543 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 19

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 19

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now