CAS permissions problem

G

Guest

I have a line of code that looks at My.Application.Info.Version. When I hit
this line in the debugger, it passes just fine. After I publish the app, it
fails when run, saying I need FileIOPermission permissions. However, I've
explicitly included FileIoPermission in the CAS settings. Also, I have "Debug
this application with selected permission set" selected. So, why does it fail
in production, but not in the IDE and what more can I do to increase the
permissions for this?

Thanks for any help.
Barry
 
G

Guest

I should mention that I've also tried
My.Application.Deployment.CurrentVersion.
Same result.

Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top