?????: ??.NET Framework 2.0 Service Pack 1? ModuleBuilder.GetTypeToken ??????? ?????? ??? ???? ??? ????

?????? ????????? ?????? ?????????
???? ???????: 950986 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

?? ???? ?????? Microsoft.NET Framework 2.0 1? ??????? ModuleBuilder.GetTypeToken ?????? ??? ???? ??? ????.

?????? ???? ??? ??????? ??.NET Framework 2.0.

??? ???? ??????? ?? ????? ??? ????????? ???????? ?????? ?? ????????? ???????.
try
            {
                AssemblyBuilder assb = AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName("MyAssembly"), AssemblyBuilderAccess.ReflectionOnly);
                ModuleBuilder modb = assb.DefineDynamicModule("MyModule");
                Type t = typeof(object).MakeArrayType();
                int Token = modb.GetTypeToken(t).Token;
                Console.WriteLine("Token of type \"{0}\" is 0x{1}", t.ToString(), Token.ToString("x08"));
                Type t2 = modb.ResolveType(Token);
                Console.WriteLine("Token 0x{1} resolved to type \"{0}\"", t2.ToString(), Token.ToString("x08"));

            }
            catch (Exception xcpt)
            {
                Console.WriteLine("An exception of type {0} occurred:", xcpt.GetType());
                Console.WriteLine("{0}", xcpt.Message);
                Console.WriteLine("{0}", xcpt.StackTrace);
            }
??? ????? ?????? ????????? ???????? ?????? ??? ??????? ?? ???:
Token of type "System.Object[]" is 0x01000001
An exception of type System.TypeLoadException occurred:
Could not load type 'System.Object[]' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.Module.ResolveType(Int32 metadataToken)
   at tryfix401752.Program.Main(String[] args) in D:\KB950986\Program.cs:line 26

????

??????? ??????? ??????

????? ???? ????? ???? ????? ?? Microsoft. ??? ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ?? ???????? ??? ??? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??????? ?????? ???? ????????? ??? ???? ????.NET Framework 2.0 ?????? ???? ????? ??? ??? ??????? ??????.

??? ??? ??????? ????? ???? ?????? ??? ??????? ?? Microsoft ?????? ??? ??????? ??????. ?????? ??? ????? ????? ?? ????? ??? ??????? ?? Microsoft ????? ??????? ???????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ?? ??? ???????? ?? ??? ????? ????????? ???? ????? ???? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.

????????? ????????

??? ???? ??.NET Framework 2.0 Service Pack 1 ????? ?????? ??? ??????? ??????.

??????? ????? ???????

??? ???? ????? ????? ????????? ??? ????? ??? ??????? ??????.

??????? ??????? ??????? ??????

?? ??? ??? ??????? ?????? ??? ??? ??????? ????? ????.

??????? ?????

????? ????? ????? ?????????? ?? ??? ??????? ?????? ???? ????? (?? ???? ??????? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? "??????? ???????" ?????? ???? (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? ?????? ???? ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
?? ??? ??????????? ??? ??????
??? ?????????? ???????? ????????????????????? ???????
Mscordacwks.dll2.0.50727.1823822,28008-????? 200803:36x86
Mscorlib.dll2.0.50727.18234,345,85608-????? 200803:36x86
Mscorwks.dll2.0.50727.18235,852,67208-????? 200803:36x86

?????

???? Microsoft ?? ??? ?? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

????? ?? ????????? ??? ??????? ????? ???????? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
824684 ??? ????????? ???????? ????????? ?? ??? ??????? ????? Microsoft

???????

???? ???????: 950986 - ????? ??? ??????: 02/????? ??????/1435 - ??????: 2.0
????? ???
  • Microsoft .NET Framework 2.0
????? ??????: 
kbexpertiseadvanced kbfix kbqfe kbmt KB950986 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????950986

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com