Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2004, 09:27 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIS problem access - blood pressure rising


I have written a simple .aspx website and its running on a PC
acting as an intranet server (running IIS). I can do everything
when I surf to the website from the PC that is hosting the .aspx
pages (ie the localhost).

However when I surf to the website from another PC on my network - I can surf to all .aspx webpages BUT my problem is :

if I surf to a .aspx page from a different PC, I seem unable to
store data in the session variable. Its as if the remote user
does not have permission to get the host webserver to store
variables as session objects. When I remotely use .aspx pages that
use session data - the session data is coming back as zeros.

I am using impersonation set on in my machine.config.
I am using unknown user as ASPNET with a password.

Do I need matching passwords anywhere or am I missing something?

Any help muchly appreciated as I'm going bananas with this one.

Cheers and TIA.
 
Old June 30th, 2004, 09:39 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you sure that the problem client accepts cookies? I can't think of anything specific to a client that would prevent session variables from functioning apart from a cookie problem.
 
Old June 30th, 2004, 11:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Session is not depended to ur Client or PC or Network or ...
Its a Server object & genrated in Server, so when ever u run & surf ur pages Session will created in ONE Server.
What data u cant store exactly, I dont think its a session problem.

Always:),
Hovik Melkomian.
 
Old July 1st, 2004, 04:08 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can run the website fine on one PC but if I move it to another
I have the problem storing session data. Is it something to do
with permissions on the hosting PCs IIS/ .NET files ?

The IIS must store session data in a directory on the hosting PC?
If so - could it be a permissions thing on the hosting PC ?

 
Old July 1st, 2004, 08:29 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The IIS machine stores session data in process (memory) by default. The other options are SQL server or state server. Either way, it is doing local (to the server) operations under a single user account. It doesn't matter who the client is, the IIS "user" is always the same. If it works with one client, but not with another, than the problem lies with the client.

Try createing a empty ASPX with only this line in the top:
<%@ Page Trace="true"%>

This will output trace information which includes the session ID. Put the file int the root directory of the application in question. Load the page up in a browser on the problem client. Refresh it a few times and see if the session ID changes. If it changes, then the client isn't sending cookies back to the server so the server has no idea what the client's session ID is.
 
Old July 1st, 2004, 08:58 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok Pete - I just did that and the session id kept changing
everytime I refreshed.

How do I get the client to send cookies and get the server side
to accept them ?

 
Old July 1st, 2004, 09:28 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The server will accept cookies, the client is another story. Check your security settings in the browser. What kind of environment are you running in? Is there some reason that one client could have cookies blocked and another not?
 
Old July 1st, 2004, 10:38 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All clients cannot set session data on the server web site.
If I run a browser on the hosting server - the session
data gets set ok.

If I use another server to host the same website files; then all
clients can set session data ok on this other server.

Therefore - me thinks - it must a config problem on the server
machine or its IIS installation ?

 
Old July 13th, 2004, 05:20 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This must have been a weird IIS problem. I did a complete
re-install of my IIS and reloaded the website files.

Everything then worked ok.

Sorry if I wasted anyones time and many thanks for all
your help and suggestions.

Regards
Chas.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to access IIS metabase mydesignfirm ASP.NET 2.0 Basics 6 January 14th, 2008 03:59 AM
a problem of access the IIS metabase leocanming ASP.NET 2.0 Basics 0 March 24th, 2006 04:49 AM
Access Denied to: from apache to iis san2k .NET Web Services 0 June 11th, 2004 07:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.