IIS App, VB, and Oracle: Permission Denied?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default IIS App, VB, and Oracle: Permission Denied?

    Hello.

    My System:
    Windows 2000 Pro.
    Visual Basic 6.0
    Oracle9i
    - The database I am accessing is installed on this machine
    - Development of our software is also on this machine

    The program is an IIS Application created in VB 6.0 Enterprise
    Edition.
    Since the main program I am working on will not connect to the DB I
    have created a test program. The webclass file contains the following:

    Option Explicit
    Option Compare Text
    Public oras as OraSessionClass
    Public orad as OraDatabase

    Private Sub WebClass_Start()
    On Error Goto lerror

    Response.Clear
    Response.Write("Start<BR>")
    Set oras = CreateObject("OracleInProcServer.XOraSession")
    Response.Write("OpenDB<BR>")
    Set orad = oras.OpenDatabase("mydb","user/pwd",CInt(0))
    If orad.ConnectionOK Then
    Response.Write ("Connected...<BR>")
    End If
    Response.Write ("END")
    Response.End
    Exit Sub

    lerror:
    Response.Write ("ERROR: " & Err.Number & "<BR>")
    Response.Write ("DESCR: " & Err.Description & "<BR>")
    Response.End
    End Sub

    Of course, under references I have checked:
    Oracle InProc Server 4.0 Type Library
    OraOLEDB 1.0 Type Library

    which are located in C:\oracle\ora9\bin\

    Running from VB is OK, so the output looks like:

    Start
    OpenDB
    Connected...
    END

    Now I run the package and deployment wizzard and use Standard Setup
    Package, since I am installing this on the same machine, I don't need
    to deploy it anywhere. I include the ASP file which access the IIS
    DLL (the code above) and do not share oip9.tlb and oraoledb.dll
    (although I've tried sharing as well which makes no difference in the
    error I get) and I install to the Application directory. I install
    to:

    C:\Inetpub\wwwroot\SUBDIR\

    where the ASP file will be accessed via Internet or network.

    I have a test html file which contains the following:
    <form action=http://localhost/SUBDIR/TEST.ASP method=POST>
    <input type="submit" value="test">
    </form>

    This will send a Post to the ASP file which will run the IIS DLL.
    Sending this post results in the following:

    Start
    ERROR: 70
    DESCR: Permission denied

    If I run from VB, it runs fine. Also, if I run from VB and keep it
    running, then use the test HTML post, the installed version also
    works?!

    I have tried adding users to the SUBDIR directory, giving them full
    access etc.

    I have been stuck on this for a while and need help.

    Please feel free to email me directly at:
    [email]victor.wozniak@modular.com[/email]
    Thanks IA.
    VicWozniak Guest

  2. Similar Questions and Discussions

    1. Permission Denied...
      I'm not sure how many people have run into this problem, but it's one that is extremely annoying. When a user submits a file to me (or anyone else),...
    2. Permission denied
      I'm running a intranet site on a NT 4.0 IIS 4 server. I have a page that uses CDONTS. I recently change this intranet application to run as an...
    3. ocx permission denied
      I've updated an ocx (using VB6) that is currently being used in an asp 3.0 application. I created an internet package(using VB6) containing the...
    4. permission denied WHY?
      Hi! I wrote this script and executed on my server, with php 4.1.2 <?php $fp = fopen('test.txt', 'w'); fwrite($fp, "Bla bla"); fclose($fp); ...
    5. Permission Denied (in FTP)
      Hello, I'm having some slight issues. I have a script which creates a directory and then copies a blank file into it 4 times each with different...
  3. #2

    Default Re: IIS App, VB, and Oracle: Permission Denied?

    Sorry, that email address should be:

    [email]victor.wozniak@modulary.com[/email]
    VicWozniak Guest

  4. #3

    Default Re: IIS App, VB, and Oracle: Permission Denied?

    Thanks for all you help! (being sarcastic... no one replied)

    I figured it out myself.

    There was a VB runtime dll which I was installing on the same machine
    which has VB 6 installed on. Doing so created the problem. Not
    including this dll was the trick to makes the program work on the
    development computer.

    Of course, to have this run on any other machine which does not have
    VB 6 installed, this dll must be included.

    I hope this helps someone else out there.

    Wankers.
    VicWozniak Guest

  5. #4

    Default Re: IIS App, VB, and Oracle: Permission Denied?

    I don't feel that I'm a wanker for not answering.

    Ray at work

    "VicWozniak" <vwozniak@telus.net> wrote in message
    news:1e5d5a39.0311071349.3863014c@posting.google.c om...
    > Thanks for all you help! (being sarcastic... no one replied)
    >
    > I figured it out myself.
    >
    > There was a VB runtime dll which I was installing on the same machine
    > which has VB 6 installed on. Doing so created the problem. Not
    > including this dll was the trick to makes the program work on the
    > development computer.
    >
    > Of course, to have this run on any other machine which does not have
    > VB 6 installed, this dll must be included.
    >
    > I hope this helps someone else out there.
    >
    > Wankers.

    Ray at Guest

  6. #5

    Default Re: IIS App, VB, and Oracle: Permission Denied?

    You'd only be a wanker if you knew something that could help me out
    but didn't bother to reply. If you had nothing to contribute, then
    obviously I don't expect you to reply. But if you had some knowledge
    which I possibly could have found beneficial, it would have been
    appreciated, and not replying would cast you as a wanker.

    :)

    I'm not really serious btw... I was pretty much just venting
    frustration.

    Vic... also at work

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:<ucmo5qXpDHA.2592@TK2MSFTNGP10.phx.gbl>...
    > I don't feel that I'm a wanker for not answering.
    >
    > Ray at work
    >
    > "VicWozniak" <vwozniak@telus.net> wrote in message
    > news:1e5d5a39.0311071349.3863014c@posting.google.c om...
    > > Thanks for all you help! (being sarcastic... no one replied)
    > >
    > > I figured it out myself.
    > >
    > > There was a VB runtime dll which I was installing on the same machine
    > > which has VB 6 installed on. Doing so created the problem. Not
    > > including this dll was the trick to makes the program work on the
    > > development computer.
    > >
    > > Of course, to have this run on any other machine which does not have
    > > VB 6 installed, this dll must be included.
    > >
    > > I hope this helps someone else out there.
    > >
    > > Wankers.
    VicWozniak Guest

  7. #6

    Default Re: IIS App, VB, and Oracle: Permission Denied?

    You wanker. :P

    Ray at home

    "VicWozniak" <vwozniak@telus.net> wrote in message
    news:1e5d5a39.0311101545.580b01cf@posting.google.c om...
    > You'd only be a wanker if you knew something that could help me out
    > but didn't bother to reply. If you had nothing to contribute, then
    > obviously I don't expect you to reply. But if you had some knowledge
    > which I possibly could have found beneficial, it would have been
    > appreciated, and not replying would cast you as a wanker.
    >
    > :)
    >
    > I'm not really serious btw... I was pretty much just venting
    > frustration.
    >
    > Vic... also at work

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139