Using VS2013, I have a VB .NET 4.0 web application that runs fine locally, but when I try to publish it with pre-compile, I get the error /Controls/IDOI_Header.ascx(1,0): Error ASPPARSE: The file '/Controls/IDOI_Header.ascx.vb' does not exist.
If I change the "CodeFile=" directive to "CodeBehind=" I get "cannot load type IDOI_Header"
The file /Controls/IDOI_Header.ascx.vb does indeed exist (I've checked the .vbproj, the file system and of course the tree control.) The code in the .vb file is:
Partial Class IDOI_Header Inherits System.Web.UI.UserControl End Class
The user controls are only referred to in a master file like so:
[snip]
<div id="Wrapper">
<div id="HeaderSection">
<idoi_header:idoi_header ID="Idoi_header" runat="server" />
</div>
[snip]
I have renamed the files (I read that the _ might have implications) and I've deleted the files and re-added them and made sure they're in the source control. Even our leader developer is baffled.
Any suggestions?
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="IDOI_Header.ascx.vb" Inherits="IDOI_Header" %>When I change it to<%@ Control Language="VB" AutoEventWireup="false" CodeBehind="IDOI_Header.ascx.vb" Inherits="IDOI_Header" %>I get "Could not load type IDOI_Header" Here's the codebehind:Partial Class IDOI_Header Inherits System.Web.UI.UserControl End Classeven if I explicitly set a namespace. One other bit of fun, this only happens when I pre-compile for Release. pre-compile for Debug works (at least most of the time...) - Duston