Forum


HomeHomePremiumPremiumDevelopmentDevelopmentError installing a moduleError installing a module
Previous
 
Next
New Post
4/15/2014 3:37 AM
 

Hello,

I've created a DNN module which compiles in release mode generating the installation and source zip files.

But when I come to install it, I get an 'Object reference not set to an instance of an object.' error, please see details below. This occurs on clicking the Next button immediately after the zip file has been selected in the Extensions wizard.

Can anyone please offer any suggestions on the best approach to resolve this issue?

Best Regards,

Steve

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] DotNetNuke.Entities.Urls.AdvancedUrlRewriter.Handle404OrException(FriendlyUrlSettings settings, HttpContext context, Exception ex, UrlAction result, Boolean transfer, Boolean showDebug) +45 DotNetNuke.Entities.Urls.AdvancedUrlRewriter.RewriteUrl(Object sender, EventArgs e) +295 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
 
New Post
4/15/2014 4:19 AM
 

Hi Steve,

To rule out that the problem is the zip you have uploaded, try to install another module on this site and see how it behaves (like the free feedback module - http://dnnfeedback.codeplex.com/) - This will tell you if the problem is the site or the module.

I have also fount this which iut may not be related to but it has the same error message: 

https://dnntracker.atlassian.net/brow...

This seems to be related to the URL. Maybe check if there is anything out of the ordinary in regards to the URLs on this site.

Best regards,

Aderson

 
New Post
4/15/2014 5:01 AM
 

Hi Aderson,

Thank you for coming back to me, appreciated!

That's a good idea. Will install that module and check that reference as well.

One thing. I developed the module under the site 'http://dnndev.me'. But am now installing it under another site, which I'm using for staging called 'http://dnnstage.me/'. All the references in the project (start url, project url and override application url) refer to 'http://dnndev.me'. I assume that is correct? There's nothing i need to change to it will work on a site of any url?

Best Regards,

Steve

 
New Post
4/15/2014 5:12 AM
 

Hi Steve,

The domain you are using it shouldn't matter.

Cheers,

Aderson

 
New Post
4/15/2014 5:52 AM
 

Hi Aderson,

I was able to install the feedback module no problem.

I looked at the example, but it seems to be a problem after the module has installed, the screenshots show a module installed.

When you say a url problem, where can i check. Tried changing the project urls to dnnstage,.me but made no difference. Just trying to narrow things down.

The error occurs on clicking the Next button immediately after selecting the file.

Anything else I could check?

Steve

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentError installing a moduleError installing a module



Try FREE
30 days money back guaranteed