Bot emulator-unable to debug - c#

I gave the correct AppId and Password. But still, I am getting this error
I also tried leaving a blank in place of AppId and Password. Any suggestions. I came across this issue several times in the past. But everytime time it worked magically after some time. Very inconsistent behavior.Any suggestions.
getting error
[14:58:55]Cannot post activity. Unauthorized.
[14:58:55]POST401directline/conversations//activities

I noticed an update notification on my emulator. I clicked on the notification, installed the update and restarted my emulator. Then it worked.

Related

"500: directline:postActivity"

I have created a sample Luis bot, I have tried for intent detection I have no errors in Bot it is running successfully in the browser. But I am getting an error in the emulator as
" 500:Directline.postActivity". I have rechecked the path for ngrok and also I have checked all my code with no errors. but still, I am getting the same error can anyone help me with this.

IOException: Unexpected end of Stream, the content may have already been read by another component

Until yesterday, everything worked fine, but today I have such a problem when submitting the form (submitted successfully) with this error.
After refreshing the page, everything is stabilized.
This problem are just in my laptop , in other pc are good
I had exactly the same problem, i don't know what exactly was. But I noticed that my app was doing Http Get calls with multipart/form-data.
I opened Chrome and I updated to latest version, then I restarted Chrome and all worked. Despite this, I think just restart Chrome solved the problem.

Error signing in to gmail this morning

I have a C# app using OpenPop, sending E-Mails through GMAIL.
This app has been working for the last few years, without a problem, and the last EMAIL I got from it was 8 hours ago.
Now I get an 'InvalidLoginException' error when I try to log in. I logged in normally to my account, even tried to change passwords but I still get this same message.
Following previous tips I tried to change the login line from
pop3Client.Authenticate(EMAIL_ADDRESS, ACCOUNT_PASSWORD) to
pop3Client.Authenticate(EMAIL_ADDRESS, ACCOUNT_PASSWORD, AuthenticationMethod.UsernameAndPassword)
But I still get the same message.
Anyone knows what could be wrong?

How to fix "This page can't be displayed" error in ASP.NET?

I was debugging a localhost asp.net and I have made some very minor code changes and ran it again and now I get an error I have never gotten before. In nice big blue letters it tells me "This page can't be displayed".
Apart from taking everything to forumula, what do you think would cause this error and how would I go about fixing it? It offers a button that says "Fix connection problems", but this is a localhost browser, so there are no connection, really. I clicked the button anyway and it did not offer any solution. I also refreshed the page, as suggested and it did nothing.
I test my localhost in the browser and it is working.
What do you think?
If it is functioning properly for you when debugging on local host, then I would assume it is a path/file resole issue. Trying doing what was mentioned earlier, and debugging it. That is why your localhost test works, but when placed on the server for the live version, it fumbles. I do not see any other reason that may cause this. Yes, it could be a browser issue, but is not really anything specific to conclude that. What were the changes you made? Is there a way you can post the code, or some of it?
I found the offensive part of code.
The code does a check on the URL and modifies it to make sure it is correct. This messes up the localhost url. The same if statement that checks for characters in the URL now also checks that string to see if there is a "localhost" and then side-steps the code.
I had the same problem. I fixed it by next steps:
stop debug
delete solution (I think this point is optional)
get version from TFS (this point is optional with previous ;-) )
close VS
delete custom IISExpress config files in c:\Users\\Documents\IISExpress (delete whole folder)
restart computer
start VS
start Debug
Application is running.
I am using Visual Studio 2017 and I had a similar problem. I tried #Vojta Novák's instructions to no avail.
However, I did find a solution that works for me.
Right-click on the web project, select "Properties" and select the "Web" tab on the properties. Change the port number in the Project Url and click [Create Virtual Directory]. Save and run the project.
I tried deleting the IIS Express configuration folder, but it seems like no matter what I do, if I try to run the web app under the port number it was on originally, I get an error.
What is even more baffling is the fact that I only could reproduce the error when browsing the web app with IE. With Chrome, it works fine.
I get this error sometimes after I publish. I just add an empty line to my web.config. Then run the app. It now works. Then stop and undo my change to my web.config.

Troubleshooting intermittent "No OpenID endpoint found" messages with Google and DotNetOpenAuth

I've been troubleshooting this one off and on for the past week. I've got a site using relying party MVC code from the DotNetOpenAuth project. I've been using this since 2009.
Recently, the Google logins have been failing. I'd say about 80% of the time the Google login works fine. So the intermittent nature makes this hard to diagnose.
Here's what I've tried:
Of course I've verified that the openid_identifier is using the correct URL ( https://www.google.com/accounts/o8/id )
I've updated to the latest release (DotNetOpenAuth 3.4).
I've tried adding default proxy settings as per this answer.
I've extended the timeout settings and even reduced memory on SQL to give IIS more RAM as this answer suggests.
I've added logging to every request and error to see if I could get any valuable information. This doesn't tell me much.
I've watched the requests/responses with Fiddler to see if I could spot anything.
I've tested my Google login on StackOverflow a number of times on the off chance that this is actually a problem with Google. And it's been working every time so far.
Any ideas?
UPDATE
In effort to pinpoint the problem I changed the code on my site a bit. Rather than doing this all on one line...
openid.CreateRequest(Request.Form["openid_identifier"]).RedirectingResponse.AsActionResult();
I broke it up into sections with logging in between...
MvcApplication.Logger.Info("Loading... " + Request.Form["openid_identifier"]);
var request = openid.CreateRequest(Request.Form["openid_identifier"]);
var redirect = request.RedirectingResponse;
MvcApplication.Logger.Info("Status... " + redirect.Status);
if (redirect.Status.ToString().ToLower() != "found")
{
MvcApplication.Logger.Error("Details... " + redirect.Body);
}
return redirect.AsActionResult();
So I'll be waiting for the next error.
I figured it out. This was being caused by New Relic. I'm not sure exactly how (or why it was intermittent) but that's what it was. New Relic automatically instruments your pages in certain ways so maybe it interfered with the request to the OpenID provider.
I looked back at the timeframe in which this all started and found that it was right around the time I installed New Relic on the server. So I uninstalled it, restarted IIS, and let the site go for 48 hours without it. I didn't get a single error in that time. So a couple hours ago I reinstalled it and sure enough I was able to duplicate the problem.
Anyway, I've removed New Relic again and all is good. I'll notify them about this.

Categories

Resources