Tag Archives: ASP.NET

MySQL Connector/NET 6.7.4 conflicts with ASP.NET Membership

After installing MySQL Connector/NET 6.7.4 today, my web app failed to start. It is because some MySQL membership providers were added to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config and the MySql.Web.dll assembly (MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d) could not be loaded.

Uninstalling the Connector/NET 6.7.4 makes my web app work normally again. Refer to http://bugs.mysql.com/bug.php?id=69808 for details.

Advertisements

ASP.NET OpenAuth Login Failed in Facebook Page Tab

ASP.NET 4.5 supports Facebook authentication with OpenAuth. Developers who embed web applications into Facebook page tab may be faced with login failure because the page tab is rendered as an iframe and some browser will not submit cookies from iframes by default. Chrome, Firefox, Safari and Opera work fine but IE by default won’t send cookies from iframes and you will get some trouble when logging in from the Facebook page tab.

To solve this problem, you have to add the following p3p HTTP header to have IE send cookies from iframes:

Response.AddHeader(“p3p”, “CP=\”IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\””);