Access to the database file is not allowed. - visual-studio-2010

I've just publish my Web Site via Visual Studio to my Domain name (Combell)...
So, when I try to access to my web site in my web browser, My Web Site works... BUT when I try to log on I got this error:
Access to the database file is not allowed. [ 1884,File name = D:\WebSites\tennisonlinebiz\www\App_Data\Tennis.sdf,SeCreateFile ]
I've found one solution in MSDN forum: http://forums.asp.net/t/1698244.aspx/1/10
This solution consists to change the permission property of the APP_Data folder in READ & Write, I've done this with FILEZilla but commands seem wrong:
CWD /
Response : 250 CWD command successful.
Command : SITE CHMOD 777 DAL
Response : 500 'SITE CHMOD 777 DAL': command not understood
Statut : Définir les permissions de '/Models' à '777'
Command : SITE CHMOD 777 Models
Response : 500 'SITE CHMOD 777 Models': command not understood
Can you help me to find a solution ? Thanks in advance

I have got a full control of my Microsoft Web Server 2008 so was able to change it directly. I have added this user IIS_IUSRS for this folder App_Data with all permissions except Full Control.
I can just guess if you are doing it through ftp, it adds probably Everyone which is ok but you are just not able to do it through FileZilla ftp? Try Total Commander or anything else or contact your provider to add it manually.

Check the user which is configured in IIS to access the physical path of the site. You can check by Test settings option in the Basic settings tab of the site.
Again the configured user should be configued as App pool user.Check the Advanced settings of the App pool which the site runs, and the Identity of the app pool should be the same user which we configured to access the physical path of the site.
This should resolve this error.

Related

Installing laravel on server

I am installing laravel on server via putty. I linked public with public_html. Files were located inside laravel folder above public_html. After installation its showing "Internal Server Error"
The server encountered an internal error or misconfiguration and was unable to complete your request.
Usually when using cPanel it will usually require your index.php to have the permissions 644 otherwise you'll get a 500 error.
You can change this in cPanel by doing the following:
Login to your cPanel (if not already there)
Click File Manager.
Click the name of the file for which you would like to change the
permissions.
Select the Change Permissions link at the top right of the page.
Select the permissions you would like to set for the file
Owner - Read and write
Group - Read
World - Read
Click Change Permissions.
Alternatively, if you have ssh access you could run the following command on the server:
chmod 644 path/to/index.php

Directory Listing Denied - FileZilla

I have a website template that I uploaded to my ftp server using FileZilla. However when I visit the domain I get the error:
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
in the console it displays a 403 forbidden error. After researching I recognize that the default web page inside the root directory is not set. All my attempts to set the default page have failed. Here is what I tried:
1) Logged into ftp server with FileZilla. Clicked File > Site Manager > Advanced and set the root directory. The root directory contains a file that says index.html
2) Created a .htaccess file in the root that contains the text "DirectoryIndex index.html"
Solutions involving IIS are welcomed as well.
Any advice on how I can get this fixed?
Unfortunately I did not have permissions to access the actual server files so I contacted the hosting company.
They resolved my issue I believe using the approach #alvits recommended, however they have not returned my request to confirm how they solved it.
Thanks for the support

Jelastic built-in file browser did not show subfolders

I've deployed application in http://app.jelasticloud.com/ .
Application has file structure:
- www
-- vendors
--- moaction
---- moaction
--- twig
---- twig
The problem is that folders www/vendors/moaction/moaction and www/vendors/twig/twig are not accessible via file browser.
How did you deploy the application? From zip/tar, FTP, git etc.? If FTP, did you modify chmod - the problem may be that the Jelastic dashboard doesn't have read permissions there due to chmod values.
Alternatively it could be caused by browser cache; did you try logout/login again?
What did your hosting provider's support say about the issue? They can see the details at the server level to verify any issue at that side...

Changing permissions on Windows for FTP via XAMPP

I am developing a rather basic CMS locally and can not ftp due to permissions problems. I have FileZilla FTP server running in XAMPP and can connect without problems but receive error "550 Permission Denied" when my code tries to upload via ftp.
I tried changing permissions via my FileZilla FTP client but without success (presumably because it is windows- error: "504 Command not implemented for that parameter"). I also tried going to the target folder's properties --> security --> permissions and checking "full" for the user XAMPP is running under.
So how do I setup the permissions to allow my CMS to use ftp in XAMPP?
Finally figured it out. For anyone else who has this problem, there is no need to set permissions in Windows. Instead, on the FileZilla FTP server admin interface select edit --> users --> shared folders and check 'write'.
For a fix of this make sure that the root folder is allowed to write and pass rights permission. had this same issue for a script to run on local web xampp server windows xp.. just change the root file attributes to 755 then try it if that don't work try 777. should work now... hope this works for you... as it did me.
If that does not work go to your htdocs folder in your xampp directory then right click it and check properties .. if read only is ticked .. untick it and apply to all sub folders and files
You're behind firewall? Try to allow FileZilla server program in Firewall.

Directory access denied -- in server(bluehost)?

When i completed my project in codeigniter and uploaded to server it show directory access denied? What to do ...i have configured in config file but it doesn't work..
You will need to change read/write permissions for the directory hosting your codeigniter application. Refer to your hosting company's help section to see how this can be done.

Resources