Click here to Skip to main content
15,914,246 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I am still here Pin
PlayByTheRules16-Jul-06 23:14
PlayByTheRules16-Jul-06 23:14 
GeneralRe: I am still here [modified] Pin
rijz17-Jul-06 1:03
rijz17-Jul-06 1:03 
GeneralRe: I am still here Pin
Colin Angus Mackay3-Jan-07 0:54
Colin Angus Mackay3-Jan-07 0:54 
GeneralRe: Please help... i'm still waiting... Pin
PlayByTheRules16-Jul-06 23:12
PlayByTheRules16-Jul-06 23:12 
GeneralRe: Please help... i'm still waiting... Pin
rijz17-Jul-06 2:47
rijz17-Jul-06 2:47 
GeneralRe: Please help... i'm still waiting... Pin
J4amieC17-Jul-06 3:23
J4amieC17-Jul-06 3:23 
AnswerRe: An operations error occurred.. pls help Pin
minhpc_bk16-Jul-06 23:04
minhpc_bk16-Jul-06 23:04 
GeneralRe: An operations error occurred.. pls help [modified] Pin
rijz17-Jul-06 1:30
rijz17-Jul-06 1:30 
Thanks alot for helping me out...

I will clarify my question. I am very much new n young to this field.... so, I'm not sure if I can explain it clearly.

I am using the "Windows" Authentication mode
In the web.config file the mode is set to
<authentication mode="Windows">
<identity impersonate="true">
as well as
<authorization>
<allow users="*">
<deny users="?">

In the IIS, the authentication method is set as "Integrated Windows Authentication".
.....................................
Here is the code that is throwing errors while running the application in "Mozilla" browser.

public static string getADSILoginName(string userName,string filter,string keyName)
{
string dName=ConfigurationSettings.AppSettings["domainName"];
string appPath;
appPath = "LDAP://" + dName;
DirectoryEntry entry = null;
entry = new DirectoryEntry(appPath);
DirectorySearcher getSearcher = new DirectorySearcher(entry);
getSearcher.Filter = "("+filter+"=" + userName + ")";
try
{
foreach(SearchResult result in getSearcher.FindAll())
{
DirectoryEntry dirEntry = result.GetDirectoryEntry();
foreach(string key in dirEntry.Properties.PropertyNames)
{
foreach( object propVal in dirEntry.Properties[key] )
{
if(key == keyName)
{
return Convert.ToString(propVal);
}
}
}
}
}
catch(Exception ex)

{
throw(ex);
}
return "";
}
............................................

Here is the exact error message

An operations error occurred
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: An operations error occurred

Source Error:

Line 463: catch(Exception ex)
Line 464: {
Line 465: throw(ex);
Line 466: }
Line 467: return "";
.....................................


I am not sure if I have made it clear...

Thanks & regards
rijz

-- modified at 7:34 Monday 17th July, 2006
GeneralRe: An operations error occurred.. pls help Pin
minhpc_bk17-Jul-06 3:49
minhpc_bk17-Jul-06 3:49 
GeneralRe: An operations error occurred.. pls help [modified] Pin
rijjjesh17-Jul-06 18:19
rijjjesh17-Jul-06 18:19 
GeneralRe: An operations error occurred.. pls help Pin
minhpc_bk17-Jul-06 20:31
minhpc_bk17-Jul-06 20:31 
GeneralRe: An operations error occurred.. pls help [modified] Pin
rijjjesh17-Jul-06 21:32
rijjjesh17-Jul-06 21:32 
QuestionWeb Page Splitter Control Pin
John Harrison Paul16-Jul-06 16:17
John Harrison Paul16-Jul-06 16:17 
AnswerRe: Web Page Splitter Control Pin
minhpc_bk16-Jul-06 20:04
minhpc_bk16-Jul-06 20:04 
GeneralRe: Web Page Splitter Control Pin
John Harrison Paul16-Jul-06 23:02
John Harrison Paul16-Jul-06 23:02 
GeneralRe: Web Page Splitter Control Pin
minhpc_bk16-Jul-06 23:10
minhpc_bk16-Jul-06 23:10 
GeneralRe: Web Page Splitter Control Pin
John Harrison Paul16-Jul-06 23:18
John Harrison Paul16-Jul-06 23:18 
GeneralRe: Web Page Splitter Control Pin
minhpc_bk16-Jul-06 23:33
minhpc_bk16-Jul-06 23:33 
GeneralRe: Web Page Splitter Control Pin
John Harrison Paul16-Jul-06 23:51
John Harrison Paul16-Jul-06 23:51 
QuestionDropDownList SelectedIndexChanged event. Pin
WebMaster16-Jul-06 15:47
WebMaster16-Jul-06 15:47 
AnswerRe: DropDownList SelectedIndexChanged event. Pin
postmaster@programmingknowledge.com16-Jul-06 17:30
postmaster@programmingknowledge.com16-Jul-06 17:30 
AnswerRe: DropDownList SelectedIndexChanged event. Pin
Pradipta Basu16-Jul-06 19:38
Pradipta Basu16-Jul-06 19:38 
QuestionPreferred way of returning data method Pin
MrJJKoolJ16-Jul-06 14:26
MrJJKoolJ16-Jul-06 14:26 
AnswerRe: Preferred way of returning data method Pin
eggsovereasy17-Jul-06 4:02
eggsovereasy17-Jul-06 4:02 
QuestionPersisting data through a "Postback" Pin
WebMaster16-Jul-06 11:00
WebMaster16-Jul-06 11:00 

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.