VB Component debugging as anonymous access

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

  1. #1

    Default VB Component debugging as anonymous access

    Hello,

    I'd like to debug a VB component without activating Basic/Integrated
    security on the Web Server, just the anonymous access. I need this to refine
    a problem as I am having with problems with permissions when connecting with
    anonymous user / non-admin users to my website.

    To better illustrate the problem, I will describe my whole situation here:

    Intermitent errors were occuring on the testing of my application. The
    tester access my computer (which acts as the development server in the
    process) to test, and I develop locally, both the ASP Pages and the VB
    Component. On the mornings before I arrived, usually the tester got this
    error when acessing the application:

    ORA01843 - Not a valid month
    Or
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0.

    Of course, this was a date conversion problem as we use the European format
    (dd/mm/yyyy), so I checked the locales, everything within the ASP pages and
    tried to debug the error. Funny thing is that the error never ever ocurred
    when I was debugging, but when I stopped the debugger and reloaded the page,
    the error appeared again. As with such intermitent errors, I tackled down
    the problem and found out that it just ocurred when ANOTHER user that was
    not me (with admin rights) accessed the ASP application FOR THE FIRST time.

    If it I were the first user to access the asp application (after a server
    reboot, for example), the error never ocurred - both for me and for any
    other user. If any other user had been the first, the error kept ocurring
    both for them and for me as well, but NEVER if I debugged.
    With my experience struggling many times with authentication issues with
    IIS, I soon realized that this was a permission problem or some problem in
    the COM+ application security settings. I am no expert in COM+ or security
    for that matter to find out if thats the problem. But I cant track down this
    problem until I can debug on my machine 'impersonating' the anonymous user
    that access my page.

    The error always happens if the NTLM/Basic security s disabled in the IIS
    App, regardless if its me or any other person. But I cant debug also.

    The different users are causing the date to be interpreted differently by my
    VB code, but I dont know where exactly. Thats why I need the debugger so
    badly. I appreciate any help on this matter.

    TIA,

    --
    --------------------------------------
    Carlos Vítor Barros
    - Web Developer
    --------------------------------------


    Carlos Vítor Barros Guest

  2. Similar Questions and Discussions

    1. IIS 6.0 with anonymous access and on MX 6.1
      I was having a hard time setting up IIS 6.0 with anonymous access on MX6.1 I was able to run .asp extension but when running .cfm, I got the HTTP...
    2. Anonymous & Authenticated Access (Together?)
      I'm trying to create a web service that contains functions available to both Anonymous & Authenticated access. Now I am having problems with...
    3. Network File access using anonymous access
      I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our...
    4. Please help with iis/asp.net config for anonymous access.
      Is this a virtual directory on a network share? Have you supplied the correct crendentials when setting up the virtual directory? If this is not on...
    5. debugging htc component
      Can any one help me how to debug htc components. thanks
  3. #2

    Default Re: VB Component debugging as anonymous access

    If anybody is interested in this solution I just have found it.
    I had a problem on my Windows XP SP2 Development machine, that was
    formatting the date on the LCID 1046 (pt-br) as dd/mm/yyyy, but when
    displayed or converted to strings via CStr() (but not FormatDateTime or
    similar), it appeared as 01/06/aaaa for example.

    After changing the control panel regional settings, I had no effect on this
    behavior both in ASP and in my component, but everything else worked fine.
    The problem was finally solved when I applied the same regional settings to
    all users on my machine (in the case, the problem was in the IUSR and IWAM
    users).

    Regards,

    --
    --------------------------------------
    Carlos Vítor Barros
    - Web Developer
    --------------------------------------
    "Carlos Vítor Barros" <vbarros@acquamanager.com> escreveu na mensagem
    news:e3QHv4NhGHA.3956@TK2MSFTNGP02.phx.gbl...
    > Hello,
    >
    > I'd like to debug a VB component without activating Basic/Integrated
    > security on the Web Server, just the anonymous access. I need this to
    > refine a problem as I am having with problems with permissions when
    > connecting with anonymous user / non-admin users to my website.
    >
    > To better illustrate the problem, I will describe my whole situation here:
    >
    > Intermitent errors were occuring on the testing of my application. The
    > tester access my computer (which acts as the development server in the
    > process) to test, and I develop locally, both the ASP Pages and the VB
    > Component. On the mornings before I arrived, usually the tester got this
    > error when acessing the application:
    >
    > ORA01843 - Not a valid month
    > Or
    > ORA-01841: (full) year must be between -4713 and +9999, and not be 0.
    >
    > Of course, this was a date conversion problem as we use the European
    > format (dd/mm/yyyy), so I checked the locales, everything within the ASP
    > pages and tried to debug the error. Funny thing is that the error never
    > ever ocurred when I was debugging, but when I stopped the debugger and
    > reloaded the page, the error appeared again. As with such intermitent
    > errors, I tackled down the problem and found out that it just ocurred when
    > ANOTHER user that was not me (with admin rights) accessed the ASP
    > application FOR THE FIRST time.
    >
    > If it I were the first user to access the asp application (after a server
    > reboot, for example), the error never ocurred - both for me and for any
    > other user. If any other user had been the first, the error kept ocurring
    > both for them and for me as well, but NEVER if I debugged.
    > With my experience struggling many times with authentication issues with
    > IIS, I soon realized that this was a permission problem or some problem in
    > the COM+ application security settings. I am no expert in COM+ or security
    > for that matter to find out if thats the problem. But I cant track down
    > this problem until I can debug on my machine 'impersonating' the anonymous
    > user that access my page.
    >
    > The error always happens if the NTLM/Basic security s disabled in the IIS
    > App, regardless if its me or any other person. But I cant debug also.
    >
    > The different users are causing the date to be interpreted differently by
    > my VB code, but I dont know where exactly. Thats why I need the debugger
    > so badly. I appreciate any help on this matter.
    >
    > TIA,
    >
    > --
    > --------------------------------------
    > Carlos Vítor Barros
    > - Web Developer
    > --------------------------------------
    >
    >

    Carlos Vítor Barros 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