请教微软专家,.NET在windows98下的几个问题

lx1920 2002-07-23 10:24:22
.NET在Windows98下的几个问题:

1、在98下,为什么没有Identitiy
代码如下:
System.Security.Principal.IPrincipal MyIdentity= System.Threading.Thread.CurrentPrincipal;
userIdentity=MyIdentity.Identity.Name.ToString();
在windows98下userIdentity为空。即使机器已经登录到windows2000AD域。

如何解决?

2、在98下,打印问题
Me.PrintDocument1.Print()
走空白纸,不打印,预览报错
如何解决
...全文
48 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hihin 2003-05-09
  • 打赏
  • 举报
回复
原来如此
lx1920 2003-05-08
  • 打赏
  • 举报
回复
第一个问题
安装ads98补丁
在微软网站有下载
gaodz 2003-05-08
  • 打赏
  • 举报
回复
System.DirectoryServices 命名空间用以从托管代码简便地访问 Active Directory。在WIN98下没有AD的概念所以程序不能正常运行
jlhdlj 2003-05-07
  • 打赏
  • 举报
回复
学习!
lx1920 2002-07-24
  • 打赏
  • 举报
回复
另外,以下代码在windows2000下运行正常,在windows98下报错:
System.DirectoryServices.DirectoryEntry aa=new System.DirectoryServices.DirectoryEntry("LDAP://house1","zb","");
try
{
MessageBox.Show(aa.Properties["distinguishedName"].Value.ToString());
}
catch(System.Exception ex)
{
MessageBox.Show (ex.Message.ToString());
}

提示报错:找不到activeds.dll文件
从windows2000下找到该文件,使用regsvr32注册,无论如何注册不上,为什么?
lx1920 2002-07-24
  • 打赏
  • 举报
回复
仅安装.NET Framework环境,程序在windows2000下编译,在windows98下运行
yaoylguest 2002-07-24
  • 打赏
  • 举报
回复
.net在98下能安装吗?据我所知,仅仅能运行,而且还有问题,根本不能安装,你怎么装的?

17,748

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧