Unable to run Sitefinity with IIS on Windows 7

Asked By 0 points N/A Posted on -
qa-featured

Hello! I have a local Win 7 and I am trying to install Sitefinity and run with IIS but I received an error as shown below. I have encountered series of errors such as issue with SQL connection and some access denied errors and I’m happy to say that I have passed on those issues. But now, I can’t seem to fix this error so I really need help. Thanks.

Message from webpage

Object reference not set to an instance of an object.

OK

SHARE
Answered By 20 points N/A #104296

Unable to run Sitefinity with IIS on Windows 7

qa-featured

Hi Sonya,

Are you, by any chance, using custom master as your page? You may need to add a code on your head tag and adding form and script manager on the body of the code. The code needs to be added on the head tag should be runat=”server”. You can then add the code below on your form and script body:

 

<body>

    <formid="form1"runat="server">

    <asp:ScriptManagerID="ScriptManager1"runat="server">

    </asp:ScriptManager>

 

…..

 

</form>

</body>

 

 

You can also try to run a query and if you got any results  you would need to delete the code. After which you need to recreate it. You would need to recreate the pages you have deleted.

 

SELECT*

FROM    dbo.sf_page_templates a

INNERJOINdbo.sf_draft_pages b

ON      a.id =b.template_id

        ANDb.is_temp_draft =0

INNERJOINdbo.sf_page_data c

ON      b.page_id =c.content_id

WHERE   NOTEXISTS(SELECT1

                     FROM   dbo.sf_page_node x

                     WHERE  x.content_id =c.content_id )

 

You can also run this code but make sure to back up first to fix the error.

Run this
 
DELETE  a
FROM    dbo.sf_draft_pages a
WHERE   a.page_id ISNULL
        ORNOTEXISTS(SELECT  1
                        FROM    dbo.sf_page_data x
                        WHERE   x.content_id =a.page_id )
 
Then this:

 

SELECT  'DELETE FROM sf_draft_pages WHERE id = '''+CAST(b.id ASVARCHAR(50))+'',
        'DELETE FROM sf_page_data WHERE id = '''+CAST(b.page_id ASVARCHAR(50))+''
FROM    dbo.sf_page_templates a
INNERJOINdbo.sf_draft_pages b
ON      a.id =b.template_id
        ANDb.is_temp_draft =0
INNERJOINdbo.sf_page_data c
ON      b.page_id =c.content_id
WHERE   NOTEXISTS(SELECT1
                     FROM   dbo.sf_page_node x
                     WHERE  x.content_id =c.content_id )

 

You need to copy the statements that says Delete that the 2nd code have generated and past on another window.

 

Related Questions