Hi All,
The scenario is as follows:
In my application, I am manipulating with Excel files. Reading , copying some values etc. It works fine as long as it is running from working directory (Local system).
I am publishing this application to a web server by publishing web site option from Build Menu in Visual studio editor. it gives error that Its unable to open the file.
the location where the Excel file are placed are within the application only..
Plz have a look n give some suggestion.
5 1311
Hi; I removed your other identical thread. There is no need to double post.
kind regards,
Jos (moderator)
actually after posting the first post, I was unable to view that.. That's why I posted again with the same content.
Regards
Nudrat
actually after posting the first post, I was unable to view that.. That's why I posted again with the same content.
Regards
Nudrat
If you want to view all threads you've started just click the My Subscriptions link near the top of the page.
P.S How are you specifying the path to your excel files?
Hi All,
The scenario is as follows:
In my application, I am manipulating with Excel files. Reading , copying some values etc. It works fine as long as it is running from working directory (Local system).
I am publishing this application to a web server by publishing web site option from Build Menu in Visual studio editor. it gives error that Its unable to open the file.
the location where the Excel file are placed are within the application only..
Plz have a look n give some suggestion.
Most errors of this nature occur from absolute local paths or permission probs. What was the error meesage and was there an error number?
in the begining Files were there in the application itself, and I was reading it through Server.Mappath() method. But as it was giving problem, so I tried to write a function , which just creates an instance of Excel Application. the code is as follows: this code is in VB.NET
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
fnReadExcel("ServerName")
End Sub
Public Function fnReadExcel(ByVal ServerName As String) As Boolean
On Error Resume Next
objApp = GetObject(ServerName, "Excel.Application")
If Err.Number Then
Err.Clear()
objApp = CreateObject("Excel.Application", ServerName)
End If
If objApp Is Nothing Then
Return False
End If
Return True
End Function
It is working fine, till it is there at local system. when I am publishing this to server, it is unable to create the instance of Excel. Moreover, my Local system is acting as a Server.
Please have a look n provide solution.
Regards
Nudrat
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Tony Wright |
last post by:
Hi,
I am having a problem installing an msi for a web site. The error
message I am getting is:
"The specified path 'http://mipdev05/features/Fas2' is unavailable.
The Internet Information...
|
by: james margey |
last post by:
Hi to all,
I have spent 3 days at this error and i have two days to go for a
deadline, and i am about to go off my nut, the reason being: Microsoft
dont seem to be able to provide a solution, I...
|
by: Rod |
last post by:
I orginally posted this to microsoft.public.sqlserver.ce but had not
received any responses.
I have a CF.NET application (C#) with a SqlCE database. We had
originally planned to use SQL...
|
by: Rich |
last post by:
When I try to publish my app I am now getting the 401 error message. It used
to work. Then someone changed something on the server. We are now trying to
change stuff back on the server. I don't...
|
by: JC |
last post by:
Hi, I have a simple web application and It works well in my local computer..
When i upload it to my web server i get this error:
Server Error in '/' Application....
|
by: moondaddy |
last post by:
running vs2005 I have a small test website called TestPublish which has
default.aspx, ErrorPage.aspx and testpage.htm. The default page just says
hello world and no other code and the errorpage...
|
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= |
last post by:
I have not tried this before. I have been building an ASP.Net 2.0 app for
some weeks now and up till now I have not had any problems publishing.
I was given a Word doc to include in the app. I...
|
by: vikjohn |
last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
|
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= |
last post by:
Hi Experts,
With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2
backend IIS servers, I’m getting error “Validation of ViewState MAC failed.
If this application is hosted...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |