转到正文

存档

标签: IIS

Error description:

I write a ASP.NET program, I use HttpContext.Current.User.Identity.Name to store users which visit our site. This program runs well when I debug in Visual studio and wee get display the login user successfully. However, the user name cannot be displayed when I run it in IIS 7.0. I'm very confused, why the program runs well at VS but fail at IIS?

Solution:

It's very obviouly that your IIS cannot get the username for the login one. It's because that you enable the anonymouos authentication in your IIS.  You should follow some steps as follows:

Firstly, open you IIS confiuation, Open "Authentication" in "IIS" folders. Just like:

  继续阅读

Today I created an ASP.Net application that will create excel file.  It works fine when  I am running it on VS studio but fails when i run it on IIS. The error message is

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

or

Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space

I don't konw why this error will happen. Howerer, I konw the solution given by "amit_de20004" as follows:

Solution:

1. GO to : Control panel -> Administrative tool -> Component Services.
2. Open Component Services .
继续阅读

I build a website using IIS7.0 and I can see this the website in my IE. However, the website cannot be viewed by other computers. Once I meet this problem, I think it's "FIREWALL" issue. However, I cannot close the firewall because my corportatoin not allow me to turn down firewall. So, I have to configure it:

The solution can be :

IIS7.0同局域网的计算机通过输入我的IP地址无法访问我的页面,但是在本机访问却没有问题,以前用IIS6.0的时候是可以的解决方案有两种。一种是关闭防火墙. 另一种开放特定端口:
开始---所有程序---管理工具---高级安全 Windows 防火墙, 在高级安全 Windows 防火墙的左边栏,选择“入站规则, 在右边栏选择"新建规则“。
在弹出的窗口依次选择:选中端口---下一步---选中TCP以及特定本地端口,填入要开放的端口号(这里填入指定端口号)---下一步---选中允许连接---下一步---选中所有选项---下一步---填入名称(随便一个标识)---完成

It's ok using this solution.

Reference:

[1]. http://www.cnblogs.com/tks/archive/2010/02/05/1664588.html

www.liaoqiqi.com网站PR查询 博客简洁版 博客Google_Site_Map 博客Baidu_Site_Map ?