locked
error '800a0046' Permission denied RRS feed

  • Question

  • User1042252450 posted

    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!

    Tuesday, March 31, 2009 11:41 AM

Answers

All replies

  • User1632528892 posted

    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,

    Tuesday, March 31, 2009 12:50 PM
  • User1042252450 posted

    how to do process monitor in VB?

    plzz help me.

    Tuesday, March 31, 2009 1:53 PM
  • User-823196590 posted

       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 ...

    Tuesday, March 31, 2009 2:06 PM
  • User1042252450 posted

     i'm getting error when i call this code

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

    Tuesday, March 31, 2009 3:06 PM
  • User-823196590 posted

    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

    Tuesday, March 31, 2009 4:08 PM
  • User1042252450 posted

     

    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

    Wednesday, April 1, 2009 5:47 AM
  • User-823196590 posted

    Set objWord = CreateObject("Word.Application")

    Don't do that!

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

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, April 1, 2009 10:15 AM
  • User1042252450 posted

    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!

    Wednesday, April 1, 2009 10:57 AM
  • User-823196590 posted

    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.

    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?

    Wednesday, April 1, 2009 11:18 AM