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.0Issues with Web deploymentIssues with Web deployment
Previous
 
Next
New Post
2/8/2008 10:33 AM
 
Hi, I am using DNN4.7 on Visual studio 2005. My OS is Windows XP Pro. using IIS V 5.1 and DotNet framework 2.0. I have developed several modules in csharp using the template (Modules as part of the DNN web application. Not as separate projects or solution) I added a web deployment project to the web application. I have selected the site as updatable and individual libraries for each folder in the application. (Merge to one DLL was not possible due to a duplicate class Login in the authentication module) I added a web setup project to the application. In the web setup application, I have added the output of the deployment project. It compiled fine and I installed it in my local machine (Win xp). The application didn't find the App_GlobalResources directory as it was hard coded somewhere in the code. (Web deployment doesnt copy the folder). I manually copied it and removed the Precompiled.config file from the virtual directory. Then when I tried to load the application in the browser, Global.asax was not executed and there was an error inserting null into the eventlog table, since the servername was not loaded as the global.asax didn't run. ( From the web I found that, there are some issues with the Global.asax in the web deployment project.) Next in the web setup project, I added an exclude filter to exclude the libraries for Global.asax and included the global.asax and the App_Code folder with the Global.asax.vb and the App_GlobalResources folder with all files in it. Now I installed the application and tried to open the application in the browser. Now the Global.asax was loaded. But still got an error saying "An error occurred". The URL was having the text "Reference not set to an instance of an object". I tried to debug the application by attaching the aspnet_wp.exe in the VS2005 debugger. Had a break point in the Initialize of the Default.aspx.vb. When I try to load the application in the browser, The execution came to the default.aspx.vb and the code was trying to load the skin on a variable called ctlSkin. And the application was unable to load the skin and the ctlSkin object remains Null. So the object reference not set to an instance of an object error happens on line 555 of Default.aspx.vb. The cope piece on this line is ctlSkin.ID = "dnn". Can some one help me in identifying the problem in my steps in deploying the application? Thanks in advance. Arun
 
New Post
2/8/2008 10:52 AM
 

I don't know about all of the steps that got you to the error, but I received that error after inadvertently changing something in either the Default.aspx or its code behind.  I don't remember which, or where the change was.  I suggest restoring those files from a clean copy.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Issues with Web deploymentIssues with Web deployment


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