Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Major Host/Test environment Compile problems (Error BC30456)Major Host/Test environment Compile problems (Error BC30456)
Previous
 
Next
New Post
5/24/2007 12:59 PM
 
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.
 
New Post
5/24/2007 4:48 PM
 

When I got this error it was because we have a asp.net 1.1 assembly that our asp.net 2.0 pages are inheriting from. That assembly had to be updated in the bin when the asp.net 2.0 pages were updated.  see this thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=823980&SiteID=1



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/25/2007 2:55 AM
 
Michael,
 
Thanks for the help. That thread does have some good info. I think my problem may be related to something like an ASP.NET 1.1 – 2.0 inheritance problem. My local test site where I don’t have any problems is basically a new DNN 4.5.1 installation whereas the host site was upgraded a couple of times. However, I still am unable to fix the error. One brute force option is to have them install a clean new DNN version 4.5.1 and then see if I can install my module there. If it works then I’ll try to figure out how to clean up the actual sites where I want to use it.
 
The thread you provided did suggest compiling with “Allow precompiled site to be updateable” unchecked as one fix. However that basically just provides a dll. Rick Strahl refers to this as a full pre-compile (all the user controls, code beside, etc. get compiled into the dll) in a CoDe Magazine article on ASP.NET 2.0 deployment. Can you do that with a DNN module? It seems that DNN expects the basic View, Edit, and Settings controls to be installed as ascx files. Correct?
 
G. M.
 
New Post
5/25/2007 7:50 AM
 

gmitchell7 wrote

Can you do that with a DNN module? It seems that DNN expects the basic View, Edit, and Settings controls to be installed as ascx files. Correct?

I don't know of anyone who has been able to compile all of DotNetNuke into a single assembly and get it to work.

If you were able to do this, A module installed manually shouldn't care but of course the module installer would not work.

Are you using WAP or WSP? I think you might be dealing with compiling against an old version of the DotNetNuke.dll (just a guess).

If you are using WAP could you try WSP?



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/25/2007 11:46 AM
 
Thanks Michael,
 
I’ll check out the DNN dll possibility. I have a couple more brute force approaches also. I think I may just download a backup copy of the site from my hosting server and see if I get the same error if I set it up locally. That should tell me something. In theory the hosting site is pretty much the same ASP.NET 2.0 environment except I am running under Win XP Pro with IIS 5.1. I think they are running Win 2003 and IIS 6.0.
 
I don’t use WAP. I was under the impression that method was primarily to be used for converting old apps originally developed under VS 2003. What is WSP? I call what I do WDP (Web Deployment Project) with partial compilation, i.e. all the VB code is compiled into the dll but the ascx files, etc. remain separate and are compiled by the ASP.NET 2.0 JIT compiler.
 
Also I am using that dynamic placeholder with this particular module. Are you aware of any possible BC30456 error problems with that control? It works great in my local environment.
 
I’ll post whatever results I get here. Of course I am assuming I’ll get this solved! However, at this point I expect no holiday weekend for me!  
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Major Host/Test environment Compile problems (Error BC30456)Major Host/Test environment Compile problems (Error BC30456)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out