2.0.50727.3082 System.Web.UI.WebControls.HyperLink.RenderContents - by Bob177

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 423469 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 3/13/2009 6:18:34 PM
Access Restriction Public


This code was added to the RenderContents function, it throws a null reference exception if you are using the class and this.Context is null.

if ((this.Context.WorkerRequest != null) && this.Context.WorkerRequest.IsRewriteModuleEnabled)
      image.UrlResolved = true;

this would avoid the problem

if (this.Context! = null)
  if ((this.Context.WorkerRequest != null) && this.Context.WorkerRequest.IsRewriteModuleEnabled)
      image.UrlResolved = true;
Sign in to post a comment.
Posted by Microsoft on 4/29/2009 at 10:31 PM
Thanks again for your feedback.

This issue has been fixed in Vista/Windows 2008 SP2. And the fix for Windows 2000, Windows XP, and Windows 2003 is available at: https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=18157.

Posted by Microsoft on 3/19/2009 at 6:37 PM
Thank you for the feedbacks and precise repro! This was a known issue with recent .netFramework 2.0 SP2 GDR. We have already produced a hotfix to address this problem. It will be available very soon and we will point you to the url for web download. Sorry for the trouble caused and thanks again for reporting it through MS Connect!

Posted by Microsoft on 3/17/2009 at 2:41 AM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team
Posted by Bob177 on 3/16/2009 at 7:19 AM
Did you test it on a machine with version 2.0.50727.3082 of System.Web.dll patched?

The CLR is going to load the file from the GAC no matter what I have in my project, so you need a machine with that version installed.

I will upload the project, but it won't error if you don't have that version of the dll in the GAC
Posted by Microsoft on 3/16/2009 at 12:00 AM
Thanks for reporting the issue.

In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

It may help if you provide us with:

a) A demo zipped project file

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 7 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.

Visual Studio Product Team