我使用的免费.NET托管服务有问题 [英] Problem with a free .NET hosting service I used

查看:85
本文介绍了我使用的免费.NET托管服务有问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello all



几天前我在免费的.NET托管Somee.com上部署了一个ASP.NET应用程序,以便在部署付费托管之前进行测试,但是我的应用程序的一部分使用Microsoft.Office.Interop.Excel使用Excel互操作。问题是Web服务器崩溃时出现以下消息:



检索CLSID为{00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败由于以下错误:80040154类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))。



我找到的解决方案是配置IIS运行32位应用程序但是我无法访问我正在使用的IIS服务器!



我正在使用Excel Interop,因为它可以灵活地创建excel文件,格式化和编辑单元格等,但我找不到任何具有相同(或至少接近)功能的源代码或库。我找到的大多数代码,尤其是codeproject.com上的代码,都会创建文件并直接下载,我想先将它存储到文件夹中。任何帮助都非常感谢!



网站即将完成,我需要测试excel部分,因为它正在集成的ASP.NET开发服务器上工作。

Hello all

Few days ago I deployed an ASP.NET application on the free .NET hosting Somee.com for testing purposes before deploying on paid hosting, but part of my application uses Excel interop using Microsoft.Office.Interop.Excel . The problem is that the web server crashes with the following message:

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

The solution I found is to configure IIS to run 32 bit application but I don't have access to the IIS server I'm using!

I'm using Excel Interop because of its flexibility in creating the excel file, formatting and editing the cells, etc. but I could not find any source code or library that has same (or at least near) capabilities. Most of the code I found, especially here on codeproject.com, creates the file and downloads it directly, I want to store it to a folder first. Any help is really appreciated!

The website is nearly done and I need to test the excel part since it's working on the integrated ASP.NET development server.

推荐答案

除非在服务器计算机上安装Excel,否则不能使用Excel互操作:即使对于付费服务,也不太可能。在任何服务器系统上安装Office产品都是不寻常的,因为用户没有机会靠近他们(谢天谢地):笑:



你会很多,很多最好找一个不同的方法来做到这一点 - Excel不太可能在你的网站上可用。
You can't use Excel interop unless Excel is installed on the server computer: and even for a paid service this is unlikely. Installing Office products on any server system is unusual as users don't get a chance to go near them (thankfully) :laugh:

You would be a lot, lot better off finding a different way to do this - Excel is unlikely ever to be available to your website.


问题是为了使用Excel必须在服务器上安装Interop Excel。我非常怀疑任何免费主机或任何共享主机都会允许这样做。它带来的问题多于好处。 Wes是正确的,微软不支持互操作。



有几个免费和开源解决方案运行良好以下链接列表一对



http:// stackoverflow .com / questions / 151005 / create-excel-xls-and-xlsx-file-from-c-sharp [ ^ ]
The issue is that in order to use Excel Interop Excel must be installed on the server. I highly doubt any free host or any shared hosting will allow that. It causes more problem than benefits. Wes is correct that Microsoft does not support interop.

There are several free and open source solutions that work well The following link list a couple

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp[^]


这篇关于我使用的免费.NET托管服务有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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