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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Name Name 'FormatURL' is not declared BC30451
Previous
 
Next
New Post
8/3/2006 12:49 PM
 

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
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Name Name 'FormatURL' is not declared BC30451


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