部署Microsoft Excel对象库12.0 [英] Deploying Microsoft Excel Object Library 12.0

查看:332
本文介绍了部署Microsoft Excel对象库12.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft Excel 12.0对象库来使用在.Net Framework 2.0上开发的我的网站"中的excel公式操作.
我在本地计算机上安装了Office 2007,它运行正常.

但是每当我将站点部署到服务器上时,就会显示以下错误

I am using Microsoft Excel 12.0 Object Library to use excel formula manipulation from My Site developed on .Net framework 2.0.

I have Office 2007 installed on my local machine and it works fine.

But whenever i deploy the site on to a server it shows the following error
,

The file ''/forum/default.aspx'' has not been pre-compiled, and cannot be requested. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: System.Web.HttpException: The file ''/forum/default.aspx'' has not been pre-compiled, and cannot be requested.
Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
Stack Trace: 

[HttpException (0x80004005): The file ''/forum/default.aspx'' has not been pre-compiled, and cannot be requested.]
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +826
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +116
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +175
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +50
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +503
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263



我还要做什么才能使其在服务器上工作?以及为部署服务器构建Relaese时我可能会缺少的东西.构建发行版时,我没有为COM对象做任何额外的事情.我该怎么办?
这是我第一次使用COM对象库.



what else i will have to do to get it working on server? and what i might be missing while building relaese for the deployment server. I am not doing anything extra for COM object while building release. what am i supposed to do?
This is my first time working with a COM object library.

推荐答案

Office interop不能在服务器上使用,并且需要在该服务器上安装Office Suite. .

最好使用服务器端第三方组件来生成Excel文件.

试试这个: http://epplus.codeplex.com/ [
Office interop is not intended to be used on servers and requires the installation of the Office Suite on that server.

You are better off using server side 3rd party components for Excel file generation.

Try this : http://epplus.codeplex.com/[^]


这篇关于部署Microsoft Excel对象库12.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆