Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no get_Evidence in the stacktrace! #6756

Open
poizan42 opened this issue Jul 31, 2018 · 3 comments
Open

There is no get_Evidence in the stacktrace! #6756

poizan42 opened this issue Jul 31, 2018 · 3 comments
Labels
app-compat/subsvc dotnet-framework/svc Pri2 product-feedback Indicates issues that are related to product issues, not docs [org][type][category]

Comments

@poizan42
Copy link

At least on .NET 4.7.2 (release 461814)

Here is an example of a stacktrace from a System.Runtime.Serialization.SerializationException caused by the mentioned issue.

   at System.AppDomain.GetHostEvidence(Type type)
   at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
   at System.Security.Policy.Evidence.GenerateHostEvidence(Type type, Boolean hostCanGenerate)
   at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
   at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
   at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
   at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
   at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
   at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
   at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
   at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at System.Data.SqlClient.SqlConnection..cctor()

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@JRAlexander JRAlexander added Area - .NET Framework Guide product-feedback Indicates issues that are related to product issues, not docs [org][type][category] labels Aug 1, 2018
@mairaw
Copy link
Contributor

mairaw commented Aug 13, 2018

@rpetrusha @chlowell can you help with this issue? This is in the migration guide path but there's no TOC for this.

@dotnet-bot
Copy link
Contributor

This issue has been closed as part of the issue backlog grooming process outlined in #22351.

That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.

@dotnet-bot dotnet-bot added the won't fix Issues that were closed as part of automated backlog grooming label Jan 25, 2021
@poizan42
Copy link
Author

poizan42 commented Jan 25, 2021

This issue is still present in the documentation as far as I can tell. AppDomainEvidenceFactory.GenerateEvidence calls AppDomain.GetHostEvidence in the not-default-appdomain case, so there won't be a call to the getter for Evidence when an exception is thrown on the cross-appdomain call.

@sharwell sharwell removed the won't fix Issues that were closed as part of automated backlog grooming label Jan 26, 2021
@sharwell sharwell reopened this Jan 26, 2021
@gewarren gewarren removed the P2 label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-compat/subsvc dotnet-framework/svc Pri2 product-feedback Indicates issues that are related to product issues, not docs [org][type][category]
Projects
None yet
Development

No branches or pull requests

9 participants