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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDeveloping Module On Remote Server?Developing Module On Remote Server?
Previous
 
Next
New Post
2/13/2012 3:33 PM
 

I've been able to develop small modules on my local machiene without any problems.

However, now my company asked me to create a module for a site, and I have a development server to use. So I installed the latest DNN site on the server, and I created my new Module (using the VB Template). However I seem to have an issue when I add an ASP control to any page.  I get the following error on the very first line of the ASCX markup file:

Namespace or type specified in the Imports 'System.Web.UI.WebControls.Expressions' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Now, if I double click a control on the toolbar (ie: Panel control), it then adds a web.config file to my project and the error than vanishes! But I know that having a web.config file inside the DesktopModules' folder (ie: Project) can cause other problems. But if I delete the web.config file, the error appears again.  Anyone have any ideas how to fix this?

Using:
    Visual Studio 2010 (VB.Net) on Windows 7 (32Bit)
    IIS7.5 On Windows Server 2008 R2 (64Bit)
    In "My Project" I have "Web > Servers" set to:
        "Use Custom Web Server"
        Server URL: http://DataCentralTest


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/14/2012 1:40 PM
 

open the web.config file that is generate in your local module folder and "merge" it with the web.config file in the root folder of your DotNetNuke website, then delete the web.config file in your module folder


 
New Post
2/14/2012 3:20 PM
 

Steve:

I am at the end of my workday here, and swamped with another project.  I will try as you suggest first thing tomorrow morning and post my results.  Thanks for the input!


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/15/2012 8:30 AM
 

Steve:

So I tried what you suggested and no luck, error persisted.  But your idea of merging the two got me thinking.  So I opened up a local module I was creating that didn't have the error, with the remote module, side by side.  I started checking all the project settings of both to see if I could find something different.

Lo-and-behold...for some reason when the remote module was created (using the template), it created with the compile setting set to use Framework 3.5, whereas the local one was created to use Framework 4.0.

I updated my remote module to use Framework 4.0 and the error vanished!

Thanks for the input!


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
2/15/2012 12:31 PM
 

Crud,

I think I spoke too soon.  The previous error has indded vanished...HOWEVER...registered tag's aren't working.  For example:

<%@ Register TagPrefix="DNN" TagName="Label" Src="../../controls/LabelControl.ascx" %>
<%@ Register TagPrefix="DNN" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke.WebControls" %>

<DNN:Label ID="lblTest" runat="server" Text="LabelText" HelpText="This is the helptext" />

When I hover over the text "Label" I see:
     Element 'Label' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.

Again...I am having issue with Web.config.  For some reason it's as if the project refuses to see the Web.config file that is located in the parent website.

Help!


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDeveloping Module On Remote Server?Developing Module On Remote Server?


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