views:

21

answers:

2

When I upload the files on the remote server I get the following message:

Object reference not set to an instance of an object

And a few errors supposed to be happening in the ClassDesigner file and other few classes... I need help urgently please.

What do you think is going on? Thank you!

A: 

You have a bug in your code.

You need to read the details of the exceptions and find and fix the bug.

SLaks
A: 

The error message you give is to general to help. It basically means you are trying to access a object that is null. Please at least give a stack trace.

Craig
met.lord
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 System.Activator.CreateInstance(Type type, Boolean nonPublic) +67 System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +80
met.lord
[InvalidOperationException: An error occurred when trying to create a controller of type 'Summumnet.Controllers.PortalController'. Make sure that the controller has a parameterless public constructor.] System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +189
met.lord
met.lord
met.lord
As I said before, in my local computer it works perfectly, no errors compiling... don't understand what happens remotely. Also, I tried two different ways to publish the app but no success... Don't understand why...
met.lord
I would edit the original question and add this stack trace.
Craig