有谁知道BerConverter类是否在Win 2000服务器上运行? [英] Does anyone know if BerConverter class runs on Win 2000 server?
本文介绍了有谁知道BerConverter类是否在Win 2000服务器上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在我的C#
代码中使用此BerConverter类时,我收到错误。即使Interent文档说它在Win2000 sp4上运行,我只是
thgouth我会仔细检查。有没有人知道是否支持Berconverter
Win2000服务器?
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
-
谢谢。
I''m getting an error when I tried to use this BerConverter class in my C#
code. Even though the Interent doc says that it runs on Win2000 sp4, I just
thgouth I''ll double check. Does anyone know if BerConverter is supported for
Win2000 server?
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
--
Thanks.
推荐答案
不支持IMO W2K,我知道它运行在XP SP2 W2K3上Vista,什么样的
您遇到异常或错误?
Willy。
" Pucca" < Pu *** @ discuss.microsoft.com写信息
新闻:8F ************************* ********* @ microsof t.com ...
|当我在C#
|中尝试使用这个BerConverter类时,我收到错误码。即使Interent文档说它在Win2000 sp4上运行,我也只需要b / b
|我会仔细检查一下。有没有人知道是否支持BerConverter
for
| Win2000服务器?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| -
|谢谢。
IMO W2K is not supported, I know it runs on XP SP2 W2K3 and Vista, what kind
of exception or error did you face?
Willy.
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
| I''m getting an error when I tried to use this BerConverter class in my C#
| code. Even though the Interent doc says that it runs on Win2000 sp4, I
just
| thgouth I''ll double check. Does anyone know if BerConverter is supported
for
| Win2000 server?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| --
| Thanks.
刚刚检查过,我认为没有理由它不适用于W2K,介意发布一个
短但完整的样本,说明你的问题。
威利。
" Pucca" < Pu *** @ discuss.microsoft.com写信息
新闻:8F ************************* ********* @ microsof t.com ...
|当我在C#
|中尝试使用这个BerConverter类时,我收到错误码。即使Interent文档说它在Win2000 sp4上运行,我也只需要b / b
|我会仔细检查一下。有没有人知道是否支持BerConverter
for
| Win2000服务器?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| -
|谢谢。
Just checked and I see no reason it should not work on W2K, mind to post a
short but complete sample that illustrates your issue.
Willy.
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
| I''m getting an error when I tried to use this BerConverter class in my C#
| code. Even though the Interent doc says that it runs on Win2000 sp4, I
just
| thgouth I''ll double check. Does anyone know if BerConverter is supported
for
| Win2000 server?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| --
| Thanks.
威利,
感谢您的回复,这里有关于我的代码和
$ b $的更多信息b问题我有。
我收到了以下错误信息
" BerConversionException:BER期间发生错误转换。
这是调用代码。我正在传递Active Directory Schema中
会议类的meetingBlob属性来解码:
enMeetingBlob =
((byte [] )child.Properties [" meetingBlob"]。Value);
meetingBlob =
CUnityDS.DecodeMeetingBlob(enMeetingBlob);
这是解码它的方法我在以下行获得了错误
代码:
object [] decodingObjects = BerConverter.Decode(" {iiiaiaaaa}" ;,
encodedMeetingBlob);
公共静态字符串DecodeMeetingBlob(byte [] encodedMeetingBlob)
{
string meetingBlob = null;
//解码它
object [] decodingObjects = BerConverter.Decode(" {iiiaiaaaa}",
encodedMeetingBlob) ;
foreach(decodeObjects中的对象o)
{
if(o是byte [])
{
meetingBlob + =(ByteArrayToStringInHex((byte [])o));
}
else if(o是byte [] [] )
{
byte [] [] byteArrays =(byte [] [])o;
for(int i = 0;我< byteArrays.Length; i ++)
{
meetingBlob + =(CUnityDS.ByteArrayToStringInHex(byteArrays [i])
+" - ");
}
//Console.WriteLine();
}
else if(o是string [])
{
string [] strArray =(string [])o;
for(int i = 0; i< strArray.Length; i ++)
{
meetingBlob + =(strArray [i] +" - ");
}
//Console.WriteLine();
}
else
{
meetingBlob + =" \ n" ;;
//Console.WriteLine(o);
}
}
字符串测试= meetingBlob;
返回meetingBlob;
}
} //结束CUnityDS
-
谢谢。
" Willy Denoyette [MVP]"写道:
Hi Willy,
Thank you for the reply and here is more information about my code and the
problem I''m having.
I''m getting the following error message in the catch
"BerConversionException: An error occurred during the BER conversion."
Here is the calling code. I''m passing the meetingBlob attribute of the
meeting class in Active Directory Schema to decode:
enMeetingBlob =
((byte[])child.Properties["meetingBlob"].Value);
meetingBlob =
CUnityDS.DecodeMeetingBlob(enMeetingBlob);
Here is the method that decodes it I got the error at the following line of
code:
object[] decodedObjects = BerConverter.Decode("{iiiaiaaaa}",
encodedMeetingBlob);
public static string DecodeMeetingBlob(byte[] encodedMeetingBlob)
{
string meetingBlob = null;
//Decode it
object[] decodedObjects = BerConverter.Decode("{iiiaiaaaa}",
encodedMeetingBlob);
foreach (object o in decodedObjects)
{
if (o is byte[])
{
meetingBlob += (ByteArrayToStringInHex((byte[])o));
}
else if (o is byte[][])
{
byte[][] byteArrays = (byte[][])o;
for (int i = 0; i < byteArrays.Length; i++)
{
meetingBlob += (CUnityDS.ByteArrayToStringInHex(byteArrays[i])
+ " - ");
}
//Console.WriteLine();
}
else if (o is string[])
{
string[] strArray = (string[])o;
for (int i = 0; i < strArray.Length; i++)
{
meetingBlob += (strArray[i] + " - ");
}
//Console.WriteLine();
}
else
{
meetingBlob += "\n";
//Console.WriteLine(o);
}
}
string test = meetingBlob;
return meetingBlob;
}
}//end CUnityDS
--
Thanks.
"Willy Denoyette [MVP]" wrote:
刚刚检查过,我认为没有理由它不适用于W2K,介意发布一个
短但完整的样本说明你的问题。
威利。
" Pucca" < Pu *** @ discuss.microsoft.com写信息
新闻:8F ************************* ********* @ microsof t.com ...
|当我在C#
|中尝试使用这个BerConverter类时,我收到错误码。即使Interent文档说它在Win2000 sp4上运行,我也只需要b / b
|我会仔细检查一下。有没有人知道是否支持BerConverter
for
| Win2000服务器?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| -
|谢谢。
Just checked and I see no reason it should not work on W2K, mind to post a
short but complete sample that illustrates your issue.
Willy.
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
| I''m getting an error when I tried to use this BerConverter class in my C#
| code. Even though the Interent doc says that it runs on Win2000 sp4, I
just
| thgouth I''ll double check. Does anyone know if BerConverter is supported
for
| Win2000 server?
|
http://msdn2.microsoft.com/en-us/lib...er.decode.aspx
| --
| Thanks.
这篇关于有谁知道BerConverter类是否在Win 2000服务器上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文