403 Error

Last post 11-06-2008 6:54 PM by cybrduck. 9 replies.

Sort Posts:

  • 403 Error

    11-07-2004, 3:31 PM
    • Member
      45 point Member
    • Tinbeard
    • Member since 11-07-2004, 3:21 PM
    • Posts 9
    Hello,

    I'm totally new to asp.NET so I apologise if I'm a little clueless.

    I'm trying to connect to an Access database from Dreamweaver 2004 MX, everything seems to be fine until I complete the connection string, I then recieve a 403 - Forbidden error.
    I've tried everything I can think of, Cassini seems to be running fine, Dreamweaver "sees" the server running but no matter what I put into the string (and even if I leave it totaly blank) I get the same error.

    This is the string:

    Provider=Microsoft.Jet.OLEDB.4.0;
    Data Source=c:\webs\test\database\test.mdb;
    User ID=[username];
    Password=[password];

    I've run it with the user and password fields deleted but still no joy



    In cassini the application path is set to "C:\webs\test" and the server is http://localhost/webs/test/

    I'm using XP home and I', assuming its a permission problem but I've no idea where or how to check it correctly, I'd be grateful for any help.

  • Re: 403 Error

    11-08-2004, 1:52 PM
    • Contributor
      2,680 point Contributor
    • imleggy
    • Member since 05-05-2003, 2:09 PM
    • England
    • Posts 536
    The 403 would suggest that you are denied access to the page itself, not the database. You will need to check this first.
    Dave Legg
  • Re: 403 Error

    11-08-2004, 2:29 PM
    • Member
      45 point Member
    • Tinbeard
    • Member since 11-07-2004, 3:21 PM
    • Posts 9
    If I create a sample page, with say some text,images and a form it all displays fine when I test it frome dreamweaver. However if I try to create a database connection I get the 403 error. It seems to be something with either the folder the database is stored in or some permission problem with the database.
  • Re: 403 Error

    11-10-2004, 3:54 PM
    • Star
      8,255 point Star
    • bdesmet
    • Member since 08-04-2002, 10:39 AM
    • Belgium
    • Posts 1,651
    And you're always calling it locally using http://localhost? Then we can elimante that the error is caused by using Cassini remotely (which is not supported). Although it looks strange to me (Cassini runs in the context of the logged on user), check the permissions on the whole folder and make sure you have full rights over there (and the mdb is not marked as read-only). To do this, disable "simple folder sharing" in the Folder Options dialog and go to the security tab of the folder's properties in Windows Explorer. Eventually, try (but remove it if it doesn't work) to add the Everyone group with full permissions on the folder).
    Bart De Smet [MVP]



    Visit www.msdn.be, www.bartdesmet.net
  • Re: 403 Error

    11-12-2004, 4:44 AM
    • Member
      45 point Member
    • Tinbeard
    • Member since 11-07-2004, 3:21 PM
    • Posts 9
    Thanks for the suggestions, I've tried it with a shared folder with access to everyone and also downloaded the Nwind.mdb sample database just incase my test database was corrupt in some way, but still no luck.
    Think i'll just setup a hosting account somewhere and do it that way to get around the problem I seem to have locally.


  • Re: 403 Error

    11-28-2004, 4:25 AM
    • Member
      5 point Member
    • hel420
    • Member since 11-28-2004, 4:04 AM
    • Posts 1
    try comment these codes in Request.cs file
    // Limit to local requests only
    //if (!_conn.IsLocal) {
    // _conn.WriteErrorAndClose(403);
    // return;
    //}
  • Re: 403 Error

    01-19-2005, 9:35 AM
    • Member
      15 point Member
    • Thanatos81
    • Member since 01-19-2005, 9:32 AM
    • Posts 3
    Works fine, hel420. But perhaps you should have mentioned that a recompile is needed.
  • Re: 403 Error

    01-19-2005, 2:40 PM
    • Contributor
      2,680 point Contributor
    • imleggy
    • Member since 05-05-2003, 2:09 PM
    • England
    • Posts 536
    Changing the code would have no effect if you did not recompile would it?
    Dave Legg
  • Re: 403 Error

    06-04-2005, 1:21 PM
    • Member
      55 point Member
    • Skerb
    • Member since 06-03-2005, 1:32 AM
    • Posts 11
    I have this same problem, but I have no idea of how to solver it.  Im the only user on my computer, so I cant change the security of my folders, because I should have full permissions for everything...This is really bugging me, I have no idea where to go from here.  I guess Ill try that script and see if I can get that to work.
  • Re: 403 Error

    11-06-2008, 6:54 PM
    • Member
      2 point Member
    • cybrduck
    • Member since 11-06-2008, 6:52 PM
    • Posts 1

    The problem is the settings for your IIS server.  Make sure the root folder or any folder that the page uses such as the master pages is set to use scripting.  Under the home directory tab, the Execute Permissions should be set to "Scripting".

Page 1 of 1 (10 items)