AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > vs2005 open Excel

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 5/26/2007
Subject: vs2005 open Excel

Question
QUESTION: Website created in VS2005 can access Excel sheets as well as update from gridview. But when this site is published in IIS (or may be later on Webserver) simply goes to wait state - in the status bar message shown is - waiting for http://localhost/website1/excelread.aspx -
Statements used are simly
xlsfile = "E:\accounts\budget.xls"
   With objExcel
           .Visible = True
           .Workbooks.Open(xlsFile)
       End With
Kindly suggest any changes I am supposed to make
Regards
Vinod

ANSWER: Assuming that Excel runtime is installed on the server, check to see if IIS has permissions to run the Excel COM.

Regards,
Rizwan

---------- FOLLOW-UP ----------

QUESTION: Dear Rizwan,
Thanks for your guidance as under -
Assuming that Excel runtime is installed on the server, check to see if IIS has permissions to run the Excel COM.
But -Please pardon my ignorance. How to find it IIS has such permisions? And what is the procedure to affect these permissions
Thanks again
Vinod


Answer
before going into how to fix the problem a very simple way to test it is that in the same Virtual Directory you create another very simple page without any error handling. write some Excel object creation code in it, run it and test it, if it generates any error it would be displayed on screen anyway. if it doesnt and work then it means you have made some other mistake in your code which neads to be solved.

Hope that helps.

Regards,
Rizwan

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.