EDN Admin
Well-known member
I have a small application developed for one of my relative.Its developed using c# , VS 2010, SQL server 2008 R2 Express Edition on Windows 7 64 bits.
When am creating a setup using VS setup wizard, I was able to deploy it on my system. But when I try installing it on some other system, it crashes.
Initially I felt it was because of different version of softare or some hardware change. But I tried to install on another which had same config as mine. Still it crashed.
Can anyone suggest me some tips to get this thing resolved...
Also, there is a problem when creating a folder with admin permissions. Its not working.
<span style=" public void SetSecurity(string dirName, string account, FileSystemRights rights, AccessControlType controlType)<br style="
<span style=" {<br style="
<span style=" // Get a FileSecurity object that represents the<span style=" current security settings.<br style="
<span style=" DirectorySecurity dSecurity = Directory.GetAccessControl(dirName);<br style="
<span style=" dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, controlType));<br style="
<span style=" // Set the new access settings.<br style="
<span style=" Directory.SetAccessControl(dirName, dSecurity);<br style="
<span style=" }
View the full article
When am creating a setup using VS setup wizard, I was able to deploy it on my system. But when I try installing it on some other system, it crashes.
Initially I felt it was because of different version of softare or some hardware change. But I tried to install on another which had same config as mine. Still it crashed.
Can anyone suggest me some tips to get this thing resolved...
Also, there is a problem when creating a folder with admin permissions. Its not working.
<span style=" public void SetSecurity(string dirName, string account, FileSystemRights rights, AccessControlType controlType)<br style="
<span style=" {<br style="
<span style=" // Get a FileSecurity object that represents the<span style=" current security settings.<br style="
<span style=" DirectorySecurity dSecurity = Directory.GetAccessControl(dirName);<br style="
<span style=" dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, controlType));<br style="
<span style=" // Set the new access settings.<br style="
<span style=" Directory.SetAccessControl(dirName, dSecurity);<br style="
<span style=" }
View the full article