Last post Jul 31, 2008 04:14 PM by JustMeInAlabama
Jun 23, 2008 01:52 PM|JustMeInAlabama|LINK
I have a disk based web that works flawlessly. I set the configuration to work with forms, roles etc. No problems. I upload it to the web server and it will not even pull up the default page. can someone help?
Web Server: Windows 2003 Standard R2 - IIS 6.0 - Asp.net allowed
Jun 23, 2008 03:05 PM|Ken Tucker|LINK
What happens when you try and pull up the website on the server?
Jun 23, 2008 03:11 PM|JustMeInAlabama|LINK
Page cannot be displayed
Jun 23, 2008 03:11 PM|devcalpoly|LINK
Disable the Windows Firewall or allow exception for http.
R2's firewall by default blocks http.
Jun 23, 2008 03:29 PM|JustMeInAlabama|LINK
Let me give a bit more information. As I said, it works fine on a disk based site. I am using Microsoft Expression Web. The site has 2 pages (default.aspx, login.aspx) and 5 folders. I then used the Microsoft Visual Web Developer 2005 Express to go in and
set the site up to use "Forms" as it's authentication so it could be used on the web. I then set up roles for users to have access to their particular folders. Everything works great on the local machine. Users are redirected to their respective folders etc.
I then went to publish it to the web server. The web server has front page 2002 extensions, asp pages, as well as asp.net enabled. It seems that the "Forms" authentication is getting thrown out or over-ridden. I can change the default.aspx to default.htm and
it brings up the page with no "forms" authentication. Are there some settings to be done to the web server in order for this to work?
Jun 23, 2008 04:30 PM|ic202|LINK
You might need to get a permition of the hosting to run the script first.
Jun 23, 2008 04:58 PM|JustMeInAlabama|LINK
I may have missed something then. I own the host server so I can give it any permissions that I need, I even created a sample site, called the page default.aspx (didn't work) ... then renamed to default.htm and it worked. Is there something server side that
needs to be installed ... added ... anything? Hate to know I worked on getting this project set up just for it not to work LOL!!
Jun 23, 2008 05:16 PM|devcalpoly|LINK
Give a shot by running aspnet_regiis.exe
Jun 24, 2008 05:21 AM|JustMeInAlabama|LINK
That seemed to solve some of the problem, the login page comes up now like it's supposed to. When I type in the user name and password it doesn't recognize the users or passwords that I had set up in :security" and "roles". Any other suggestions?
Thanks for your help!
Jun 24, 2008 08:47 AM|christiandev|LINK
Are you authenticating against a database? if so, is the database installed on the server?
Jul 31, 2008 04:14 PM|JustMeInAlabama|LINK
As I have found in the past, it is better to try to work out problems yourself as it seems to educate us faster.
I have played around with this project now for about a month. I have tried several different things from reading this group and have learned several new ideas. However, I still can't seem to get this project off the ground for some reason or another. I figure
if I explain what I am trying to accomplish someone here who has a greater knowledge of this maybe can help me through this struggle. I believe it's something small that I am missing.
My goal is to create a password protected site with five different levels of access.
My first page would of course be my default page with a logon screen.
I would like to authenticate through an access database (Username, Password, Level)
Of course once authenticated on the default page it would then send the user to their (levels) folder and pages.
As asp.net has it's roles/membership I would like to create an administration page that new users and roles could be assigned (add/delete/change password, change role if necessary) of course utilizing the access database to authenticate.
I have the whole site working in a folder on my machine.(E:\Developement\myproject) No problems at all.
I'm not sure that when I use the asp.net configuration as to what database it is storing my login/password/role information. That is one reason I'd like to use an access database. If someone has a better way of doing this I am open to suggestions, I am just
used to using access and being able to manipulate the databases.
I'm not sure about setting permissions when I try to upload it to the web server as when I try to do that the whole thing messes up.
For solving this I have set up a local server (windows 2003 Standard) and I have IIS set up on it. I have several sites set up on it from over the years and every one of them works. None of them use asp.net though.
This would be the first. I have read the literature and have the IIS set up correctly, I believe that the problem is the database of where it pulls it's information from.
I assumed that I would be able to pull this site up by either using http://servername/myproject or http://localhost/myproject after the site was uploaded to that spot. Let me be clear on that ... It does pull up, just does not function as it does off of
the hard drive. eg: Pulls up default.aspx ... type in username and password and it shows everything on the page. The page is set up so that Level1 sees a particular link, Level2 sees another, Level3 another , etc. Not login and see everything. That tells me
that the site doesn't know my role/membership.
Thanks very much for your time, I'm sure there is someone here that could lead me in the right direction.
Thanks for the previous help, I learned alot!