By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

cannot view web pages after transferring files to web server

P: n/a
(Not sure whether it is a general aspnet problem or a specific security
problem, hence posting it in 2 groups).

This will solve for us a number of problems. I have developed a website on my
local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0.
Backend is a SQL Server 2000 database. All queries and webforms work
beautifully on my local machine (file system web project).

However, when I copy this website to a virtual directory on an IIS server, I
keep getting permissions denied error, when I try to access any aspx page on
the website.

This is what I have done:
1. I have created an ASPNET login for SQL Server and gave it rights to the
database.

2. I am using Windows Authentication (IIS Directory Security tab) and
Anonymous access is Unchecked.

3. There is <identity impersonate="true" /> line in the web.config file.

4. Even though I have Windows authentication checked in IIS, I have the
following in the web.config file:
<authentication>
<forms name=".ASPXFORMSAUTH" loginUrl="logincs.aspx" />
</authentication>

Don't know what the above means - it was generated as part of my using the
ASP.NET configuration in Visual Web Developer.

5. aspnetdb database is a SQL server 2005 database, on the same machine as
IIS.

6. I have tried logging in as many different types of users (with full
rights and so on) but I cannot open a single page on the machine with the IIS
server.

Pleas help if you can -

Thanks

Jay

Apr 25 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I don't think you need to turn anonymous access off to enable forms based
authentication.

"JayD" wrote:
(Not sure whether it is a general aspnet problem or a specific security
problem, hence posting it in 2 groups).

This will solve for us a number of problems. I have developed a website on my
local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0.
Backend is a SQL Server 2000 database. All queries and webforms work
beautifully on my local machine (file system web project).

However, when I copy this website to a virtual directory on an IIS server, I
keep getting permissions denied error, when I try to access any aspx page on
the website.

This is what I have done:
1. I have created an ASPNET login for SQL Server and gave it rights to the
database.

2. I am using Windows Authentication (IIS Directory Security tab) and
Anonymous access is Unchecked.

3. There is <identity impersonate="true" /> line in the web.config file.

4. Even though I have Windows authentication checked in IIS, I have the
following in the web.config file:
<authentication>
<forms name=".ASPXFORMSAUTH" loginUrl="logincs.aspx" />
</authentication>

Don't know what the above means - it was generated as part of my using the
ASP.NET configuration in Visual Web Developer.

5. aspnetdb database is a SQL server 2005 database, on the same machine as
IIS.

6. I have tried logging in as many different types of users (with full
rights and so on) but I cannot open a single page on the machine with the IIS
server.

Pleas help if you can -

Thanks

Jay

Apr 25 '06 #2

P: n/a
I forgot to mention that I don't have forms-based authentication - it is only
Integrated Windows authentication. We have a LAN, and Active Directory
accounts etc. Database access is via specified groups of users.

What we want is - if a logged-in Windows user has database rights, they
should be able to see data using Internet Explorer and the web forms. Right
now, even domain admins with full rights can't open the web pages after
transferring to the http server. No problems on my local machine using the
asp.net in-built development server.

Thanks

Jay

"clickon" wrote:
I don't think you need to turn anonymous access off to enable forms based
authentication.

"JayD" wrote:
(Not sure whether it is a general aspnet problem or a specific security
problem, hence posting it in 2 groups).

This will solve for us a number of problems. I have developed a website on my
local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0.
Backend is a SQL Server 2000 database. All queries and webforms work
beautifully on my local machine (file system web project).

However, when I copy this website to a virtual directory on an IIS server, I
keep getting permissions denied error, when I try to access any aspx page on
the website.

This is what I have done:
1. I have created an ASPNET login for SQL Server and gave it rights to the
database.

2. I am using Windows Authentication (IIS Directory Security tab) and
Anonymous access is Unchecked.

3. There is <identity impersonate="true" /> line in the web.config file.

4. Even though I have Windows authentication checked in IIS, I have the
following in the web.config file:
<authentication>
<forms name=".ASPXFORMSAUTH" loginUrl="logincs.aspx" />
</authentication>

Don't know what the above means - it was generated as part of my using the
ASP.NET configuration in Visual Web Developer.

5. aspnetdb database is a SQL server 2005 database, on the same machine as
IIS.

6. I have tried logging in as many different types of users (with full
rights and so on) but I cannot open a single page on the machine with the IIS
server.

Pleas help if you can -

Thanks

Jay

Apr 25 '06 #3

P: n/a
You can't use Windows Integrated like that. You'll need Basic

Jeff
"JayD" <Ja**@discussions.microsoft.com> wrote in message
news:31**********************************@microsof t.com...
I forgot to mention that I don't have forms-based authentication - it is
only
Integrated Windows authentication. We have a LAN, and Active Directory
accounts etc. Database access is via specified groups of users.

What we want is - if a logged-in Windows user has database rights, they
should be able to see data using Internet Explorer and the web forms.
Right
now, even domain admins with full rights can't open the web pages after
transferring to the http server. No problems on my local machine using the
asp.net in-built development server.

Thanks

Jay

"clickon" wrote:
I don't think you need to turn anonymous access off to enable forms based
authentication.

"JayD" wrote:
> (Not sure whether it is a general aspnet problem or a specific security
> problem, hence posting it in 2 groups).
>
> This will solve for us a number of problems. I have developed a website
> on my
> local machine (part of a LAN) using Visual Web Developer, with ASP.NET
> 2.0.
> Backend is a SQL Server 2000 database. All queries and webforms work
> beautifully on my local machine (file system web project).
>
> However, when I copy this website to a virtual directory on an IIS
> server, I
> keep getting permissions denied error, when I try to access any aspx
> page on
> the website.
>
> This is what I have done:
> 1. I have created an ASPNET login for SQL Server and gave it rights to
> the
> database.
>
> 2. I am using Windows Authentication (IIS Directory Security tab) and
> Anonymous access is Unchecked.
>
> 3. There is <identity impersonate="true" /> line in the web.config
> file.
>
> 4. Even though I have Windows authentication checked in IIS, I have the
> following in the web.config file:
> <authentication>
> <forms name=".ASPXFORMSAUTH" loginUrl="logincs.aspx" />
> </authentication>
>
> Don't know what the above means - it was generated as part of my using
> the
> ASP.NET configuration in Visual Web Developer.
>
> 5. aspnetdb database is a SQL server 2005 database, on the same machine
> as
> IIS.
>
> 6. I have tried logging in as many different types of users (with full
> rights and so on) but I cannot open a single page on the machine with
> the IIS
> server.
>
> Pleas help if you can -
>
> Thanks
>
> Jay
>

Apr 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.