Microsoft KB Archive/837227

= You cannot change the value of the Link Repair property of a Web Application project in Visual Studio .NET =

Article ID: 837227

Article Last Modified on 5/17/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-





SYMPTOMS
In Microsoft Visual Studio .NET, when you try to change the value of the Link Repair property of a Microsoft ASP.NET Web Application project to True, you may notice that the change is not accepted and that the value of the Link Repair property remains set to False.



WORKAROUND
To work around this behavior, you must first change the Web Access Mode option from File Share to FrontPage, close the solution, open the solution again, and then change the value of the Link Repair property.

To change the value of Link Repair property, follow these steps:
 * 1) In Microsoft Visual Studio .NET, create an ASP.NET Web application by using Visual C# .NET or Visual Basic .NET. Name the project MyApplication.
 * 2) In Solution Explorer, right-click MyApplication, and then click Properties. The MyApplication Property Pages dialog box appears.
 * 3) Under Common Properties in the right pane, click Web Settings.
 * 4) Change the Web Access Mode option to FrontPage. To do this, use one of the following methods, depending on whether you used Visual C# .NET or Visual Basic .NET to create your Web Application project:
 * 5) * Visual C# .NET

In the Web Access Mode box, click FrontPage.
 * 1) * Visual Basic .NET

Under Web Access Method, click FrontPage.
 * 1) Click OK.
 * 2) On the File menu, click Close Solution.
 * 3) On the File menu, point to Open, and then click Project. The Open Project dialog box appears.
 * 4) Double-click the MyApplication project folder, click MyApplication.sln, and then click Open.
 * 5) In Solution Explorer, right-click MyApplication, and then click Properties. The MyApplication Property Pages dialog box appears.
 * 6) Under Common Properties in the right pane, click Web Settings.
 * 7) Change the value of the Link Repair property to True. To do this, use one of the following methods, depending on whether you used Visual C# .NET or Visual Basic .NET to create your Web Application project:
 * 8) * Visual C# .NET

In the Link Repair box, click True.
 * 1) * Visual Basic .NET

Under Web Access Method, click to select the Link Repair check box.
 * 1) Click Apply. Visual Studio .NET accepts your change to the value of the Link Repair property.



STATUS
This behavior is by design.



Steps to reproduce the behavior
To reproduce this behavior, follow these steps:
 * 1) In Microsoft Visual Studio .NET, create an ASP.NET Web application by using Visual C# .NET or Visual Basic .NET. Name the project MyApplication.
 * 2) In Solution Explorer, right-click MyApplication, and then click Properties. The MyApplication Property Pages dialog box appears.
 * 3) Under Common Properties in the right pane, click Web Settings.
 * 4) Change the Web Access Mode option to FrontPage. To do this, use one of the following methods, depending on whether you used Visual C# .NET or Visual Basic .NET to create your Web Application project:
 * 5) * Visual C# .NET

In the Web Access Mode box, click FrontPage.
 * 1) * Visual Basic .NET

Under Web Access Method, click FrontPage.
 * 1) Change the value of the Link Repair property to True. To do this, use one of the following methods, depending on whether you used Visual C# .NET or Visual Basic .NET to create your Web Application project:
 * 2) * Visual C# .NET

In the Link Repair box, click True.
 * 1) * Visual Basic .NET

Under Web Access Method, click to select the Link Repair check box.
 * 1) Click Apply. You may notice the behavior that is mentioned in the &quot;Symptoms&quot; section.

