Hi,
I am getting the same compile problem (error BC30456) on my host but not my test system that was plaguing me about a month ago. Here is the thread for that problem:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/121058/scope/posts/Default.aspx
At that time I had the hosting guys upgrade me to DNN version 4.5.0. That "solved" it but I never really understood why. Now the problem is back but an upgrade to 4.5.1 has not given me the same result. I wasn’t surprised. The issue revolves around a module that contains an ASP.NET 2.0 GridView. I decided to make some code changes to some event methods in that module just to see what would happen. They did seem to eliminate the problem for specific methods but another one always occurs after the change.
Here is an example:
InnerException: C:\Inetpub\vhosts\sscimedia.net\httpdocs\DesktopModules\SSCITableMod\ViewSSCITableMod.ascx(26): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_sscitablemod_viewsscitablemod_ascx'.
Here is an example of the type of changes I made. I altered a link button like the following
<asp:LinkButton ID="DocuView" OnClick="DocuView_Click" Text="View" runat="server" />
to this
<asp:LinkButton ID="DocuList" Text="View" runat="server" />
I then added Handles DocuList.Click to the DocuView_Click method in the code beside. It changed where I was getting the error but I don’t think it really fixed anything. Both of these coding approaches should work.
The original code as well as every one of my changes compiled, ran flawlessly, and continue to run flawlessly on my test site but not on the host.
For deployment I am using partial compilation which compiles the code beside files and leaves the aspx and ascx pages to compile at run time. I create the deployment dll and aspx and ascx pages using the Web Deployment Project (WDP) method. I then package everything up with the .dnn file into a zip file for the DNN installation. This has all worked very well for other modules and a couple of versions of the current problem module until last month. I use the exact same zip file to install on the host and test sites. That seems to work and has worked from the beginning. It is when I actually install a module on a page that I get the problem (BC30456).
Now there are obviously differences in the two environments. I do my testing on a desktop machine running Win XP Pro with VS 2005, SQL Server 2005, and IIS 5.1. I know others have had this problem or similar issues. Are there compiler options or other environmental options that can cause this? Has anyone nailed down the root cause? I would really appreciate any suggestions.
Thanks,
G. M.