|
-
Dec 10th, 2009, 07:31 AM
#1
Thread Starter
Frenzied Member
Deploy Problem?
Hi All,
I have a simple master and content page and have uploaded to my web server. The site runs locally fine but when I run it from the server I get An Application Error Occured On The Server!
Any help please,
Jiggy!
-
Dec 10th, 2009, 07:56 AM
#2
Re: Deploy Problem?
What type of error do you get?
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Dec 10th, 2009, 08:21 AM
#3
Thread Starter
Frenzied Member
Re: Deploy Problem?
Sorry; I have the following error:-
Code:
Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
-
Dec 10th, 2009, 08:31 AM
#4
Re: Deploy Problem?
Hey,
Looks to me like you have added a reference in your project to the Office Interop DLL's, but you haven't included them in the version that you have uploaded to the server.
Gary
-
Dec 10th, 2009, 08:35 AM
#5
Thread Starter
Frenzied Member
Re: Deploy Problem?
In the bin folder I have Interop.Microsoft.Office.Core.dll but it is looking for Microsoft.Office.Excel.dll. I have search my PC and this file does not exist.
-
Dec 10th, 2009, 08:41 AM
#6
Re: Deploy Problem?
I think the problem is that you don't have Office installed on your production server
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Dec 10th, 2009, 08:45 AM
#7
Re: Deploy Problem?
Hey,
Do you have an explicit reference to that DLL in your application?
I have never really done much office development, and I don't know the in's and out's of what is required on a server hosting an application that integrates with office. It is my understanding that you shouldn't need a full office installation, but exactly what you do need installed, I am not sure.
Gary
-
Dec 10th, 2009, 08:48 AM
#8
Re: Deploy Problem?
i worked with Interop.Microsoft.Office few months ago and it also work fine on my cpu but on our server it fail to work because it didn't had office installed, i read somewhere that you can install "PIA" something... for this to work, but when i d/led it i couldn't complete the installation (can't remember why...)
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
-
Dec 10th, 2009, 08:53 AM
#9
Re: Deploy Problem?
Hey,
Jigabyte, this is bordering on being specifically an Office Development question. Granted, you are doing an ASP.Net Application, but this issue would be the same if you are trying to deploy a windows application onto a machine that didn't have office installed.
I think we should maybe ask to get this moved again, as koolsid and rob are probably best placed to answer it.
Gary
-
Dec 10th, 2009, 09:14 AM
#10
Thread Starter
Frenzied Member
Re: Deploy Problem?
OK thanks all for your help. I think I will have to resort to plan B which is to create Excel Templates for each report and create some VBA code to allow the user to select a CSV file which will come from my web application as an email. I would have like to create the spreadsheet on the web server but I don't have the experience and I need this sorting before the Christmas hols.
-
Dec 10th, 2009, 02:33 PM
#11
Re: Deploy Problem?
You'll need the Primary Interop Assemblies installed on the server, which contain the core Office assemblies that you're referencing. Because you're talking to COM DLLs, they do need to be installed. Ask your host if it's there. If you have full control, you can install it. If it's a shared host, you'll have to ask them, and they will say no.
-
Dec 10th, 2009, 02:36 PM
#12
Re: Deploy Problem?
There's a dirty way to create XLS files - you write the data you want in the Excel file as an HTML page with <table> tags etc, but you set the content type to the Excel content type.
Another way is to simply write your CSV or TSV out, with the Excel content type. The Content Type you want is application/vnd.ms-excel.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|