Click here to Skip to main content
15,923,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCan Asp.Net Page send audio stream content to Client from Page.Response? Pin
hectorpc20068-Nov-06 4:48
hectorpc20068-Nov-06 4:48 
QuestionWhy Session_End event doesn’t fire ? Pin
hectorpc20068-Nov-06 4:42
hectorpc20068-Nov-06 4:42 
AnswerRe: Why Session_End event doesn’t fire ? Pin
indianet8-Nov-06 10:50
indianet8-Nov-06 10:50 
AnswerRe: Why Session_End event doesn’t fire ? Pin
Mircea Grelus8-Nov-06 11:11
Mircea Grelus8-Nov-06 11:11 
GeneralRe: Why Session_End event doesn’t fire ? Pin
Guffa8-Nov-06 12:36
Guffa8-Nov-06 12:36 
AnswerRe: Why Session_End event doesn’t fire ? Pin
ednrgc9-Nov-06 3:12
ednrgc9-Nov-06 3:12 
Questionhow to set cookies Pin
Sandeep Akhare8-Nov-06 4:33
Sandeep Akhare8-Nov-06 4:33 
QuestionHow to resolve "The security ID structure is invalid " Pin
Raghu Alluri8-Nov-06 4:12
Raghu Alluri8-Nov-06 4:12 
Hi,
Here i am working with this code on Windows XP Professional 2002, with SP2 environment.

Same code is working in one system, and from the other system with the same environment its throwing "The security ID structure is invalid " error message.

Can any one help to resolve this problem.

Here is code...
//////////////////////////Code////////////////


try
{

string path;
//path = String.Empty;
//path = "C:\\SerTest";
path = String.Format("File://{0}", txtFolderPath.Text.ToString());
ADSSECURITYLib.ADsSecurity secUtil = new ADSSECURITYLib.ADsSecurity();
ActiveDs.SecurityDescriptor secDesc = (ActiveDs.SecurityDescriptor)secUtil.GetSecurityDescriptor((object)path);

ActiveDs.AccessControlList acl =(ActiveDs.AccessControlList)secDesc.DiscretionaryAcl;

///new
ActiveDs.AccessControlEntry ace1 = new ActiveDs.AccessControlEntry();
ace1.Trustee = txtUser.Text;

ace1.AccessMask = (int)ActiveDs.ADS_RIGHTS_ENUM.ADS_RIGHT_WRITE_OWNER;
ace1.AceType = (int)ActiveDs.ADS_ACETYPE_ENUM.ADS_ACETYPE_ACCESS_ALLOWED;
ace1.AceFlags = (int)ActiveDs.ADS_ACEFLAG_ENUM.ADS_ACEFLAG_INHERIT_ACE | (int)ActiveDs.ADS_ACEFLAG_ENUM.ADS_ACEFLAG_INHERIT_ONLY_ACE | 1;
acl.AddAce(ace1);

AccessControlEntry objAce2;
objAce2 = new AccessControlEntryClass();
objAce2.Trustee = txtUser.Text;
objAce2.AccessMask = (int)ActiveDs.ADS_RIGHTS_ENUM.ADS_RIGHT_GENERIC_ALL;
objAce2.AceType = (int)ActiveDs.ADS_ACETYPE_ENUM.ADS_ACETYPE_ACCESS_ALLOWED;
objAce2.AceFlags = (int)ActiveDs.ADS_ACEFLAG_ENUM.ADS_ACEFLAG_INHERIT_ACE | 1;
acl.AddAce(objAce2);

///new
secDesc.DiscretionaryAcl = acl;

secUtil.SetSecurityDescriptor(secDesc, path);

}
catch(Exception ex)
{
Response.Write("Error:-" + ex.Message);
}


//////////////////////////code end////////////

Regards
Raghu

Raghu Babu Alluir @ Satyma Computer, Hyderabad
QuestionSorting GridView according an IP column Pin
3nbar, A7mad A8-Nov-06 3:49
3nbar, A7mad A8-Nov-06 3:49 
AnswerRe: Sorting GridView according an IP column Pin
indianet8-Nov-06 10:58
indianet8-Nov-06 10:58 
GeneralRe: Sorting GridView according an IP column Pin
3nbar, A7mad A8-Nov-06 21:30
3nbar, A7mad A8-Nov-06 21:30 
QuestionProblem implementing Http Handler Pin
King Shez8-Nov-06 3:48
King Shez8-Nov-06 3:48 
QuestionProblem implementing Http Handler Pin
King Shez8-Nov-06 3:48
King Shez8-Nov-06 3:48 
AnswerRe: Problem implementing Http Handler Pin
indianet8-Nov-06 10:47
indianet8-Nov-06 10:47 
GeneralRe: Problem implementing Http Handler Pin
King Shez8-Nov-06 22:27
King Shez8-Nov-06 22:27 
QuestionHow to debit a Credit Card? Pin
matthias s.8-Nov-06 2:55
matthias s.8-Nov-06 2:55 
AnswerRe: How to debit a Credit Card? Pin
darkelv8-Nov-06 3:35
darkelv8-Nov-06 3:35 
QuestionMasked Edit Control in ASP.Net Pin
aaraaayen8-Nov-06 2:38
aaraaayen8-Nov-06 2:38 
AnswerRe: Masked Edit Control in ASP.Net Pin
ednrgc8-Nov-06 3:02
ednrgc8-Nov-06 3:02 
QuestionFont/Color DIalog box for ASP .NET 1.1 Pin
DGtech8-Nov-06 2:29
DGtech8-Nov-06 2:29 
QuestionPrint Queue problem Pin
kRites8-Nov-06 1:07
kRites8-Nov-06 1:07 
QuestionRotating a text using javascript Pin
anu818-Nov-06 0:56
anu818-Nov-06 0:56 
QuestionAJAX enabled ASP.NET 1.1 web controls Pin
Mitu Chand8-Nov-06 0:46
Mitu Chand8-Nov-06 0:46 
AnswerRe: AJAX enabled ASP.NET 1.1 web controls Pin
ednrgc8-Nov-06 9:00
ednrgc8-Nov-06 9:00 
Questiondropdown width size Pin
fmardani8-Nov-06 0:37
fmardani8-Nov-06 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.