Click here to Skip to main content
14,689,466 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: Procedure or function 'bla' expects parameter '@OrderNumber', which was not supplied. Pin
Richard Deeming28-Jan-20 2:04
mveRichard Deeming28-Jan-20 2:04 
QuestionDisplaying two images but code is for single image Pin
UDTWS27-Jan-20 20:33
MemberUDTWS27-Jan-20 20:33 
QuestionDynamically updating the site with progress bar Pin
iinfoque11127-Jan-20 8:46
Memberiinfoque11127-Jan-20 8:46 
QuestionRe: Dynamically updating the site with progress bar Pin
ZurdoDev27-Jan-20 10:00
mveZurdoDev27-Jan-20 10:00 
AnswerRe: Dynamically updating the site with progress bar Pin
iinfoque11127-Jan-20 19:58
Memberiinfoque11127-Jan-20 19:58 
GeneralRe: Dynamically updating the site with progress bar Pin
ZurdoDev28-Jan-20 1:26
mveZurdoDev28-Jan-20 1:26 
AnswerRe: Dynamically updating the site with progress bar Pin
David Mujica29-Jan-20 6:57
MemberDavid Mujica29-Jan-20 6:57 
QuestionHow to I fix "The method or operation is not implemented"? Pin
Member 1140330424-Jan-20 9:59
MemberMember 1140330424-Jan-20 9:59 
When I run my code, when I want to check the user who is logged in (this is a web application), the method called is having an error saying The method or operation is not implemented.

I need help to fix it by implementing the method.

Here is where the error occurs

try
{
	foreach (string caseNumber in userEnteredCaseNumberList)
	{
		EditCandidateCaseModel newCandidate = new EditCandidateCaseModel();
		newCandidate.CaseNbr = caseNumber;
		newCandidate.RequestorInfoID = Convert.ToInt32(requestorItem.Value);
		newCandidate.EntryStaffUserName = Helpers.Authentication.GetADEmail(); //Calls public static string GetADEmmail method
		await CandidateCaseController.PostCandidate(newCandidate);
	}
}
catch (Exception ex)//shows The method or operation is not implemented.
{
 string errorMsg = string.Format("An error has occured in {0}. \nException:\n{1}", "GetCasesButton_Click()", ex.Message);
 ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + errorMsg + "');", true);
}


Method that is called by line 8 with EntryStaffUserName. The error on on this method on line 7

public static string GetADEmail()
{
	string retVal = string.Empty;
        using (var context = new PrincipalContext(ContextType, "COURTS"))
        {
	         UserPrincipal user = new UserPrincipal(context);
                user = UserPrincipal.FindByIdentity(context, IdentityType, Environment.UserName);//this is where there is an issue. I can see UserName has a value
                retVal = user.EmailAddress;
        }
        return retVal;
}

AnswerRe: How to I fix "The method or operation is not implemented"? Pin
Blikkies26-Jan-20 22:48
professionalBlikkies26-Jan-20 22:48 
QuestionHow to use FCKeditorV2 instead of FreeTextBox ? Pin
Member 245846714-Jan-20 21:41
MemberMember 245846714-Jan-20 21:41 
SuggestionRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Richard Deeming15-Jan-20 1:51
mveRichard Deeming15-Jan-20 1:51 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx15-Jan-20 11:24
professionaljkirkerx15-Jan-20 11:24 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Member 245846715-Jan-20 16:17
MemberMember 245846715-Jan-20 16:17 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx16-Jan-20 8:26
professionaljkirkerx16-Jan-20 8:26 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Member 245846716-Jan-20 22:04
MemberMember 245846716-Jan-20 22:04 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx17-Jan-20 7:55
professionaljkirkerx17-Jan-20 7:55 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
Richard Deeming16-Jan-20 2:33
mveRichard Deeming16-Jan-20 2:33 
JokeRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
ZurdoDev16-Jan-20 4:55
mveZurdoDev16-Jan-20 4:55 
GeneralRe: How to use FCKeditorV2 instead of FreeTextBox ? Pin
jkirkerx16-Jan-20 8:34
professionaljkirkerx16-Jan-20 8:34 
Question.Net Core 2.2.4 - Getting IHostingEnvironment in Program.cs Main Pin
jkirkerx14-Jan-20 11:24
professionaljkirkerx14-Jan-20 11:24 
QuestionHtmlagilitypack -- I'm stuck Pin
Member 175325011-Jan-20 6:40
MemberMember 175325011-Jan-20 6:40 
QuestionHow do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
Member 1140330410-Jan-20 10:19
MemberMember 1140330410-Jan-20 10:19 
AnswerRe: How do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
Richard MacCutchan10-Jan-20 12:37
mveRichard MacCutchan10-Jan-20 12:37 
AnswerRe: How do I fix System.Net.Mail.SmtException: 'Cannot get IIS pickup directory' error? Pin
ZurdoDev11-Jan-20 10:03
mveZurdoDev11-Jan-20 10:03 
QuestionHow do I fix 'object' does not contain a definition for 'Value'? Pin
Member 1140330410-Jan-20 9:27
MemberMember 1140330410-Jan-20 9:27 

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.