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