I'm using windows 8 and visual studio 2012, and i had some strange problems related to permission.
If visual studio runs under non-administrator rights, it cannot do some compile tasks like "Register for COM interop"
I use the ScrollViewer control in a windows 8 metro app in order to zoom in/out an image.
The problem now is, that it is possible to zoom in the image untill you almost can't zoom out again(because the image gets so small).
I've tried MinWidth and MinHeigt on the ScrollViewer and on the image, but it didn't work.
After some time i found the MinZoomFactor of the ScrollViewer, and this now works.
It was just not obvious to me...
I have .net 3.5 program where i load some assemblies from a network share via reflection. Now i've got the following exception: "That assembly does not allow partially trusted callers''(Detailed message below).
The calling assembly(.exe) is local. This .exe loads the assembly from network via reflection. The assembly from the network share then has a reference on a third assembly which is located beneath the .exe. (Hard to explain, image will do better...)
The reason for this failure is the .net security. It doesn't allow the MyLib.dll to be loaded, because the calling assembly is located on a network share and is signed with a strong name.
Solution 1, caspol.exe
Allow all code to be executed.
This might be dangerous, but if you're desperate it could be a solution.
Solution 2, no signing
If you remove the signature from MyLib2.dll, everything works.
Solution 3, set attribute AllowPartiallyTrustedCallers
If you set the AllowPartiallyTrustedCallers in the AssemblyInfo.cs of the signed assembly, everything works.