Facebook popup auth error - c#

I have the following code
FB.init({
appId: '999999999999',
status: true,
cookie: true,
xfbml: true,
channelURL: 'http://mydomain.com/channel.aspx',
oauth: true
});
FB.login(function (response) {
...
}
All works great in Chrome, FF, Opera on Macs and PC's, however in IE9 on a PC I get the following error on the popup
And in the developer tools I get a error here: SCRIPT70: Permission denied. Can anyone shed any light into this?

I think it's a problem when you start debugging. Just close IE, open again the web page and see if the permission denied error happens again.
If you start debugging the error will be thrown again.

I have no idea if this is related to your problem, but I had some very specific security issues working with FB authentication (only on IE) which were solved by adding a P3P header to the HTTP response. More details can be found here or here.

I will have to answer my own question here in case it affects anyone else.
After extensive searching and playing with P3P headers nothing worked. However I started looking at other FB apps and they all suffered the same problem on IE9. This led me to believe that it could actually be my machine.
I tested my app on two other VMWares running ie9 and on my laptop and everything worked as expected. Therefore there is something wrong with my setup, pass what it is....

Related

Issue while enable SSL in NopCommerce v3.80

I have been using nop commerce v3.80.
They have provide an option to enable ssl in admin.
While enabling ssl in admin->store->enablessl option
I have been getting error like
This page isn’t working.
Redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
Even I tried redirection URL in web.config, but getting the same error. Can anyone suggest me to rectify this issue...!
First of all i say because it may happen sometimes 😉 do you set ssl certificate and bindg in iis?
...
And here is the solution, try to check Force ssl for all pages on settings,and then restsrt nopcommerce and your problem will solve.
If it doesn't work, try clear your browser cache and history or use incognito page, if the problem solved with incognito,it means your browser caches and histories should be clear.

Localhost Redirected you too many times DotNetNuke

I have a DotNetNuke application I am trying to setup on localhost.
The application was working fine until I tried to change database connection. After reverting back the changes I made in conenctionStrings, I am getting error whenever I try to run it. The error is
The localhost page isn’t working
localhost redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
Well, obiously I tried clearing cookies and also tried on multiple browsers but getting same result. Page is not working.
What can be the possible reason ?
Without seeing any source code the best answer I can give you is this, something in your code if forcing a redirect to iteself, which then forces another redirect to itself, etc.
It would basically by the same as doing this,
void DoSomething() {
// Infinite loop, activate!
DoSomething();
}
If you provide some source code or a link to it in the question I could give you a more detailed solution, but as the question stands this is the best I can do.
I had this issue a while ago, setting the trust level to full trust (in web.config) solved it for me.
Happy DNNing!
Michael

MVC5 application form results in multiple post requests on submit

We have an MVC5/Razor application that last week suddenly started acting really weird. It's hosted on a Windows Server 2008 R2 (with IIS 7.5) and the problem started after installing Windows updates last week. Up until then the application was working just fine.
Problem is that when a user submits a simple form consisting of 10 text fields, 4 text areas and a drop-down list, the server doesn't respond properly resulting in an "Error_Connection_Reset" (in Chrome) / "Page Unavailable" (in IE11).
We use POST-Redirect-GET pattern with RedirectToAction in the receiving action in the controller which would normally result in a 302 response and redirect.
The form is rendered like this:
#using (Html.BeginForm("Create", "Controller"))
{
#Html.AntiForgeryToken()
<div class="editor-fields">
#Html.EditorFor(m => m.Model)
</div>
<div class="clear-fix"></div>
<div class="submit-area">
<input type="submit" value="Submit" />
</div>
}
The action has these attributes:
[HttpPost]
[ValidateAntiForgeryToken]
[AllowAnonymous]
[ValidateInput(false)]
We also use Google Analytics and jQuery, jQuery validate, unobtrusive ajax with Optimization (minification). Most JS scripts are included with Scripts.Render.
The application works fine when we access it from inside our own domain, but since all our users need access from outside, we need to fix this error. This could suggest a DNS issue but our IT support says DNS looks just fine and hasn't been changed recently.
Here's what we've done and found out so far:
Log file in inetpub\logs\LogFiles shows multiple (between 3 and 10) POST requests all with status code 302 but no following GET request. And there really should be only one POST request and then a GET request!
Log file in %windir%\System32\LogFiles\HTTPERR shows nothing interesting, just a bunch of Timer_ConnectionIdle "errors" whenever the web site reaches it's idle timeout value (which is the default 20 minutes).
Inspected requests with Fiddler and dev tools in Chrome and IE11 and all shows the same request headers. With fiddler we get [Fiddler] ReadResponse() failed: The server did not return a complete response for this request. Server returned 0 bytes. In Chrome Dev Tools it says (failed) in the Status column.
Disabled caching and compression in IIS.
Turned CustomErrors off in web.config file
Added <modules runAllManagedModulesForAllRequests="true">in web.config
Searched Google and SO for answers but so far to no avail
Checked the recently installed updates from Windows Update regarding .NET 4.5.2 and related Knowledge Base articles but nothing that really seemed related to this problem was mentioned
Edit: Also, we enabled Failed Request Tracing but we only get failed request logs for a missing favicon.ico in inetpub\logs\FailedReqLogFiles folder
Funny thing is that if i put a check mark in "Disable cache" in Chrome Dev Tools, the application also works just fine. This could suggest that it's a caching issue which is also why we tried turning on Output Caching in the IIS.
Our next step would be to either fire up a new server (Windows 2012 and a more recent version of IIS) and install the application there or install WireShark on our current server to further investigate requests. But if anyone has experienced this behaviour and know a fix for it, we would rather just fix it for now. So, please, if anyone can help, please advice.
Since the problem only seemed to occur to users outside our domain, we started thinking that this issue might be related to our firewall so we contacted our firewall provider and they confirmed that there was an issue with the latest version of the firewall software. As it happened, the firewall software was updated same day as Windows Updates were installed on our server which probably caused a bit of confusion. After reverting to the previous version of the firewall software, the issue has disappeared and everything is working as expected again. Phew!

AjaxControlToolKit HTMLExtender ImageUpload works on localhost, not server

So, I've looked over everyone's questions, and I can't seem to find a reliable answer. I find it hard to believe that AjaxControlToolKit would release an item that couldn't work on a public facing website. So here's my question.
My AjaxControlToolKit HTMLExtender ImageUpload function works SWIMMINGLY on my localhost when I test, but the moment I test on the live address (which is behind a login in a custom CMS), I can't get the file to post to the server. I have the same .dlls, the same web.config, the same everything, but I get this response in Chrome Inspector:
Uncaught error raising upload complete event and start new upload
t.onreadystatechange
Any suggestions on where to start?

GET https://www.google-analytics.com/ga.js net::ERR_TIMED_OUT

When I'm Accessing my Site with Google Maps, The Maps load so slow and then this error Shows up. GET https://www.google-analytics.com/ga.js net::ERR_TIMED_OUT
Tried clearing my Cache and Browsing in Incognito Window but all show the same error
Tried in Other browser like Firefox but same error shows
Did someone encountered the same error before?
Please Help me , Thanks
I had this problem, solved by disabling the HTTPS Everywhere browser extension, which I believe is forcing the downloading of the ga.js through https from where it is not necessarily available.
This might be related to Firewall blocking google-analytics.com

Categories

Resources