Why does WAP Web Forms project fail to compile with no code changes?

59 Views Asked by At

In Visual Studio 2013, I created a new project via File > New Project > Installed.Templates.Visual Basic.Web.ASP.NET Web Application, and then selected the Web Forms suboption.

Without doing anything at all to the code - no additions, no modifications - I mashed F5 to make sure it ran a generic page. Instead, I got two build errors, both of the same type, namely, "Option Strict On disallows implicit conversions from 'Boolean' to 'String'."

2-clicking the first one takes me to this line in Manage.aspx.vb:

HasPhoneNumber = String.IsNullOrEmpty(manager.GetPhoneNumber(User.Identity.GetUserId()))

The second error goes to this line in the same file:

TwoFactorEnabled = manager.GetTwoFactorEnabled(User.Identity.GetUserId())

Something is rotten in either Redlands or Monterey for a template project to not build correctly. What is going on here?

UPDATE

Commenting out all the code in the Page_Load() method gets past the build problem, but still starts me off on a login page, which I don't want or need.

0

There are 0 best solutions below