I am in the process of converting a Web Site to a Web Application project. The .aspx pages are all children of a master page, and they use the directive:
<%
@ MasterType VirtualPath="~/e332Master.master" %>
From researching, I see everywhere that this is supposed to work. But, in this case, the directive is causing a compile error:
Error 1 Type 'WOPS_Solution.e332Master' is not defined. C:\Inetpub\wwwroot\WOPS_Solution\WOPS_Solution\AllOrders.aspx.designer.vb 402 50 WOPS_Solution
in the child page designer files, on the WOPS_Solution.e332Master type:
Public Shadows ReadOnly Property Master() As WOPS_Solution.e332Master
Get
Return CType(MyBase.Master, WOPS_Solution.e332Master)
End Get
End Property
It will compile if I remove WOPS_Solution. , but I can't do that since it will re-generate next time the page is changed. I created a new, quick and dirty, NOT CONVERTED, Web Application Project, with a master page and the directive, and a child page. Of course, that works fine, so the problem must have something to do with the conversion.
Thanks in advance for any help in fixing this!