« Previous Next »

Thread: Fatal: Object reference not set to an instance of an object

Last post 10-13-2008 9:26 AM by Sader. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-08-2008, 5:49 AM

    • Sader
    • Not Ranked
    • Joined on 07-29-2008, 9:13 AM
    • Posts 4

    Fatal: Object reference not set to an instance of an object

    Hi all,

    When I run the following command:

    msdeploy -verb:migrate -source:metakey=lm/w3svc/145273373 -dest:archivedir=d:\w3svc\12 -failureLevel:Never

    I get the error Fatal: Object reference not set to an instance of an object. What does it mean.....

    Also running the command include: -whatif -verboseLevel:Informational  >msdeploy.log

    I cannot find the explanation of the error. Someone Knows a solution?

  • 10-08-2008, 2:52 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 184

    Re: Fatal: Object reference not set to an instance of an object

    You are probably facing this issue http://forums.iis.net/t/1151531.aspx. If your stack trace is not the same as the one in the above post, could you please send us the trace?

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 10-09-2008, 2:18 AM In reply to

    • Sader
    • Not Ranked
    • Joined on 07-29-2008, 9:13 AM
    • Posts 4

    Re: Fatal: Object reference not set to an instance of an object

    yaminij,

    Thanks for the reply. the problem in the other form did not pass the 'AnonymousUserPass'.

    My problem is that the migration to arrchive directory stucks on: DirBrowseFlags

    first line: Action: Adding archiveDir (archiveDir)

    ........

    Action: Adding child metaProperty (root/AccessFlags)
    Action: Adding child metaProperty (root/AppIsolated)
    Action: Adding child metaProperty (root/AuthFlags)
    Action: Adding child metaProperty (root/DirBrowseFlags)
    Fatal: Object reference not set to an instance of an object. 
    Change count: 77629
    Fatal count: 1

    A strange thing is that not al my sites give this error during migration.

  • 10-10-2008, 10:50 AM In reply to

    • Sader
    • Not Ranked
    • Joined on 07-29-2008, 9:13 AM
    • Posts 4

    Re: Fatal: Object reference not set to an instance of an object

    I fixed this error by disable the 'script source acces' on the home directory tab.

    But the following error appears at the next stap:

    Action: Adding child metaProperty (/lm/w3svc/1017621628/root/AccessFlags)
    Fatal: Object reference not set to an instance of an object.
    Debug: System.NullReferenceException: Object reference not set to an instance of
     an object.
       at Microsoft.Web.Deployment.MigrateAnonymousUserRuleHandler.Update(Deployment
    SyncContext syncContext, DeploymentObject destObject, DeploymentObject& sourceOb
    ject, Boolean& proceed)
       at Microsoft.Web.Deployment.MigrateAnonymousUserRuleHandler.AddChild(Deployme
    ntSyncContext syncContext, DeploymentObject destParentObject, DeploymentObject&
    sourceObject, Boolean& proceed)
       at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentOb
    ject destParent, DeploymentObject sourceObject, Int32 position)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(Deploym
    entObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObje
    ct dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentOb
    ject destParent, DeploymentObject sourceObject, Int32 position)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenNoOrder(Deploym
    entObject dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObje
    ct dest, DeploymentObject source)
       at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObjec
    t destinationObject, DeploymentObject sourceObject)
       at Microsoft.Web.Deployment.DeploymentObject.Sync(DeploymentObject sourceObje
    ct, DeploymentSyncConfig syncConfig)
    Change count: 22
    Fatal count: 1

  • 10-13-2008, 9:26 AM In reply to

    • Sader
    • Not Ranked
    • Joined on 07-29-2008, 9:13 AM
    • Posts 4

    Re: Fatal: Object reference not set to an instance of an object

    Hi all,

    found the solution for both problems.

    when you run the migration command with the -debug option. then you will get the error as in my earlier post(s).

    The fix:

    open the 'microsoft.web.deployment.config' disable rule MigrateAnonymousUser

Page 1 of 1 (5 items)
Microsoft Communities