error '800a0046' Permission denied [Answered]RSS

9 replies

Last post Apr 01, 2009 11:18 AM by tomkmvp

  • error '800a0046' Permission denied

    Mar 31, 2009 11:41 AM|v_rangasamy|LINK

    hi all,

       I'm geeting the following error when i try to create a new document (.doc) file in my VB script.

    "error '800a0046' Permission denied"

     i given "read and write" permission for the folder also where the document will be created.

     plz help me what could be the problem?

    Thanks!

  • Re: error '800a0046' Permission denied

    Mar 31, 2009 12:50 PM|Paul Lynch|LINK

    Hi,

    The problem is a permissions problem as indicated by the error message. Use Process Monitor to sniff out the source of the problem.

    Regards,

    Paul Lynch
    MCSE
  • Re: error '800a0046' Permission denied

    Mar 31, 2009 01:53 PM|v_rangasamy|LINK

    how to do process monitor in VB?

    plzz help me.

  • Re: error '800a0046' Permission denied

    Mar 31, 2009 02:06 PM|tomkmvp|LINK

    v_rangasamy

       I'm geeting the following error when i try to create a new document (.doc) file in my VB script.

    How are you doing that exactly?  Show your code ...

  • Re: error '800a0046' Permission denied

    Mar 31, 2009 03:06 PM|v_rangasamy|LINK

     i'm getting error when i call this code

    dim doc = new doc();   // where i'm creating new document

  • Re: error '800a0046' Permission denied

    Mar 31, 2009 04:08 PM|tomkmvp|LINK

    That line alone is pretty much useless in telling me anything, but I'd have to say don't do that ...

    http://support.microsoft.com/kb/257757

  • Re: error '800a0046' Permission denied

    Apr 01, 2009 05:47 AM|v_rangasamy|LINK

     

    error we are getting:
    Microsoft VBScript runtime error '800a0046'

    Permission denied: 'CreateObject'

    code used:
    Public Function CreateWordDoc() As Variant

    'Dim objWord                 As Word.Application
    Dim objWord As Object
    Set objWord = CreateObject("Word.Application")  // here i'm getting error

  • Re: error '800a0046' Permission denied

    Apr 01, 2009 10:15 AM|tomkmvp|LINK

    v_rangasamy

    Set objWord = CreateObject("Word.Application")

    Don't do that!

    http://support.microsoft.com/kb/257757

  • Re: error '800a0046' Permission denied

    Apr 01, 2009 10:57 AM|v_rangasamy|LINK

    ok but instead of this what i have to do?

    plzz help me. I didn't understand from the link you given to me in last post.

    Thanks!

  • Re: error '800a0046' Permission denied

    Apr 01, 2009 11:18 AM|tomkmvp|LINK

    Essentially the link explains that Office was never meant to be used as a server process.  Not only will you run into boat load of problems, it's also not supported.

    v_rangasamy

    ok but instead of this what i have to do?

    I don't know - what are you trying to do?  Why do you need to create a Word document on the server?