Giter VIP home page Giter VIP logo

referencesource's Introduction

.NET Reference Source

The referencesource repository contains sources from Microsoft .NET Reference Source that represent a subset of the .NET Framework. This subset contains similar functionality to the class libraries that are being developed in .NET Core. We intend to consult the referencesource repository as we develop .NET Core. It is also for the community to leverage to enable more scenarios for .NET developers.

Please note that the referencesource repository is read-only. See this blog post for the rationale.

This repository does not accept feature requests or bug reports. To submit those, you need to go elsewhere:

License

The files in this repository are licensed under the MIT license unless otherwise specified in the file header. If the file header only contains a copyright header (e.g., "Copyright (c) Microsoft Corporation. All rights reserved.", you can assume the associated file to be MIT-licensed.

referencesource's People

Contributors

cston avatar danmoseley avatar dotnet-bot avatar karelz avatar microsoft-github-policy-service[bot] avatar rbhanda avatar richlander avatar steveisok avatar terrajobst avatar vcsjones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

referencesource's Issues

XAML files are missing in Workflow Designer

The XAML Workflow Designer, which is located under the following hierarchy, cannot be compiled because several XAML files are missing.

referencesource/System.Activities.Presentation/System.Activities.Presentation/System/Activities/Presentation/

The corresponding.xaml.cs files are available, but the actual xaml files are completely missing. Could these be added because the code is an incomplete version of the Workflow Designer.

Question for Linq Last

Can anyone explain this code?

public static TSource Last<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
            if (source == null) throw Error.ArgumentNull("source");
            if (predicate == null) throw Error.ArgumentNull("predicate");
            TSource result = default(TSource);
            bool found = false;
            foreach (TSource element in source) {
                if (predicate(element)) {
                    result = element;
                    found = true;
                }
            }
            if (found) return result;
            throw Error.NoMatch();
        }

Why not ise this

foreach (TSource element in source) {
                if (predicate(element)) {
                    return  element;
                }
            }

Why create extra variable for result ?
Why more iteration after found?

ReaderWriterLockSlim reports inncorrect RecursiveReadCount in debugger.

I'm creating a transaction. At the end of the transaction, I release any locks on the object. Based on the data encountered, the application may have taken an Upgradable Read Lock and promoted it to a Write Lock, so I'm never guaranteed to know what state the lock is in at the end of the transaction. I have the following logic to deal with this scenario:

        public ReaderWriterLockSlim Lock { get; } = new ReaderWriterLockSlim();

        private void OnTransactionCompleted(object sender, TransactionEventArgs transactionEventArgs)
        {
            if (this.Lock.IsReadLockHeld)
            {
                this.Lock.ExitReadLock();
            }
            if (this.Lock.IsWriteLockHeld)
            {
                this.Lock.ExitWriteLock();
            }
            if (this.Lock.IsUpgradeableReadLockHeld)
            {
                this.Lock.ExitUpgradeableReadLock();
            }
        }

Using this outline, I've noticed that the debugger is giving me false indications that a Read lock is active on this object after running this code. I've placed Assert statements (asserting that there's no reader lock), and they haven't been tripped, but the debugger is adamant that the RecursiveReadCount is 1 and a Read lock is held.

In researching this, I came across several old articles claiming that we shouldn't use the IsReadLockHeld property except in Asserts and debugging. So I have two issues: #1, the debugger is clearly giving me a false indication and #2, is this pattern valid? If not, how are we supposed to release the locks when we don't have a guarantee that they've been locked (like with an Upgraded Read lock in a transaction)?

referencesource.microsoft.com - method navigation does not work for some

1 Open new browser
2. Visit https://referencesource.microsoft.com/
3. Type DataTable in search box
4. Click the first entry class DataTable
5. The right pane updates with the class
6. Press Ctr+F to open up browser's Search dialog
7. Type "Select" (without quotes)
8. You will land in line 2731 inside method Compute()
9. Try to click "Select"- it will NOT navigate to the Select method. Expected result: navigation should work
10. Move mouse over call to "Select" method. The mouse cursor will NOT change to hand icon
11. If you try the same procedure with call to Evalute in line 2733, everything works as expected

Similar problem occurs in lines 3805, 3814, but not in 3823

Possible reason: "Select" is both method (DataTable.Select) and class (System.Select)

License is unclear (both "MIT" and "All rights reserved" are mentioned)

The LICENSE file both refer to MIT License.
However, the README file reads:
"The files in this repository are licensed with the MIT license unless otherwise specified in the file header."

And pretty much every file in the repo has the header:
Copyright (c) Microsoft Corporation. All rights reserved.

Are these headers intended to fit the "otherwise specified in the file header" restriction?

In this case, the MIT License would be basically useless and none of the code could be used or modified.

If it's not the case, would it be possible to add an example of what "otherwise specified in the file header" means?
If an example is not feasible, would it be possible to add a note mentioning this header in particular does not fit this restriction?

EDIT: I'm referring, in particular, to the All rights reserved. mention

Reliable WCF channel internal exception

Not sure if this is the right place to ask, but after enable reliable session, we see following errors almost once per month:

Exception object: 5795b954
Exception type: System.Runtime.CallbackException
Message: Async Callback threw an exception.
InnerException: System.Runtime.Fx+InternalException, Use !PrintException 579182c4 to see more.
StackTrace (generated):
SP IP Function
4524E7D8 5A20EBB3 System_ServiceModel_Internals_ni!System.Runtime.AsyncResult.Complete(Boolean)+0x183
4524E8EC 5A2129B4 System_ServiceModel_Internals_ni!System.Runtime.InputQueue1+AsyncQueueReader[[System.__Canon, mscorlib]].Set(Item<System.__Canon>)+0x44 4524E908 5A2116F9 System_ServiceModel_Internals_ni!System.Runtime.InputQueue1[[System.Canon, mscorlib]].Shutdown(System.Func`1<System.Exception>)+0x1d9
4524E954 61CB8AFC System_ServiceModel_ni!System.ServiceModel.Channels.ReliableDuplexSessionChannel.ShutdownCallback(System.Object)+0xc
4524E958 5A213492 System_ServiceModel_Internals_ni!System.Runtime.IOThreadScheduler+ScheduledOverlapped.IOCallback(UInt32, UInt32, System.Threading.NativeOverlapped
)+0x72
4524E994 5A213404 System_ServiceModel_Internals_ni!System.Runtime.Fx+IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped
)+0x44
4524E9C0 6665387E mscorlib_ni!System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)+0x6e

(inner)
0:000> !PrintException 579182c4
Exception object: 579182c4
Exception type: System.Runtime.Fx+InternalException
Message: An unexpected failure occurred. Applications should not attempt to handle this error. For diagnostic purposes, this English message is associated with the failure: 'SetChannel is only valid in the NoChannel and ChannelOpening states'.
InnerException:
StackTrace (generated):
SP IP Function
4524E434 5A25573B System_ServiceModel_Internals_ni!System.Runtime.Fx.AssertAndThrow(System.String)+0x3b
4524E444 61B92336 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableChannelBinder1+ChannelSynchronizer[[System.__Canon, mscorlib]].SetChannel(System.__Canon)+0xda 4524E478 61BA29BA System_ServiceModel_ni!System.ServiceModel.Channels.ClientReliableChannelBinder1[[System.__Canon, mscorlib]].TryGetChannel(System.TimeSpan)+0x6a
4524E4A0 61BB0A85 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableChannelBinder1+ChannelSynchronizer+SyncWaiter[[System.__Canon, mscorlib]].TryGetChannel()+0x51 4524E4E0 61BB0BAB System_ServiceModel_ni!System.ServiceModel.Channels.ReliableChannelBinder1+ChannelSynchronizer+SyncWaiter[[System.__Canon, mscorlib]].TryWait(System.__Canon ByRef)+0x2b
4524E4F0 61B92A89 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableChannelBinder1+ChannelSynchronizer[[System.__Canon, mscorlib]].TryGetChannel(Boolean, Boolean, System.TimeSpan, System.ServiceModel.Channels.MaskingMode, System.__Canon ByRef)+0x2e9 4524E54C 61B8F5F4 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableChannelBinder1[[System.__Canon, mscorlib]].Send(System.ServiceModel.Channels.Message, System.TimeSpan, System.ServiceModel.Channels.MaskingMode)+0x1dc
4524E5B0 61CB86F2 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnSendHandler(System.ServiceModel.Channels.MessageAttemptInfo, System.TimeSpan, Boolean)+0xca
4524E5FC 61CB0CA3 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableOutputConnection.InternalAddMessage(System.ServiceModel.Channels.Message, System.TimeSpan, System.Object, Boolean)+0x1af
4524E684 61CB1012 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableOutputConnection.CompleteTransfer(System.TimeSpan)+0x5e
4524E69C 61CB0A3E System_ServiceModel_ni!System.ServiceModel.Channels.ReliableOutputConnection.Close(System.TimeSpan)+0xb2
4524E704 61CB7D95 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableDuplexSessionChannel.InternalCloseOutputSession(System.TimeSpan)+0x49
4524E750 61CB70A0 System_ServiceModel_ni!System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnCloseOutputSession(System.TimeSpan)+0xec
4524E794 61CB90B3 System_ServiceModel_ni!System.ServiceModel.Channels.ClientReliableDuplexSessionChannel+DuplexClientReliableSession.CloseOutputSession(System.TimeSpan)+0x13
4524E7A0 613D7DDB System_ServiceModel_ni!System.ServiceModel.Channels.ServiceChannel.DecrementActivity()+0xab
4524E7D4 613C917D System_ServiceModel_ni!System.ServiceModel.Channels.ServiceChannel.HandleReceiveComplete(System.ServiceModel.Channels.RequestContext)+0xdd
4524E808 613D0682 System_ServiceModel_ni!System.ServiceModel.Dispatcher.ChannelHandler.HandleReceiveComplete(System.ServiceModel.Channels.RequestContext)+0x32
4524E840 613D050F System_ServiceModel_ni!System.ServiceModel.Dispatcher.ChannelHandler.EndTryReceive(System.IAsyncResult, System.ServiceModel.Channels.RequestContext ByRef)+0x2f
4524E858 613D046B System_ServiceModel_ni!System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(System.IAsyncResult)+0x2b
4524E870 613D042F System_ServiceModel_ni!System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(System.IAsyncResult)+0x3f
4524E87C 5A2127EE System_ServiceModel_Internals_ni!System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)+0x3e
4524E8A0 5A20EB4F System_ServiceModel_Internals_ni!System.Runtime.AsyncResult.Complete(Boolean)+0x11f

Invalid results of the function GetAttributeFromHeader in System.Web.HttpRequest

https://github.com/Microsoft/referencesource/blob/455f59f089ff2e96375e800c9b7866446f16cb30/System.Web/HttpRequest.cs#L823

https://github.com/Microsoft/referencesource/blob/master/System/net/System/Net/HttpListenerRequest.cs#L1216

For example, for parameters
headerValue = "multipart/form-data; boundary=abc; charset=UTF-8" (from Content-Type header) and
attrName = "boundary"
The result will be

"abc;"

instead

"abc"

In this case, the Files and Form collections are empty, because boundary value (from GetMultipartBoundary) is not valid.

referencesource.microsoft.com - download link target wrong

  1. The link .NETย 4.7.2 for for Windows 7 SP1, Windows 8.1, Windows 10 Anniversary Update, Windows 10 Creators Update, Windows 10 Fall Creators Update, Windows Server 2008 R2 SP1, Windows Server 2012, and Windows Server 2012 R2 and Windows Server 2016eย  in Download page should point to https://referencesource.microsoft.com/DotNet472Downlevel.zip;
  2. The name of above link: ...and Windows Server 2016eย  -> ...and Windows Server 2016ย ;
  3. The result of comparison between DotNet472RS4.zip and DotNet472Downlevel.zip:
Comparsion result
Only in DotNet472Downlevel/Source/externalapis/legacy/vctools/vc12/inc/vc: locale.h
Only in DotNet472Downlevel/Source/externalapis/legacy/vctools/vc12/inc/vc: share.h
Only in DotNet472Downlevel/Source/externalapis/legacy/vctools/vc12/inc/vc: xlocinfo.h
Files DotNet472RS4/Source/ndp/cdf/src/NetFx20/System.Messaging/System.Messaging.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx20/System.Messaging/System.Messaging.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx20/System.Web.Services/System.Web.Services.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx20/System.Web.Services/System.Web.Services.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx20/system.transactions/System.Transactions.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx20/system.transactions/System.Transactions.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx35/System.IO.Log/System.IO.Log.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx35/System.IO.Log/System.IO.Log.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx35/System.ServiceModel.Web/System.ServiceModel.Web.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx35/System.ServiceModel.Web/System.ServiceModel.Web.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx35/System.WorkflowServices/System.WorkflowServices.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx35/System.WorkflowServices/System.WorkflowServices.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.Activities/System.Activities.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.Activities/System.Activities.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.Activities.DurableInstancing/System.Activities.DurableInstancing.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.Activities.DurableInstancing/System.Activities.DurableInstancing.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.Runtime.DurableInstancing/System.Runtime.DurableInstancing.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.Runtime.DurableInstancing/System.Runtime.DurableInstancing.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Activities/System.ServiceModel.Activities.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Activities/System.ServiceModel.Activities.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Channels/System.ServiceModel.Channels.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Channels/System.ServiceModel.Channels.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Discovery/System.ServiceModel.Discovery.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Discovery/System.ServiceModel.Discovery.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Routing/System.ServiceModel.Routing.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.ServiceModel.Routing/System.ServiceModel.Routing.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/System.Xaml.Hosting/System.Xaml.Hosting.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/System.Xaml.Hosting/System.Xaml.Hosting.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/Tools/System.Activities.Core.Presentation/System.Activities.Core.Presentation.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/Tools/System.Activities.Core.Presentation/System.Activities.Core.Presentation.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/Tools/System.Activities.Presentation.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/Tools/System.Activities.Presentation.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/NetFx40/XamlBuildTask/XamlBuildTask.csproj and DotNet472Downlevel/Source/ndp/cdf/src/NetFx40/XamlBuildTask/XamlBuildTask.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/System.ServiceModel.Internals/System.ServiceModel.Internals.csproj and DotNet472Downlevel/Source/ndp/cdf/src/System.ServiceModel.Internals/System.ServiceModel.Internals.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/IdentityModel/System.IdentityModel.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/IdentityModel/System.IdentityModel.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/SMDiagnostics/SMDiagnostics.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/SMDiagnostics/SMDiagnostics.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/SMSvcHost/SMSvcHost.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/SMSvcHost/SMSvcHost.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/Serialization/System.Runtime.Serialization.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/Serialization/System.Runtime.Serialization.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/ServiceModel/System.ServiceModel.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/ServiceModel/System.ServiceModel.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/System.IdentityModel.Selectors.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/System.IdentityModel.Selectors.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/System.ServiceModel.Activation/System.ServiceModel.Activation.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/System.ServiceModel.Activation/System.ServiceModel.Activation.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/Tools/WsatConfig/WsatConfig.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/Tools/WsatConfig/WsatConfig.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/Tools/WsatConfig/WsatUI.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/Tools/WsatConfig/WsatUI.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/Tools/comsvcutil/ComSvcConfig.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/Tools/comsvcutil/ComSvcConfig.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/Tools/svcutil/svcutil.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/Tools/svcutil/svcutil.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WCF/WasHosting/System.ServiceModel.WasHosting.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WCF/WasHosting/System.ServiceModel.WasHosting.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WF/Activities/System.Workflow.Activities.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WF/Activities/System.Workflow.Activities.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WF/Common/System.Workflow.ComponentModel.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WF/Common/System.Workflow.ComponentModel.csproj differ
Files DotNet472RS4/Source/ndp/cdf/src/WF/RunTime/System.Workflow.Runtime.csproj and DotNet472Downlevel/Source/ndp/cdf/src/WF/RunTime/System.Workflow.Runtime.csproj differ
Files DotNet472RS4/Source/ndp/clr/src/BCL/mscorlib.csproj and DotNet472Downlevel/Source/ndp/clr/src/BCL/mscorlib.csproj differ
Files DotNet472RS4/Source/ndp/clr/src/BCL/system/security/framesecuritydescriptor.cs and DotNet472Downlevel/Source/ndp/clr/src/BCL/system/security/framesecuritydescriptor.cs differ
Files DotNet472RS4/Source/ndp/clr/src/BCL/system/stringcomparer.cs and DotNet472Downlevel/Source/ndp/clr/src/BCL/system/stringcomparer.cs differ
Files DotNet472RS4/Source/ndp/clr/src/BCL/system/stubhelpers.cs and DotNet472Downlevel/Source/ndp/clr/src/BCL/system/stubhelpers.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/remoting/System.Runtime.Remoting.csproj and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/remoting/System.Runtime.Remoting.csproj differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/System.Security.csproj and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/System.Security.csproj differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/SignedXmlDebugLog.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/SignedXmlDebugLog.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/encryptedreference.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/encryptedreference.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/encryptedxml.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/encryptedxml.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/keyinfo.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/keyinfo.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/reference.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/reference.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signature.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signature.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signedinfo.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signedinfo.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signedxml.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/signedxml.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/transform.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/transform.cs differ
Files DotNet472RS4/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/utils.cs and DotNet472Downlevel/Source/ndp/clr/src/managedlibraries/security/system/security/cryptography/xml/utils.cs differ
Files DotNet472RS4/Source/ndp/fx/src/AddIn/AddIn/System.AddIn.csproj and DotNet472Downlevel/Source/ndp/fx/src/AddIn/AddIn/System.AddIn.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/AddIn/Contract/System.AddIn.Contract.csproj and DotNet472Downlevel/Source/ndp/fx/src/AddIn/Contract/System.AddIn.Contract.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/Caching/System.Runtime.Caching.csproj and DotNet472Downlevel/Source/ndp/fx/src/Caching/System.Runtime.Caching.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/Configuration/System.Configuration.csproj and DotNet472Downlevel/Source/ndp/fx/src/Configuration/System.Configuration.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/Core/System.Core.csproj and DotNet472Downlevel/Source/ndp/fx/src/Core/System.Core.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DLinq/Dlinq/System.Data.Linq.csproj and DotNet472Downlevel/Source/ndp/fx/src/DLinq/Dlinq/System.Data.Linq.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataEntity/System.Data.Entity.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataEntity/System.Data.Entity.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataEntityDesign/Design/System.Data.Entity.Design.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataEntityDesign/Design/System.Data.Entity.Design.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataSet/System.Data.DataSetExtensions.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataSet/System.Data.DataSetExtensions.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataVisualization/System.Web.DataVisualization.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataVisualization/System.Web.DataVisualization.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataVisualization/System.Windows.Forms.DataVisualization.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataVisualization/System.Windows.Forms.DataVisualization.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataWeb/Client/System.Data.Services.Client.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataWeb/Client/System.Data.Services.Client.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataWeb/Design/System.Data.Services.Design.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataWeb/Design/System.Data.Services.Design.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataWeb/Server/System.Data.Services.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataWeb/Server/System.Data.Services.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataWebControls/System.Web.Entity.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataWebControls/System.Web.Entity.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/DataWebControlsDesign/System.Web.Entity.Design.csproj and DotNet472Downlevel/Source/ndp/fx/src/DataWebControlsDesign/System.Web.Entity.Design.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/Numerics/System.Numerics.csproj and DotNet472Downlevel/Source/ndp/fx/src/Numerics/System.Numerics.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/System.Drawing.csproj and DotNet472Downlevel/Source/ndp/fx/src/System.Drawing.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/System.IO.Compression.FileSystem.csproj and DotNet472Downlevel/Source/ndp/fx/src/System.IO.Compression.FileSystem.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/System.Windows.Forms.csproj and DotNet472Downlevel/Source/ndp/fx/src/System.Windows.Forms.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/System.csproj and DotNet472Downlevel/Source/ndp/fx/src/System.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/SystemNet/System.Net.csproj and DotNet472Downlevel/Source/ndp/fx/src/SystemNet/System.Net.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/XLinq/System.Xml.Linq.csproj and DotNet472Downlevel/Source/ndp/fx/src/XLinq/System.Xml.Linq.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/Xml/System.Xml.csproj and DotNet472Downlevel/Source/ndp/fx/src/Xml/System.Xml.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/XmlUtils/System.Data.SqlXml.csproj and DotNet472Downlevel/Source/ndp/fx/src/XmlUtils/System.Data.SqlXml.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/data/System.Data.csproj and DotNet472Downlevel/Source/ndp/fx/src/data/System.Data.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/mit/System/Web/System.Web.Mobile.csproj and DotNet472Downlevel/Source/ndp/fx/src/mit/System/Web/System.Web.Mobile.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/wmi/managed/System/Management/System.Management.csproj and DotNet472Downlevel/Source/ndp/fx/src/wmi/managed/System/Management/System.Management.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/xsp/system/ApplicationServices/System.Web.ApplicationServices.csproj and DotNet472Downlevel/Source/ndp/fx/src/xsp/system/ApplicationServices/System.Web.ApplicationServices.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/xsp/system/DataAnnotations/System.ComponentModel.DataAnnotations.csproj and DotNet472Downlevel/Source/ndp/fx/src/xsp/system/DataAnnotations/System.ComponentModel.DataAnnotations.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/xsp/system/DynamicData/System.Web.DynamicData.csproj and DotNet472Downlevel/Source/ndp/fx/src/xsp/system/DynamicData/System.Web.DynamicData.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/xsp/system/Extensions/System.Web.Extensions.csproj and DotNet472Downlevel/Source/ndp/fx/src/xsp/system/Extensions/System.Web.Extensions.csproj differ
Files DotNet472RS4/Source/ndp/fx/src/xsp/system/Web/System.Web.csproj and DotNet472Downlevel/Source/ndp/fx/src/xsp/system/Web/System.Web.csproj differ
Files DotNet472RS4/Source/ndp.sln and DotNet472Downlevel/Source/ndp.sln differ
Files DotNet472RS4/Source/wpf/PresentationFramework.csproj and DotNet472Downlevel/Source/wpf/PresentationFramework.csproj differ
Files DotNet472RS4/Source/wpf/src/Base/MS/Internal/WeakEventTable.cs and DotNet472Downlevel/Source/wpf/src/Base/MS/Internal/WeakEventTable.cs differ
Files DotNet472RS4/Source/wpf/src/Core/CSharp/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs and DotNet472Downlevel/Source/wpf/src/Core/CSharp/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs differ
Files DotNet472RS4/Source/wpf/src/Core/CSharp/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs.back and DotNet472Downlevel/Source/wpf/src/Core/CSharp/MS/internal/WindowsRuntime/Windows/UI/ViewManagement/InputPane.cs.back differ
Files DotNet472RS4/Source/wpf/src/Core/CSharp/System/Windows/Automation/Peers/AutomationPeer.cs and DotNet472Downlevel/Source/wpf/src/Core/CSharp/System/Windows/Automation/Peers/AutomationPeer.cs differ
Files DotNet472RS4/Source/wpf/src/Core/CSharp/System/Windows/Input/Command/CanExecuteChangedEventManager.cs and DotNet472Downlevel/Source/wpf/src/Core/CSharp/System/Windows/Input/Command/CanExecuteChangedEventManager.cs differ
Files DotNet472RS4/Source/wpf/src/Framework/MS/Internal/PtsHost/Pts.cs and DotNet472Downlevel/Source/wpf/src/Framework/MS/Internal/PtsHost/Pts.cs differ
Files DotNet472RS4/Source/wpf/src/Framework/MS/Internal/PtsHost/PtsCache.cs and DotNet472Downlevel/Source/wpf/src/Framework/MS/Internal/PtsHost/PtsCache.cs differ
Files DotNet472RS4/Source/wpf/src/Framework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs and DotNet472Downlevel/Source/wpf/src/Framework/System/Windows/Automation/Peers/FrameworkElementAutomationPeer.cs differ
Files DotNet472RS4/Source/wpf/src/Framework/System/Windows/StyleHelper.cs and DotNet472Downlevel/Source/wpf/src/Framework/System/Windows/StyleHelper.cs differ
Files DotNet472RS4/Source/wpf/src/PresentationBuildTasks.csproj and DotNet472Downlevel/Source/wpf/src/PresentationBuildTasks.csproj differ
Files DotNet472RS4/Source/wpf/src/PresentationCore.csproj and DotNet472Downlevel/Source/wpf/src/PresentationCore.csproj differ
Files DotNet472RS4/Source/wpf/src/Themes/Aero/PresentationFramework.Aero.csproj and DotNet472Downlevel/Source/wpf/src/Themes/Aero/PresentationFramework.Aero.csproj differ
Files DotNet472RS4/Source/wpf/src/Themes/Classic/PresentationFramework.Classic.csproj and DotNet472Downlevel/Source/wpf/src/Themes/Classic/PresentationFramework.Classic.csproj differ
Files DotNet472RS4/Source/wpf/src/Themes/Luna/PresentationFramework.Luna.csproj and DotNet472Downlevel/Source/wpf/src/Themes/Luna/PresentationFramework.Luna.csproj differ
Files DotNet472RS4/Source/wpf/src/Themes/Royale/PresentationFramework.Royale.csproj and DotNet472Downlevel/Source/wpf/src/Themes/Royale/PresentationFramework.Royale.csproj differ
Files DotNet472RS4/Source/wpf/src/UIAutomation/UIAutomationClient/UIAutomationClient.csproj and DotNet472Downlevel/Source/wpf/src/UIAutomation/UIAutomationClient/UIAutomationClient.csproj differ
Files DotNet472RS4/Source/wpf/src/UIAutomation/Win32Providers/UIAutomationClientsideProviders.csproj and DotNet472Downlevel/Source/wpf/src/UIAutomation/Win32Providers/UIAutomationClientsideProviders.csproj differ
Files DotNet472RS4/Source/wpf/src/WindowsBase.csproj and DotNet472Downlevel/Source/wpf/src/WindowsBase.csproj differ
Files DotNet472RS4/Source/wpf/src/host/dll/errorpage.cxx and DotNet472Downlevel/Source/wpf/src/host/dll/errorpage.cxx differ
Files DotNet472RS4/Source/wpf/src/host/dll/errorpage.hxx and DotNet472Downlevel/Source/wpf/src/host/dll/errorpage.hxx differ
Files DotNet472RS4/Source/wpf/src/host/inc/registry.hxx and DotNet472Downlevel/Source/wpf/src/host/inc/registry.hxx differ
Files DotNet472RS4/Source/wpf/src/host/shared/sharedutilities.cxx and DotNet472Downlevel/Source/wpf/src/host/shared/sharedutilities.cxx differ
Files DotNet472RS4/Source/wpf/src/host/shared/sharedutilities.hxx and DotNet472Downlevel/Source/wpf/src/host/shared/sharedutilities.hxx differ
Files DotNet472RS4/Source/wpf/src/host/shared/string.cxx and DotNet472Downlevel/Source/wpf/src/host/shared/string.cxx differ
Files DotNet472RS4/Source/wpf/src/host/shared/string.hxx and DotNet472Downlevel/Source/wpf/src/host/shared/string.hxx differ
Files DotNet472RS4/Source/wpf/src/host/shimimpl/applicationmanifest.cxx and DotNet472Downlevel/Source/wpf/src/host/shimimpl/applicationmanifest.cxx differ
Files DotNet472RS4/Source/wpf/src/host/shimimpl/applicationmanifest.hxx and DotNet472Downlevel/Source/wpf/src/host/shimimpl/applicationmanifest.hxx differ
Files DotNet472RS4/Source/wpf/src/host/shimimpl/hostshim.cxx and DotNet472Downlevel/Source/wpf/src/host/shimimpl/hostshim.cxx differ
Files DotNet472RS4/Source/wpf/src/host/shimimpl/markupversion.cxx and DotNet472Downlevel/Source/wpf/src/host/shimimpl/markupversion.cxx differ
Files DotNet472RS4/Source/wpf/src/host/shimimpl/markupversion.hxx and DotNet472Downlevel/Source/wpf/src/host/shimimpl/markupversion.hxx differ

If I were wrong, close this issue please.


Edited: Removed the repository containing the comparison result.

Identical zip files specified for two separate 4.7.2 releases

This concerns the following page: https://referencesource.microsoft.com/download_472.html

There are two downloads on the page:

  1. .NET 4.7.2 for Windows 10 Spring Creators Update (63 MB)
  2. .NET 4.7.2 for Windows 7 SP1, Windows 8.1, Windows 10 Anniversary Update, Windows 10 FCU, Windows Server 2008 R2 SP1, Windows Server 2012, and Windows Server 2012 R2 and Windows Server 2016e (63 MB)

2019-02-10 14_41_18-window

The zip files for both of these downloads are identically named: DotNet472RS4.zip

In all other releases that have two downloads on the same page (4.6.1, 4.6.2, 4.7, and 4.7.1), the two zip files are individually named; e.g. DotNet471RS3.zip vs DotNet471Downlevel.zip.

If it so happens that the identical naming of the two zip files for release 4.7.2 is intentional, please close this issue request, which in itself will help document the exceptional naming.

Thank you.

System.IO.Compression.FileSystem is not included

after done a little research, i've found that System.IO.Compression.FileSystem.dll is in fact compatible to .NET Framework 4.0 and can run perfectly after a little modify, but since it's not included in this reference source, in theory i can't legally release a build which is compatible with 4.0 (i did use cecil to replace the depended enum type in 4.5, which is the only thing blocks developers from using it on 4.0)

is that due to license difference between this reference source & the zlib stuff?

version numbers of assembly "System.ComponentModel.Annotations.d

The version numbers of the assembly "System.ComponentModel.Annotations.dll" contained in all nugget package versions higher than 4.1.0 are messed up. I.e. the nuget packages 4.4.0 and 4.4.0 Preview2 contains assembly with the version 4.2.0. Package 4.3.0 contains assembly with the version 4.1.1 etc.
In some circumstances, this is causing following error at the runtime:
"Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."

Repro steps:

  1. Create a .NET Standard 1.4 class library project.
  2. Use in some method of this library the following to deserialize some string:
    var deserializedresult = JsonConvert.DeserializeObject(someSerializedObject, typeof(SomeType));
  3. Create another .NET Framework 4.6.1 based class library (in my case this was an Azure FunctionsApp project)
  4. Create in this library a method calling your method in the .NET Standard 1.4 class library project (see 2.)
  5. I had installed packages Newtonsoft.Json 10.0.3, System.ComponentModel.Annotations 4.4.0 and System.ComponentModel.TypeConverter 4.3.0 in both projects.
    The result is "Could not load file or assembly" error as described before.

If I install the version 4.1.0 of the package System.ComponentModel.Annotations in both projects, everything work as expected.

X509Certificate2UI.SelectFromCollection is closing the application

dotnet/dotnet-api-docs#1327

On a given client, when accessing the X509Certificate2UI.SelectFromCollection function the application is closing without even going through the error handling.

I'm using .NET Framework 4.5, and the problem happens on a machine with Windows 10 Pro, which has about 8 valid certificates.

I tried to use [SecurityCritical] attribute.

If use flag X509SelectionFlag.MultiSelection then works, but the application needs just one. Using X509SelectionFlag.SingleSelection doesn't work, and the application terminates.

Bug in ASP.NET WebServices ServerProtocol.GenerateFaultString() method

There is bug in ServerProtocol.GenerateFaultString method at line 136

for (Exception inner = e; inner != null; inner = inner.InnerException) {
  string text = htmlEscapeMessage ? HttpUtility.HtmlEncode(inner.Message) : inner.Message;
  if (text.Length == 0) text = e.GetType().Name;

If there is a custom Exception class that overrides Message property and returns null value thrown in a web service method, the .NET Framework code throws NullReferenceException at text.Length expression because text variable has null value. Please fix it, it is supposed to return correct SOAP fault message. Note that it occurs when custom errors mode is on only.

Possible fix

if (String.IsNullOrEmpty(text)) text = e.GetType().Name;

Trace output

System.Web.Services.Asmx Error: 0 : Exception Details:
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Web.Services.Protocols.ServerProtocol.GenerateFaultString(Exception e, Boolean htmlEscapeMessage)
   at System.Web.Services.Protocols.Soap11ServerProtocolHelper.WriteFault(XmlWriter writer, SoapException soapException, HttpStatusCode statusCode)
   at System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream)
   at System.Web.Services.Protocols.WebServiceHandler.WriteException(Exception e)
   at System.Web.Services.Protocols.WebServiceHandler.Invoke()
   at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

Steps to reproduce. Create new (legacy) ASP.NET Web Service

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Reflection;
using System.Web.Services.Protocols;
using System.Xml;

namespace WebService1
{
    public class MyException : Exception
    {
        public MyException()
            : base(null)
        {
        }

        public override string Message
        {
            get
            {
                // the null Message causes exception in .NET framework method when translating exception into SoapMessage
                // ServerProtocol.GenerateFaultString(Exception e, Boolean htmlEscapeMessage), line 136
                //
                return null; 
            }
        }
    }

    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {
        [WebMethod]
        public string HelloWorld()
        {
            // ! Required setting in web.config to reproduce the issue !
            //  <system.web>
            //    <customErrors mode="On" />

            throw new MyException();
        }
    }
}

SOAP request

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/HelloWorld</Action>
  </s:Header>
  <s:Body>
    <HelloWorld xmlns:d3p1="http://schemas.datacontract.org/2004/07/" i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/" />
  </s:Body>
</s:Envelope>

SOAP response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" />
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Server was unable to process request. ---&gt; Object reference not set to an instance of an object.</faultstring>
      <detail />
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Missing Referencsource Files

Tagging @karelz

I've ported the 4.6 version of webforms into Mono and have noticed there are a bunch of missing files. It would be great if you could get them added so that I can have a more complete port.

Here's the list:

asp_clientfiles

SmartNav.htm
SmartNav.js
WebForms.js
WebUIValidation.js

System.Web.RegularExpressions

ALL

System.Configuration

Files

ConfigurationBuilder.cs
ConfigurationBuilderChain.cs
ConfigurationBuilderSettings.cs
ConfigurationBuildersSection.cs
ConfigurationStringConstants.cs
IInternalConfigurationBuilderHost.cs

Resources

System.Configuration.resx

System.Web

Files

Cache/AggregateEnumerator.cs
Cache/AspNetCache.cs
Cache/CacheCommon.cs
Cache/CacheGetOptions.cs
Cache/CacheInsertOptions.cs
Cache/CacheInternal.cs
Cache/CacheKeyComparer.cs
Cache/CacheMultiple.cs
Cache/CacheSingle.cs
Cache/CacheSizeMonitor.cs
Cache/CacheStoreProvider.cs
Cache/CacheExpires.cs
Cache/CacheUsage.cs
Cache/ExpiresBucket.cs
Cache/ExpiresEntityRef.cs
Cache/ExpiresEntry.cs
Cache/ExpiresPage.cs
Cache/ExpiresPageList.cs
Cache/UsageBucket.cs
Cache/UsageEntityRef.cs
Cache/UsageEntry.cs
Cache/UsageEntryLink.cs
Cache/UsagePage.cs
Cache/UsagePageList.cs
Globalization/IStringLocalizerProvider.cs
Globalization/ResourceFileStringLocalizerProvider.cs
Globalization/StringLocalizerProviders.cs
Hosting/ApplicationMonitors.cs
Hosting/ICustomLoaderHelperFunctions.cs
Hosting/CustomLoaderHelper.cs
Hosting/CustomLoaderAttribute.cs
ModelBinding/DisplayAttributeAdapter.cs
ModelBinding/MaxLengthAttributeAdapter.cs
ModelBinding/MinLengthAttributeAdapter.cs
State/ISessionStateModule.cs
Util/SecureHashCodeProvider.cs

Resources

GridView.js
DetailsView.js
DetailsView.js
TreeView.js
Menu.js

System.Web.ApplicationServices

Files

System.Web.Security/IMembershipHelper.cs
System.Web.UI/KeyedList.cs
System.Web.UI/KeyedListEnumerator.cs

System.Web.DynamicData

Files

Util/DisplayAttributeExtensions.cs
Util/StringLocalizerUtil.cs

Resources

System.Web.DynamicData.DynamicControl.bmp
System.Web.DynamicData.DynamicDataManager.bmp
System.Web.DynamicData.DynamicEntity.bmp
System.Web.DynamicData.DynamicHyperLink.bmp
System.Web.DynamicData.DynamicValidator.bmp
System.Web.Resources.DynamicDataResources.resx

System.Web.DataVisualization

Resources

System.Web.UI.DataVisualization.Charting.ChartControl.ico
System.Web.UI.DataVisualization.Charting.Design.resx
System.Web.UI.DataVisualization.Charting.SR.resx

System.Web.Extensions

Resources

System.Web.Resources.AtlasWeb.resx
System.Web.Resources.ScriptLibrary.Res.debug.resx
System.Web.Resources.ScriptLibrary.Res.resx

Reference Source is missing download link to 4.6.2 Source Code.

It seems when trying to download 4.6.2 source code For Windows 7 that it fails with it not being found. I want to look into the implementation of it for hints to some things that fail on me in C++ (like K32EnumProcessModules failing with ERROR_INVALID_HANDLE when I use something like GetCurrentProccess() for the handle). ๐Ÿค”

I am attempting to use that for checking for DLL injection that would terminate the process when it finds any dll not in a predefined process list (in this case not in a C++ vector. However it fails like so and seems to eventually crash.

SyndicationFeed - validator complains about the 'a10' namespace prefix

READ BEFORE FILING

Do not file issues regarding functionality of the .NET Framework. This repo
only tracks infrastructure issues regarding the following items:

For issues regarding functionality, please use the following resources:

Should ValidationContext constructor check that instance is null?

I am using CustomValidationAttribute to add my own validation logic for ASP.NET Web API models. It works fine in most cases, except when I send an empty request body. In that case, I get the following exception:

System.ArgumentNullException: Value cannot be null.
Parameter name: instance
   at System.ComponentModel.DataAnnotations.ValidationContext..ctor(Object instance, IServiceProvider serviceProvider, IDictionary`2 items)
   at System.Web.Http.Validation.Validators.DataAnnotationsModelValidator.Validate(ModelMetadata metadata, Object container)
   at System.Web.Http.Validation.DefaultBodyModelValidator.ShallowValidate(ModelMetadata metadata, ValidationContext validationContext, Object container, IEnumerable`1 validators)
   at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateNodeAndChildren(ModelMetadata metadata, ValidationContext validationContext, Object container, IEnumerable`1 validators)
   at System.Web.Http.Validation.DefaultBodyModelValidator.Validate(Object model, Type type, ModelMetadataProvider metadataProvider, HttpActionContext actionContext, String keyPrefix)
   at System.Web.Http.ModelBinding.FormatterParameterBinding.<ExecuteBindingAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.HttpActionBinding.<ExecuteBindingAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()

As you can see, the problem is that ValidationContext throws an ArgumentNullException in the constructor if instance is null.

I am wondering, is it correct behavior or not? Posting a request with an empty body can generate an exception in my server code. In turn, server returns 500 status code instead of 400.

System.Xaml is missing

The source for System.Xaml is missing from reference source.

As discussed in the Port System.XAML issue, having the .net framework reference source would allow the community to move forward with supporting xaml based scenarios, specifically the parsing of Workflow Foundation Xaml serialized documents.

.net 4.5.2 - w3p crash with .net web api

We've a problem with our .net web API 2 web services hosted on IIS-7 (windows server 2008 R2. net 4.5.2). Sometimes the w3p process crashes. We can see this from the server event viewer.

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/57/ROOT

Process ID: 7340

Exception: System.ArgumentException

Message: Value does not fall within the expected range.

StackTrace:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at System.Web.Hosting.IIS7WorkerRequest.GetUserToken()
at System.Web.HttpContext.get_ClientIdentityToken()
at System.Web.HttpContext.get_ImpersonationToken()
at System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
at System.Web.ThreadContext.EnterExecutionContext()
at System.Web.Hosting.AspNetHostExecutionContextManager.SetHostExecutionContext(HostExecutionContext hostExecutionContext)
at System.Threading.HostExecutionContextManager.SetHostExecutionContextInternal(HostExecutionContext hostContext)
at System.Threading.ExecutionContext.SetExecutionContext(ExecutionContext executionContext, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

We have logs for each method that could be called by clients, at the start and at the end of each methods. When the w3p crashes there is no log for our methods. It seems that the request fail before to arrive to the method or after to have processed the request.

TotalRowCount is off when using EF6 EntityDataSource + GridView

Hi,

I am not sure if that is right repo to file this bug, or may be it is not bug at all and I am just missing something.

I am using EF EntityDataSource with GridView and have autopage enabled. EDS is EntitySetName is set to a sql server view and I have AutoGenerateWhereClause="false"

My TotalRowCount is always off by some records, compared to query i can run by hand (ie select count(*) from ( select * from myview ) a ) and that is why when I click last page link in the pager it yields 0 records in the result and GridView do not render at all.

Have you ever see such behavior?

Obscenity filter artifacts

Issue while signing TPM protected keys.

Issue while signing the TPM protected keys.

  • Summary
    I can able to create the TPM protected key by passing the provider while creating the key below is the piece of code.
    CngKey.Create(CngAlgorithm.ECDsaP256, _keyName,
    new CngKeyCreationParameters { KeyCreationOptions = CngKeyCreationOptions.MachineKey,Provider = new CngProvider("Microsoft Platform Crypto Provider") });

I can able to create the TPM protected key and open the key as well. The problem is while signing the key. Since the algorithm group is set to RSA instead of ECDSA. This algorithm group is set based on the provider at this point it is setting the wrong algorithm group internally.

Solution:

If the algorithm group is set to appropriate group then the signing won't be a problem. Please update ASAP

Regarding adding a custom column in datareader

Hi,

I have a requirement to pull data from Excel file into a datareader.
M
Am able to achieve it but in addition to that I want to have a additional column which has auto increment record no based on no. Of records present in the Excel.

I can't datatable for this scenario because am getting huge data from Excel file which can't be loaded into a datatable and push it into database.

So while I had used Row_Number() in the Ms access query while pulling data from the file but it didn't worked for me.
Please suggest a approach so that it can solve my issue.

System.Security.Cryptography.Xml is missing

Files with types from the System.Security.Cryptography.Xml are missing. Interestingly enough, these files and types are visible on the Reference Source website, but not in this repository.

Having these files would be beneficial for Mono, since it could reuse some code that would make it more compatible with .NET Framework.

When use customer comparer on Intersect if hited will not continue.

https://github.com/Microsoft/referencesource/blob/7de0d30c7c5ef56ab60fee41fcdb50005d24979a/System.Core/System/Linq/Enumerable.cs#L763
class ClazzA
{
public int Int { get; set; }
public char Char { get; set; }
public string String { get; set; }
}
class ClazzAComparer : IEnumerable
{
public bool Equals(ClazzA x, ClazzA y)
{
return x != null & y != null ? ( x.String == y.String & x.Int == y.Int ) : x == null & y == null;
}
public int GetHashCode(ClazzA obj)
{
return obj.String.GetHashCode();
}
}
class MainClazz
{
static List las = new List{
new ClazzA { Int = 0, Char = 'a', String = 'str'},
new ClazzA { Int = 1, Char = 'a', String = 'str'},
new ClazzA { Int = 0, Char = 'b', String = 'str'},
new ClazzA { Int = 1, Char = 'b', String = 'str'}
};
void Main( )
{
ClazzAComparer cmp = new ClazzAComparer();
var ld = las.Distinct(cmp); // will be las[0] and las[1]
var li = las.Intersect(ld, cmp); // will be only las[0] and las[1] but I wish all of las
foreach (var i in li)
{
Console.WriteLine($"int {i.Int,-3}, char {i.Char,-3}, string {i.String,8}");
}
}
}

full demo project at https://github.com/toiiggww/IEnumerableIntersect

ResourceReader Cannot Read Resource File

We are in the process of migrating an application from the .NET Framework to .NET Core 2, but it looks like the ResourceReader cannot process a valid resx file.

When I create the ResourceReader I get

System.ArgumentException: Stream is not a valid resource file.
   at System.Resources.ResourceReader._ReadResources()
   at System.Resources.ResourceReader.ReadResources()
   at System.Resources.ResourceReader..ctor(String fileName)

Here is a gist to the contents of the resx file.

Missing function SevicePointManager.EnsureConfigurationLoaded

Source includes definition

partial class ServicePointManager

but this does not include the function EnsureConfigurationLoaded, which is presumably, defined in another partial class not in this repository.

Is there a way to get access to this code?

Missing System.Net.HttpClient source

Is there a particular reason why System.Net.HttpClient does not appear in ReferenceSource? Its source is available at dotnet/corefx, but since it is not available at ReferenceSource, I am having major difficulties debugging an issue that I have (where the SendAsync method changes the request.RequestUri when it shouldn't).

Concurrency Issue with MemoryCache when updating while deleting entry.

I'm working with the MemoryCache library and use the updatecallback delegate to update my cached object. The function OnTimeUpdate is called everytime an cached item expired.

private void OnItemUpdate(CacheEntryUpdateArguments args)

{

    var newItem = NewCopy();
    try
    {

        T _ = newItem.GetItemAsync(null, 
              Info.UpdateMillisecondsTimeout).Result;

 // Insert the new item 
        args.UpdatedCacheItem = new CacheItem(args.Key, newItem);
        args.UpdatedCacheItemPolicy = newItem.GetPolicy();
    }
    catch (Exception)
    {
        args.UpdatedCacheItem = new CacheItem(args.Key, this);
        args.UpdatedCacheItemPolicy = newItem.GetFailedPolicy();
    }
}

The issue is, if another thread is trying to remove the item when the updatecallBack is executed and a new item is calculated. Then when the new item will finish being recalculated, it will replace the expired cache item using args.UpdateCacheItem and add the entry to the cache that supposed to have been removed. Is there a way to make the 2 process coexist and have the remove function stopping the updateCallBack. I thought about using a lock statement to prevent the update while i remove the item, but i dont know if this is the right way to achieve what i want. thks.

Extending Validator in DataAnnotations

I need to perform certain custom validations. I want to use attribute based validations as we have in DataAnnotations but when a validation fails,I would like to return a custom exception object instead a string. Any tips/guidance on how can I extend it?

Issue with the order when setting properties of client

https://github.com/Microsoft/referencesource/blob/3b1eaf5203992df69de44c783a3eda37d3d4cd10/System/net/System/Net/mail/SmtpClient.cs#L267

If you set the credentials first and then say that you don't won't to use default credentials it sets the
existing credentials to null which causes an authentication error.
The Credentials property should not be overridden by setting UseDefaultCredentials to true which is by default.Choosing credentials should be done on sending.

Working code:

 let smtpClient = new SmtpClient()

 smtpClient.Host <- "smtp.gmail.com"
 smtpClient.Port <- 587
 smtpClient.EnableSsl <- true
 smtpClient.DeliveryMethod <- SmtpDeliveryMethod.Network

//right order
 smtpClient.UseDefaultCredentials <- false
 smtpClient.Credentials <- new System.Net.NetworkCredential("***********", "**********")

 use mail = new MailMessage()
 mail.Body <- "Hello from Mocosha"
 mail.Subject <- "Test"
 mail.From <- new MailAddress("foo", "foo")
 mail.To.Add(new MailAddress("bar"))

 smtpClient.Send(mail)

Not working code:

  let smtpClient = new SmtpClient()

  smtpClient.Host <- "smtp.gmail.com"
  smtpClient.Port <- 587
  smtpClient.EnableSsl <- true
  smtpClient.DeliveryMethod <- SmtpDeliveryMethod.Network

 //problematic lines
 //different order
  smtpClient.Credentials <- new System.Net.NetworkCredential("***********", "**********")
  smtpClient.UseDefaultCredentials <- false
  
  use mail = new MailMessage()
  mail.Body <- "Hello from Mocosha"
  mail.Subject <- "Test"
  mail.From <- new MailAddress("foo", "foo")
  mail.To.Add(new MailAddress("bar"))

  smtpClient.Send(mail)

GetSchema method missing in SqlConnection.cs

I see that the GetSchema method should be in System.Data.SqlClient.SqlConnection.cs per this documentation:

https://docs.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.getschema?view=netframework-4.7.1#System_Data_SqlClient_SqlConnection_GetSchema

However, I do not see GetSchema in the SqlConnection class in this repository or at referencesource.microsoft.com:

https://referencesource.microsoft.com/#System.Data/System/Data/SqlClient/SqlConnection.cs,48932d2b804ed473

Reference Source hashes have changed, so links no longer work

This issue originally filed by @IanKemp in here https://github.com/dotnet/corefx/issues/20690. I am moving it to the right repo

Go to http://referencesource.microsoft.com/
Scroll down to the Link to a type/member text and click the link corresponding to that text: http://referencesource.microsoft.com/mscorlib/a.html#1f55292c3174123d
Notice that you are not directed to the appropriate line of code as you would expect. Instead, you are shown a page containing the text Don't use this page directly, pass #symbolId to get redirected.
This seems to have occurred because the file hashes (I assume) that are used for this functionality have changed. This affects Visual Studio extensions like Ref12.

TryLoadRunnableWorkflowAsyncResult hides the InstanceCompleted error returned by the LoadInstance stored procedure

The ProcessSqlResult method in the TryLoadRunnableWorkflowAsyncResult class (https://github.com/Microsoft/referencesource/blob/master/System.Activities.DurableInstancing/System/Activities/DurableInstancing/TryLoadRunnableWorkflowAsyncResult.cs) does not return an exception returned by the call to the ProcessSqlResult base method (the LoadWorkflowAsyncResult.ProcessSqlResult method).

The effect is that errors such as System.Activities.DurableInstancing.CommandResult.InstanceCompleted that are returned by the [System.Activities.DurableInstancing].[LoadInstance] stored procedure (it is called by the [System.Activities.DurableInstancing].[TryLoadRunnableInstance] procedure) are not returned by the TryLoadRunnableWorkflowAsyncResult.ProcessSqlResult method. This leads to a situation where the WorkflowApplication.GetRunnableInstance method called by user's code throws InstanceNotReadyException instead of InstanceCompleteException.

The problem is the GetRunnableInstance method throws InstanceNotReadyException also when there are valid instances in the [System.Activities.DurableInstancing].RunnableInstances table. It is enough to have one invalid instance in the RunnableInstances table (e.g. an instance that has its IsCompleted field set to 1) to block retrieving process instances by the GetRunnableInstance method. Removing such invalid instance from the RunnableInstances table "unblocks" the other valid instances -- they are returned by the GetRunnableInstance method again.

I removed the "invalid" instance from the RunnableInstances table manually. Assuming that GetRunnableInstance method would throw the InstanceCompleteException there still would have to be some way remove such instance programatically from the runnable instances store. Perhaps the [System.Activities.DurableInstancing] stored procedures would need to do it in case when they find out an "invalid" instance in the RunnableInstances table.

In order to work this problem around I modified one of the [System.Activities.DurableInstancing] stored procedures -- [LoadInstance] -- to delete a completed instance from the RunnableInstances table.

Wrong absolute expiration is used

The utcAbsoluteExpiration variable is not used in the method overloading on line 422.

///
/// Inserts an object into the System.Web.Caching.Cache that has file or key dependencies and
/// expires at the value set in the parameter.
///
public void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration) {
DateTime utcAbsoluteExpiration = DateTimeUtil.ConvertToUniversalTime(absoluteExpiration);
ObjectCache.Insert(key, value, new CacheInsertOptions() {
Dependencies = dependencies,
AbsoluteExpiration = absoluteExpiration,
SlidingExpiration = slidingExpiration
});
}

Some symbols are missing for .NET Framework 4.7.2

OS: Window 10 Pro (April 2018 Update)

Running symchk with any of the following assemblies fails to download the symbols:

C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
C:\windows\microsoft.net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
C:\windows\microsoft.net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll
C:\windows\microsoft.net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\UIAutomationClient\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationClient.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\UIAutomationClientsideProviders\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationClientsideProviders.dll
C:\windows\microsoft.net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll

Example failure

For example:

symchk C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll /s srv*d:\Symbols*https://referencesource.microsoft.com/symbols

SYMCHK: mscorlib.dll         FAILED  - mscorlib.pdb mismatched or not found

SYMCHK: FAILED files = 1
SYMCHK: PASSED + IGNORED files = 0

Here's the verbose version:

symchk C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll /s srv*d:\Symbols*https://referencesource.microsoft.com/symbols /v

[SYMCHK] Searching for symbols to C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll in path srv*d:\Symbols*https://referencesource.microsoft.com/symbols
DBGHELP: Symbol Search Path: srv*d:\Symbols*https://referencesource.microsoft.com/symbols
[SYMCHK] Using search path "srv*d:\Symbols*https://referencesource.microsoft.com/symbols"
DBGHELP: No header for C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll.  Searching for image on disk
DBGHELP: C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll - OK
SYMSRV:  BYINDEX: 0x1
         d:\Symbols*https://referencesource.microsoft.com/symbols
         mscorlib.pdb
         C63A057CA32F41CC9A2496F80A3E50CF2
SYMSRV:  UNC: d:\Symbols\mscorlib.pdb\C63A057CA32F41CC9A2496F80A3E50CF2\mscorlib.pdb - path not found
SYMSRV:  UNC: d:\Symbols\mscorlib.pdb\C63A057CA32F41CC9A2496F80A3E50CF2\mscorlib.pd_ - path not found
SYMSRV:  UNC: d:\Symbols\mscorlib.pdb\C63A057CA32F41CC9A2496F80A3E50CF2\file.ptr - path not found
SYMSRV:  HTTPGET: /symbols/index2.txt
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/mscorlib.pdb/C63A057CA32F41CC9A2496F80A3E50CF2/mscorlib.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/mscorlib.pdb/C63A057CA32F41CC9A2496F80A3E50CF2/mscorlib.pd_
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/mscorlib.pdb/C63A057CA32F41CC9A2496F80A3E50CF2/file.ptr
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  RESULT: 0x80190194
DBGHELP: mscorlib - no symbols loaded
[SYMCHK] MODULE64 Info ----------------------
[SYMCHK] Struct size: 1680 bytes
[SYMCHK] Base: 0x79720000
[SYMCHK] Image size: 5644288 bytes
[SYMCHK] Date: 0x5ae8c225
[SYMCHK] Checksum: 0x0056edf2
[SYMCHK] NumSyms: 0
[SYMCHK] SymType: SymNone
[SYMCHK] ModName: mscorlib
[SYMCHK] ImageName: C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
[SYMCHK] LoadedImage: C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
[SYMCHK] PDB: ""
[SYMCHK] CV: RSDS
[SYMCHK] CV DWORD: 0x53445352
[SYMCHK] CV Data:  mscorlib.pdb
[SYMCHK] PDB Sig:  0
[SYMCHK] PDB7 Sig: {C63A057C-A32F-41CC-9A24-96F80A3E50CF}
[SYMCHK] Age: 2
[SYMCHK] PDB Matched:  TRUE
[SYMCHK] DBG Matched:  TRUE
[SYMCHK] Line nubmers: FALSE
[SYMCHK] Global syms:  FALSE
[SYMCHK] Type Info:    FALSE
[SYMCHK] ------------------------------------
SymbolCheckVersion  0x00000002
Result              0x00010001
DbgFilename         mscorlib.dbg
DbgTimeDateStamp    0x00000000
DbgSizeOfImage      0x00000000
DbgChecksum         0x00000000
PdbFilename         mscorlib.pdb
PdbSignature        {C63A057C-A32F-41CC-9A24-96F80A3E50CF}
PdbDbiAge           0x00000002
[SYMCHK] [ 0x00000000 - 0x00010001 ] Checked "C:\windows\microsoft.net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll"
SYMCHK: mscorlib.dll         FAILED  - mscorlib.pdb mismatched or not found

SYMCHK: FAILED files = 1
SYMCHK: PASSED + IGNORED files = 0

Example success

However, this does work for other assemblies, such as System.Configuration:

symchk C:\windows\microsoft.net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll /s srv*d:\Symbols*https://referencesource.microsoft.com/symbols

SYMCHK: FAILED files = 0
SYMCHK: PASSED + IGNORED files = 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.