OpenRasta project keeps throwing InvalidOperationException - http

This happens when the project is running... when we are on a page (for example /Project) everything renders fine... but at random time (I can't figure out when it happens) it just gets thrown.
This is the stacktrace
at System.Web.HttpApplication.ThrowIfEventBindingDisallowed()
at System.Web.HttpApplication.RemoveSyncEventHookup(Object key, Delegate handler,
RequestNotification notification, Boolean isPostNotification)
at System.Web.HttpApplication.remove_PostResolveRequestCache(EventHandler value)
at OpenRasta.Hosting.AspNet.OpenRastaModule.<>c__DisplayClass2.<Init>b__1() in c:\TeamCity\buildAgent\work\446ececd36f5f871\src\OpenRasta.Hosting.AspNet\OpenRastaModule.cs:line 75
at OpenRasta.Hosting.AspNet.OpenRastaModule.Dispose() in c:\TeamCity\buildAgent\work\446ececd36f5f871\src\OpenRasta.Hosting.AspNet\OpenRastaModule.cs:line 66
at System.Web.HttpApplication.DisposeInternal()
I hope someone can clarify what I'm doing wrong :)

That'd be because you're on master and that's including some silly code that tries to cleanup stuff that shouldn't be.
Expect a commit this afternoon that'll fix that.

Related

Strange ZQuery behavior

I'm using Zeos and SQLite3 DB in Delphi
ZQuery2.Close;
ZQuery2.SQL.Clear;
ZQuery2.SQL.Add('SELECT * FROM users WHERE un = ' + QuotedStr( UserName ) );
ZQuery2.Open;
OutputDebugString(PWideChar( ZQuery2.FieldDefList.CommaText )); // log : id,un,pw
OutputDebugString(PWideChar(ZQuery2.FieldByName('pw').AsString)); //causes error sometimes
the code is working but sometimes I get the following error message
Exception class EDatabaseError with message 'ZQuery2:Field'pw' not found'.
This is odd because a field of a dataset shouldn't just disappear while the app is in the middle of running, especially if other fields are still operating normally. So, I would suspect something like a memory overwrite being the cause.
Memory overwrites usually happen when something is written to the wrong place in memory, overwriting what is there, usually because of an incorrect pointer value or a so-called "buffer overrun" where the writing operation carries on beyond where is should stop. Usually, the pointer value is so wildly wrong that the OS can detect it and raise an AV, but sometimes it is less obvious.
Delphi's memory manager has a 'full debug mode' which adds special checks for this condition, see here.
I suggest you enable full debug mode as per the linked document and wait for the exception to occur.

Got the "My test app isn't responding right now. Try again soon." error message even a clean start from Google Assistant Simulator

I am still quite new to this topic, so sorry if I didn't provide enough information.
For the first time, I copoed everything from https://developers.google.com/actions/dialogflow/first-app to learn about it, which works great.
After, I tried to create my own one, then at the end, I got this message "My test app isn't responding right now. Try again soon." from https://console.actions.google.com/project/[[PROJECT-ID]]/simulator/.
Therefore, I tried to delete everything and make a complete new start, including all the projects on https://console.actions.google.com/ and https://console.dialogflow.com.
I then copied the exact same thing from https://developers.google.com/actions/dialogflow/first-app again, but this time, I still got "My test app isn't responding right now. Try again soon." from https://console.actions.google.com/project/[[PROJECT-ID]]/simulator/.
I tried to look at firebase log, no error indeed
I tried to use the web demo from the integration tab, everything works (which means the server side code or the connection have no problem) as expected, firebase also logged the request.
I tried to use a different browser (chrome -> firefox) still not working.
Here is the response code from the Google Assistant Simulator (its kinda nothing):
{
"audioResponse": "//NExAARqQ...",
"conversationToken": "GidzaW11bG...",
"response": "My test app isn't responding right now. Try again soon.",
"visualResponse": {
"visualElements": []
}
}
And here is the debug message (yes, its nothing in there, so I'm stuck):
{
"agentToAssistantDebug": {},
"assistantToAgentDebug": {}
}
Any help would be appreciated. Thanks!
In Actions Console..
Go to Develop -> Invocation
Set a display name (Eg: Hello World) and click Save
Go to Test and type "Talk to Hello World"
Fixed the issue for me.
Make sure your Actions on Google project has a name.
I spent almost 2 days scratching my head on this. Just go to Activity controls of the relevant google account (The account that you are using for the simulator) and turn on all those switches (You may leave out Youtube related stuff).
And.....Voila, it works!
Usually, these are turned off for non-personal accounts.
Faced the same issue when I tried to change the language of app to a locale.
Try the following,
Check if the welcome intent and fallback intents have responses and training phrases
All contexts are mapped
Disable and enable testing
At least in my case, I've added 'Suggestions' for an ending scene, like below:
You can see the error on the right side log of 'Test' page:
Fix is to remove 'Suggestions' in ending scene.
I had the exact same issue and after struggling for hours I found the stupid error on my side: In my Dialogflow Agent settings, I accidentally turned on the V2 API. So my firebase function kept complaining about null intent. Hope this help.

Twilio access POST data on page .net

I am doing my best to try and get a .net webforms twilio app up and running but I am stuck at one part which I haven't found an answer too throughout all the blog posts and tutorials I have read. I have found numerous stack overflow questions but no real answer yet.
Basically: I have an .aspx page that executes: var call = client.InitiateOutboundCall(options);,
which has the url set as an ashx page that has:
twiml.BeginGather(new {
action = "http://sydheller.com/default.aspx",
numDigits = "1"});
twiml.Say("Please enter your PIN");
twiml.Hangup();
and then on that default.aspx in the Page_Load I have:
if (Request.Form["Digits"] != null)
{
string digits = Request.Form["Digits"];
digitsLabel.Text = digits;
}
When I click the button to make the call, I get the call and complete it and it hangs up but nothing happens on my page. I assume I need to use AJAX somehow but I am not sure how to write an ajax request to get information from something that the twilio api/ashx page is posting back.
Does that make sense?
This is driving me crazy and I have a feeling that it is something not particularly complicated that I just don't know and cant figure out.
I would really appreciate any help anyone could throw my way!
Thank you so much in advance,
Syd

What is result when the ResumeBookmark gets a timeout?

I'm trying to check the result in the MSDM when the resuming bookmark gets a timeout, and I couldn't find a clear answer.
http://msdn.microsoft.com/en-us/library/ee149798.aspx
BookmarkResumptionResult rtv = workflowApplication.ResumeBookmark(bookmarkName, value, bookmarkResumptionTimeout);
Should it be NotFound or NotReady?
Thanks!
I was unable to find documentation but looking into reflector System.TimeoutException will be thrown.

CreateIndexBuffer() crashes,some kind of pointer error.What could be causing this?

I get
Unhandled exception at 0x004687b4 in D3DTest.exe: 0xC0000005: Access violation reading location 0x00000000.
the error is at:
m_d3dDevice->CreateIndexBuffer(sizeof(short)*CHUNK_PRIMITIVES*3,D3DUSAGE_WRITEONLY, D3DFMT_INDEX16, D3DPOOL_MANAGED, &m_ib, NULL);
Now I checked m_d3dDevice and it's all OK,everything works properly if I don't create the buffer.
m_ib is also propery created before being used in that function:
LPDIRECT3DVERTEXBUFFER9 m_vb;
m_vb = NULL;
I don't think anything else could be causing the problem.I'm confused.
Try enabling the debug runtime from the DirectX control panel that will show you warnings and errors if you have any and always check the return codes from DX functions.
Showing the code for the whole function that creates the index buffer would help too.

Resources