Advertisement

05.05.2008 at 11:03AM PDT, ID: 23377148
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

SecurityException

Asked by heungpark in Test / Validation Development Software, C# Programming Language

I wrote a sampe test console application in C#, which copies the file to an another file. It works fine when I execute it on my local computer and also on a server. But, when I try to execute the program on the server from my local computer, I got the following error meesage: Have any idea to resolve this problem? It seems teh security issue to me.

Unhandled Exception: System.Security.SecurityException: Request for the permission of
type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5000.0, Culture=neutral,

PublicKeyToken=b77a5c561934e089 failed.

   at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet granted
Set, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permT
oken)
   at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken,
CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32
 unrestrictedOverride)
   at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, S
tackCrawlMark& stackMark)
   at System.Security.CodeAccessPermission.Demand()
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Bo
olean overwrite)
   at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite)
   at TestConsole.MainClass.Main(String[] args)Start Free Trial
1:
2:
3:
4:
5:
6:
7:
string strSourceFile = args[0];
string strDestFileName = strSourceFile.Substring(0, strSourceFile.Length - 4) + "_1.txt";
 
strSourceFile = Environment.CurrentDirectory + "\\" + strSourceFile;
strDestFileName = Environment.CurrentDirectory + "\\" + strDestFileName;
FileInfo fi = new FileInfo(strSourceFile);
fi.CopyTo(strDestFileName,true);
[+][-]05.07.2008 at 09:37AM PDT, ID: 21518104

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Test / Validation Development Software, C# Programming Language
Sign Up Now!
Solution Provided By: graye
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.02.2008 at 12:12PM PDT, ID: 22370488

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.07.2008 at 07:27PM PDT, ID: 22414220

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628