Security Problem
-
Hi I got the following problem when i work with asp.net over internet(Run From Hosting Machine). Security Exception Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Regards R.Palanivel
r_palanivel83 10:01 4 Jan '06
-
Hi I got the following problem when i work with asp.net over internet(Run From Hosting Machine). Security Exception Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Regards R.Palanivel
r_palanivel83 10:01 4 Jan '06
Are you calling any unmanaged assemblies to do anything?
string Cheers = "Navaneeth!!" www.w3hearts.com
-
Are you calling any unmanaged assemblies to do anything?
string Cheers = "Navaneeth!!" www.w3hearts.com
Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem
r_palanivel83 10:01 4 Jan '06
-
Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem
r_palanivel83 10:01 4 Jan '06
First thing What are you trying to do ? Are you trying to all drives name into DropDownList it it ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem
r_palanivel83 10:01 4 Jan '06
try this one hope it will helps you :)
DriveInfo[] df = DriveInfo.GetDrives(); foreach (DriveInfo d in df) { ListItem li = new ListItem(); li.Text = d.Name; li.Value = d.Name; Views.Items.Add(li); }
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
First thing What are you trying to do ? Are you trying to all drives name into DropDownList it it ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
Yes u r correct. Actually i want to make "file chooser" to select multiple files at a time in asp.net. But we can choose only one file at a time by using tag. I ave done this and its working fine in my local machine but not in hosting server.
r_palanivel83 10:01 4 Jan '06
-
Yes u r correct. Actually i want to make "file chooser" to select multiple files at a time in asp.net. But we can choose only one file at a time by using tag. I ave done this and its working fine in my local machine but not in hosting server.
r_palanivel83 10:01 4 Jan '06
r_palanivel83 wrote:
Actually i want to make "file chooser" to select multiple files at a time in asp.net.
Didn't get :doh::doh: you want to dowlnload a file from server to client machine or upload a file from client to server ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
-
r_palanivel83 wrote:
Actually i want to make "file chooser" to select multiple files at a time in asp.net.
Didn't get :doh::doh: you want to dowlnload a file from server to client machine or upload a file from client to server ?
Thanks and Regards Sandeep If you want something you never had, do something you have never done!
Hi Sandeep I got a error in Hosting server only. Please see the error. My problem is the hosting server didnt allow me to execute System.IO.Directory.GetLogicalDrives(). Dont worry about code. its related with security problem.:) :)
r_palanivel83 10:01 4 Jan '06
-
Hi Sandeep I got a error in Hosting server only. Please see the error. My problem is the hosting server didnt allow me to execute System.IO.Directory.GetLogicalDrives(). Dont worry about code. its related with security problem.:) :)
r_palanivel83 10:01 4 Jan '06
Don't know but may be you don't have access/permission to open the drive please right click the drive do to properties ,security tab and see ASP.NET MACHINE ACCOUNT and Debugger is added with previlages but i am still confused what you have to do if you specify we can work it out
Thanks and Regards Sandeep If you want something you never had, do something you have never done!