473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Error while publishing the application to server

38
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.
Jun 10 '08 #1
5 1311
JosAH
11,448 Expert 8TB
Hi; I removed your other identical thread. There is no need to double post.

kind regards,

Jos (moderator)
Jun 10 '08 #2
nudrat
38
actually after posting the first post, I was unable to view that.. That's why I posted again with the same content.

Regards
Nudrat
Jun 11 '08 #3
r035198x
13,262 8TB
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?
Jun 11 '08 #4
kenobewan
4,871 Expert 4TB
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?
Jun 11 '08 #5
nudrat
38
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
Jun 16 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
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...
4
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...
0
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...
1
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...
5
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....
1
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...
0
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...
1
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
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,...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.