Problems deploying custom Umbraco App on IIS6 Options
jonwhiteside
Posted: Wednesday, September 20, 2006 5:51:40 PM
Rank: Newbie

Joined: 8/15/2006
Posts: 5
Hi,

I've written a custom web application utilising the Umbraco dlls so that a user can signup as a member of a website, upload images, and create pages without having access to the umbraco admin gui. The appliation works well on my development environments (win xp, iis5).

I then deployed the umbraco website and my application onto the staging server (win2k3, iis6) and the application doesn;t work at all. Both versions use the same database server - so that can be ruled out.

The error is:

Object reference not set to an instance of an object.
NullReferenceException: Object reference not set to an instance of an object.]
companyname.projectname.website.agencies.profile.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739

after some debugging the error seems to occur when I try and access the properties of a member:

Code:

Dim m As Member = Member.GetCurrentMember() - FINE
If Not m Is Nothing Then - FINE
  Me.txtName.Text = m.getProperty("agency_name").Value.ToString - ERROR
End If


I digged a little further byt looping through all the properties for the member object:

Code:

For Each item As umbraco.cms.businesslogic.property.Property In m.getProperties() - FINE - RETURNS 16 properties
response.write(item.Id) - ERROR
Next


So it seems like the properties aren't being initalised correctly.

Has anyone got any idea?? Weird how I have it working fine on two development machines, but not on the staging server. What differences in w2k3 would cause this error?

Thanks,
Jonathan
imayat12
Posted: Tuesday, October 03, 2006 10:33:39 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
To whoever it may help,

I spoke to Jonathan who has spoken with Niels and the way round this is to delete the editorcontrols dll from the bin then drop in back in. This reinitalises the fields properly.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
Marc
Posted: Tuesday, January 23, 2007 11:15:58 AM
Rank: Enthusiast

Joined: 10/10/2006
Posts: 16
For a customer I created a members part on their website and it suddenly broke, the protection was gone and everyone could see the pages.

I moved the controls.dll from the bin and put it back and that indeed reinitializes the fields!

After delivery of the website about 4 months ago this has happened twice already, anyone out there has a more solid solution?
The website uses umbraco v 2.1.4 (Assembly version: 1.0.2389.28110), runs on Windows 2003 utilizing ASP.NET_1.1.4322.2300.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.