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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cant Publish site to get dll for PACant Publish site to get dll for PA
Previous
 
Next
New Post
5/12/2007 11:31 AM
 

I have been struggling with this all day

My code runs fine and works OK but when I try to publish my site it fails with error :

Object reference not set to an instance of an object.

No File name or line information

The output window has the following

Building directory '/DotNetNuke/App_GlobalResources/'.
Building directory '/DotNetNuke/App_Code/Reports/'.
Building directory '/DotNetNuke/App_Code/GR_Marquee/'.
Building directory '/DotNetNuke/App_Code/GR_EMail/'.
Building directory '/DotNetNuke/App_Code/GuestBook/'.
Building directory '/DotNetNuke/App_Code/'./: Publication (web): Object reference not set to an instance of an object.
Pre-compilation Complete
------ Skipped Publish: Project http://localhost/DotNetNuke/, Configuration: Debug .NET ------
 
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
========== Publish: 0 succeeded, 0 failed, 1 skipped ==========
 -
 
It looks to me as if its trying to compile the App_Code directory - why there isnt anything there???
I have followed Michael Washingtons tutorials and cant see what I have done wrong
The config has the following in it

<codeSubDirectories

>
<add directoryName="Reports" />
<add directoryName="GR_Marquee" />
<add directoryName="GR_EMail" />
<add directoryName="GuestBook" />

  

these appear in the codeSubDirectories in the compilation section of the config

 

Most confused as I dont know how they got there

 

 


Dave DNN 4.3.5 IIS - 6 ?? SQL Server 2005
 
New Post
5/12/2007 11:46 AM
 

try:

Packaging your DotNetNuke® Module



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/12/2007 11:54 AM
 

I have looked at that there is nothing that tells me how to get round the problem I am having

I will look at the aspnet compilation over view but I still dont understant what its trying to do compiling this directory

 

This was compiling OK earlier  until I took the unwanted SQL provider and controller code out


Dave DNN 4.3.5 IIS - 6 ?? SQL Server 2005
 
New Post
5/12/2007 4:50 PM
 

Lummers wrote

I have looked at that there is nothing that tells me how to get round the problem I am having

You indicated that you were following the tutorials. the tutorials do not mention using Visual Studio "publish" to publish the site. So I figured you were trying to compile your module you developed. Did I misunderstand you?



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/12/2007 11:29 PM
 

No you have assumed correctly - I have followed the dev tutorials and everything seems to work fine then I look at the packaging tutorial - I was using the term publish from the comment below

"Create the compiled assemblies

From the Build menu, select Publish Web Site"

So I am trying to package my modules properly - which I have also accomplished without problem as long as I do not precompile and replace the .vb .ascx and files with "compiled" ascx and dll files

As soon as I try and compile my module when I retrieve the said code, install and run it  then errors occur

I have reviewed the tutorials and set up a new instance using 4.5.1 install  - I overwrote that with the 4.5.1 source which I then used the project.sln to open Viual Studio ( The source download did'nt seem to be able to set up the database for some reason)

I installed my module as a source code PA and tried compiling and building a PA with dll's (as in your packaging Tutotrial)

I now get anothererror on installing the compiled module ( again the source PA seems to behave fine)

DotNetNuke.Services.Exceptions.ModuleLoadException: c:\hosting\w\m\u\clientdnn\DesktopModules\GR_EMail\ViewGR_EMail.ascx(20): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_gr_email_viewgr_email_ascx'. ---> System.Web.HttpCompileException: c:\hosting\w\m\u\clientdnn\DesktopModules\GR_EMail\ViewGR_EMail.ascx(20): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_gr_email_viewgr_email_ascx'. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

I am also a litte confusd- the tutorial indicate's that l the dll's will have the folder name in their title somewhere - when I look for dll's  - there are 2 - the names are of the form App_Web_viewgr_email.ascx.96aa4f0a.dll, App_Web_settings.ascx.96aa4f0a.dll

is this correct? - I would also like to tidy these up if at all possible.


Dave DNN 4.3.5 IIS - 6 ?? SQL Server 2005
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cant Publish site to get dll for PACant Publish site to get dll for PA


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