04 2011 档案

在Windows 2003 Server 上配置Microsoft Excel、Microsoft Word应用程序权限时 error: 8000401a 的解决方法!
摘要:在Windows2003Server上配置Microsoft Excel、Microsoft Word应用程序权限时error:8000401a 的解决方法 2010-09-06 12:55Asp.net 2.0在Windows 2003 Server 上配置Microsoft Excel、Microsoft Word应用程序权限时 error: 8000401a 的解决方法!Server Error in '/' Application.---------------------------------------------------------------------- 阅读全文

posted @ 2011-04-14 14:52 Jan.David 阅读(4200) 评论(0) 推荐(0)

failed due to the following error: 80070005 错误解决方案
摘要:公司的一个系统是ASP.NET页面下的导出Excel功能,采用了在服务器上打开一个Excel程序,写入数据,保存在服务器上,然后再传递给客户端的方法。在XP上完美运行之后,正式发布到WIN2003服务器上的时候,却出现了问题.Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.网上大部分资料来自于:http://blog.crowe.co.nz/archive/200 阅读全文

posted @ 2011-04-14 09:31 Jan.David 阅读(4016) 评论(0) 推荐(0)

C#在托盘显示图标
摘要:C#在托盘显示图标using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace notifyIconShow{ public partial class notifyIconShow : Form { public notifyIconShow() { InitializeComponen 阅读全文

posted @ 2011-04-03 10:40 Jan.David 阅读(9052) 评论(0) 推荐(0)

Webservice Session使用方法 又一篇
摘要:在webService 有两个方法1. [WebMethod(Description = "登录",EnableSession=true)]public bool ClientLogin(string uNmae, string pwd){//连接数据库验证用户登录//创建一个sessionSystem.Web.HttpContext.Current.Session["UserName"] = username;return true;}2.[WebMethod(Description = "获取登录用户名称",EnableSessi 阅读全文

posted @ 2011-04-01 10:56 Jan.David 阅读(4343) 评论(2) 推荐(2)

在webservice中使用session和cookie
摘要:要在webservice中使用session,1.需要在服务端的方法中加入[WebMethod(EnableSession=true)]修饰方法,2.在客户端,要在实例化了webservice代理类之后,要为它的CookieContainer 实例化一个 new CookieContainer();这样才能使用session存储状态。3.另外在多个webservice代理中,只要含有相同的cookie,就能共用相同的session,其中的cookie通过代理类的CookieContainer.GetCookies(new Uri(s.Url))["ASP.NET_SessionId& 阅读全文

posted @ 2011-04-01 08:56 Jan.David 阅读(20242) 评论(6) 推荐(2)

导航