Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Major Host/Test environment Compile problems (Error BC30456)
Previous Previous
 
Next Next
New Post 5/24/2007 9:59 AM
User is offline George Mitchell
95 posts
10th Ranked




Major Host/Test environment Compile problems (Error BC30456) 
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 1:48 PM
User is offline Michael Washington
2757 posts
ADefWebserver.com
5th Ranked










Re: Major Host/Test environment Compile problems (Error BC30456) 

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
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
New Post 5/24/2007 11:55 PM
User is offline George Mitchell
95 posts
10th Ranked




Re: Major Host/Test environment Compile problems (Error BC30456) 
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 4:50 AM
User is offline Michael Washington
2757 posts
ADefWebserver.com
5th Ranked










Re: Major Host/Test environment Compile problems (Error BC30456) 

 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
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
New Post 5/25/2007 8:46 AM
User is offline George Mitchell
95 posts
10th Ranked




Re: Major Host/Test environment Compile problems (Error BC30456) 
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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Major Host/Test environment Compile problems (Error BC30456)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl
EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP