English 中文(简体)
Is there a workaround to IE7 s user agent being defaulted after installing .Net Framework 3.5 SP1?
原标题:

I have verified that after installing the .Net Framework 3.5 SP1, when the User Agent string exceeds a certain number of characters, the user agent is defaulted to userAgent string:Mozilla/4.0 (compatible; MSIE 6.0) . I ve verified this behavior on several machines but can t seem to find a suitable workaround. This is preventing some Silverlight applications from running when the user s browser (IE7) is falsely reporting the user agent. Prior to installing 3.5 SP1, the user agent was correct in reporting browser version and .Net framework versions.

最佳回答

You re probably referring to the known bug in .Net 3.5 SP1 where the user agent is incorrectly being reported when the length is exceeded. According to the MS bug report and other tidbits I dug up when looking into this, there are the following workarounds. Some may or may not be suitable for your situation.

  • Remove some versions of the .Net framework on the machine(s) in question. Only keep around major versions to reduce the user agent reporting.
  • Edit the registry at the following location: HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionInternet Settings5.0User AgentPost Platform
  • Using above reg key, remove duplicate entries
  • Using above reg key, remove entries that are no longer needed or irrelevant.

This doesnt help public facing websites, however. I m hoping MS fixes this bug in the very near future, as it s preventing availability of certain SL sites to users who don t know what s going on or how to resolve it.

问题回答

暂无回答




相关问题
Test "User Must Change Password" field in .Net 3.5

I m trying to perform some basic AD User managment tasks in C# using .Net 3.5 I ve got a System.DirectoryServices.AccountManagement.UserPrincipal object that contains the user details. I can call ...

Entity Framework - Many to many question

I have a table called ASB and a table called PeopleInvolved. There is a junction table called PeopleInvolved_ASB which simply contains an ASBID and a PeopleInvolvedID column. The columns act as a ...

WCF: DuplexChannelFactory timeout error

I m using a DuplexChannelFactory when accessing my WCF service so that my service can use a callBackChannel to communicate back to the client. That s all fine but I get a timeout error when creating ...

AutoResetEvent, ManualResetEvent vs Monitor

Lets say I have to orchestrate a synchronization algorithm in .Net 3.5 SP1 and any of the synchronization primitives listed in the title fit perfectly for the task. From a performance perspective, is ...

Managing multiple .Net-Frameworks on a webserver

So I m in charge to deploy my project on the productive server where some other ASP.NET-Websites are also set up. The problem now is that I wrote my whole project under .NET 3.5 but on the webserver ...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

热门标签