Click here to Skip to main content
14,327,888 members
   

ASP.NET

 
AnswerRe: Having Issues to logging users to active directory through web form Pin
ZurdoDev15-Aug-19 7:46
professionalZurdoDev15-Aug-19 7:46 
GeneralRe: Having Issues to logging users to active directory through web form Pin
samflex16-Aug-19 3:50
membersamflex16-Aug-19 3:50 
GeneralRe: Having Issues to logging users to active directory through web form Pin
ZurdoDev16-Aug-19 3:53
professionalZurdoDev16-Aug-19 3:53 
AnswerRe: Having Issues to logging users to active directory through web form Pin
Nathan Minier16-Aug-19 8:29
professionalNathan Minier16-Aug-19 8:29 
QuestionHow to Import and Export Excel File in ASP.NET MVC? Pin
Member 1455824213-Aug-19 8:41
memberMember 1455824213-Aug-19 8:41 
AnswerRe: How to Import and Export Excel File in ASP.NET MVC? Pin
ZurdoDev13-Aug-19 10:00
professionalZurdoDev13-Aug-19 10:00 
AnswerRe: How to Import and Export Excel File in ASP.NET MVC? Pin
Vincent Maverick Durano13-Aug-19 11:17
mveVincent Maverick Durano13-Aug-19 11:17 
GeneralRe: How to Import and Export Excel File in ASP.NET MVC? Pin
Member 1455824214-Aug-19 8:49
memberMember 1455824214-Aug-19 8:49 
QuestionSending Email using ASP.NET(MVC) SMTP Pin
Anandkumar Prajapati11-Aug-19 18:54
professionalAnandkumar Prajapati11-Aug-19 18:54 
AnswerRe: Sending Email using ASP.NET(MVC) SMTP Pin
Richard MacCutchan11-Aug-19 21:25
protectorRichard MacCutchan11-Aug-19 21:25 
GeneralRe: Sending Email using ASP.NET(MVC) SMTP Pin
Anandkumar Prajapati20-Aug-19 21:13
professionalAnandkumar Prajapati20-Aug-19 21:13 
GeneralRe: Sending Email using ASP.NET(MVC) SMTP Pin
valycarrolito29-Aug-19 12:53
membervalycarrolito29-Aug-19 12:53 
QuestionWhy can't I Publish web site error warn ? Pin
Member 24584676-Aug-19 22:33
memberMember 24584676-Aug-19 22:33 
AnswerRe: Why can't I Publish web site error warn ? Pin
jkirkerx8-Aug-19 14:15
professionaljkirkerx8-Aug-19 14:15 
AnswerRe: Why can't I Publish web site error warn ? Pin
Member 24584678-Aug-19 18:55
memberMember 24584678-Aug-19 18:55 
GeneralRe: Why can't I Publish web site error warn ? Pin
jkirkerx9-Aug-19 10:36
professionaljkirkerx9-Aug-19 10:36 
GeneralRe: Why can't I Publish web site error warn ? Pin
Member 245846711-Aug-19 18:27
memberMember 245846711-Aug-19 18:27 
AnswerMessage Closed Pin
6-Aug-19 1:36
memberabhinavshashtri156-Aug-19 1:36 
AnswerMessage Closed Pin
6-Aug-19 1:35
memberabhinavshashtri156-Aug-19 1:35 
QuestionASP.net postback url problem Pin
UDTWS5-Aug-19 1:26
memberUDTWS5-Aug-19 1:26 
AnswerRe: ASP.net postback url problem Pin
Vincent Maverick Durano5-Aug-19 6:55
mveVincent Maverick Durano5-Aug-19 6:55 
AnswerRe: ASP.net postback url problem Pin
jkirkerx5-Aug-19 12:48
professionaljkirkerx5-Aug-19 12:48 
QuestionServer-side Blazor and IE11 Pin
MSBassSinger2-Aug-19 5:57
professionalMSBassSinger2-Aug-19 5:57 
Question.Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
jkirkerx1-Aug-19 12:28
professionaljkirkerx1-Aug-19 12:28 
AnswerRe: .Net Core V2.2 - Sending email or gmail using OAuth2 or secure settings in Gmail in the background without browser auth Pin
Afzaal Ahmad Zeeshan1-Aug-19 14:37
mveAfzaal Ahmad Zeeshan1-Aug-19 14:37 
Quote:
Using Nuget MailKit/MimeKit, it doesn't register with .Net Core V2.2
Perhaps some other thing is causing this issue, the dependencies should be restored properly. Can you try removing this dependency to see if that works; oh and do not forget to drill down the dependency tree to see what is actual root cause for the yellow sign.

Check this article for more on that, ASP.NET Core 2.2 - SMTP EmailSender Implementation - KenHaggerty.Com , he was able to have this setup in ASP.NET Core 2.2.

Secondly for the Gmail API, I believe you are missing out the GmailSend scope,
var googleCredentials = await GoogleWebAuthorizationBroker.AuthorizeAsync(secrets, new[] { GmailService.Scope.MailGoogleCom }, email, CancellationToken.None);
This should include the GmailSend scope,
var googleCredentials = await GoogleWebAuthorizationBroker.AuthorizeAsync(secrets, new[] { GmailService.Scope.MailGoogleCom, GmailService.Scope.GmailSend }, email, CancellationToken.None);
See this another thread on CodeProject that discusses this, Send email using gmail api in C#.

Lastly, it is always a good practice to try something as small as a hello world program. You can get started for a hello world program for Gmail API from here, .NET Quickstart  |  Gmail API  |  Google Developers, and then extend the program by reading the references and the SDK API, gmail: Main Page
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

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.