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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Name 'FormatURL' is not declared BC30451
Previous Previous
 
Next Next
New Post 8/3/2006 7:14 PM
User is offline Rick Miller
31 posts
10th Ranked


Name 'formatURL' is not declared BC30451 

This is a repost of a discussion in the Configure It! forum - I think it probably belongs here instead.

I started with a DNN 3.2 custom module. Used the 4.3 migration wizard to move it. After some adjustments, it works fine in both versions.

Now we (apparently - ??) have a need to release the module in 4.0 (I say apparently because there are lots of people doing that on SnowCovered). So I took the 4.3 version, migrated it back to be compatible with 4.0, and it compiles cleanly. If I package a source-code version of the assembly and install it in a test site, it runs fine. If I precompile and package an executable-only package, it kicks me in the teeth.

The first problem was that in the .ascx display page, I was using IsEditable (as in Visible="<%# IsEditable %>"), and I got an error "Name 'IsEditable' is not declared', which of course it is, in the portalmodulebase class. Just messing around, I redeclared IsEditable as protected shadows, and in the page_load routine I assigned it the value from MyBase.IsEditable. And that worked. DOn't ask me why, it doesn't make any sense to me.

So the next problem (and the one that is driving me nuts) is that the app runs a microsecond or two longer, then gets an error "Name 'formatURL' is not declared". This is a bread-and-butter DNN routine, the only thing I have done to alter it is return a string.empty from the exception handler to get rid of the annoying "result not returned on all paths" warning. And as I say, in the source-code version of the module it runs fine. But precompile it, package it, deploy, adjust the deployment per Shaun Walker's article, and load it, and I get the "not declared" error and a page load exception.

I've tried loading fresh 4.0.3 websites and new databases, with the same result.

Somebody please tell me what I'm missing - I've burned several hours on this </whine>. Thanks.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Name 'FormatURL' is not declared BC30451
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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