In an XSD request for permission of type 'system.security.permissions.fileiopermission mscorlib version = 4.0.0.0

I check my request using the xxx.XSD file. In the xxx.XSD file, I also include another xsd file. When I try to use another xsd file, it shows below error.

A "permission request of type" system.security.permissions.fileiopermission mscorlib version = 4.0.0.0 cultrer = 'neutral, PublicToken =' zzzzzzzzzzzzzzz 'failed.

Note. I do not use the web.conig file. This is just a ClassLibraryProject in VSStudio2010. In the vb class file, I do an xsd check for the xml request before sending it to the service for a response.

+8
validation xsd
source share
1 answer

This problem itself is because Win 7 blocked the schema files due to copying them from a network location.

To unlock, go to the file and use “Properties”> “Unlock” or for several files that use Sysinternals streams the most for mass location change, as described in this blog post .

+12
source share

All Articles