473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Application Pool issue

markrawlingson
346 Expert 100+
Hey guys,

Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance.

I discovered this morning an inconsitency within the application pools of our website. Basically, we have a maze of cluttered folders and other gargabe within the website - with one main folder, called /secured/ running from the root of the website, which handles all the applications within the website.

I noticed this morning that the /secured folder may have a different application pool than the root of the website.

I've got a couple files running from folders in the root (/platform & /css) which handle platform level session and application information (ASP). This information MUST be carried over to the pages within the /secured folder - in fact i need to be able to access this session information everywhere within the site, not just specific files in specific folders (kind of defeats the purpose..) - but it doesn't. In fact, the session information within the root folder(s) and the /secured folder seem to be completely different.

I wrote a value to a session variable within the /secured folder and then visited a page within one of the root subsidiary folders (/platform) and the value did not carry over. It's a session variable so it should. I wrote a value of "1" to it, and it showed up in the file within /platform as "0" (because I had previously set it's value to "0" in this file, but later removed the code as it wasn't working.)

I've taken a look, with my limited knowledge, at IIS and the /secured folder has kind of a gear looking icon over it (which I'm assuming means it's a member of an application pool), but the folders /css and /platform do not have this icon over them. When I go to properties in the /secured folder it shows me the application pool name, and I have the ability to change which application pool it belongs to. The /css & /platform folders have the same application pool name but the drop down is greyed out and I am unable to change which app pool it belongs to, which makes me think it's not part of one. When I expand the application pool in question, I see that the folder /secured is a member, among many others which i also believe to be subfolders rather than whole websites. The website name itself is NOT listed in this list, nor are the /css and /platform folders - so i'm pretty sure they're not in the same application pool as the /secured folder which means that if i set a session variable called Session("whatever") it will have different values within the different folders.

As I stated above I don't have the greatest knowledge of IIS, so i could be WAY off base here - but if this makes sense to any of you IIS experts, I guess the real question would be: How do i get the /css and /platform folders to become members of the same application pool? Or better yet, remove the /secured folder from the app pool and add the whole website.

Any insight into this would be greatly appreciated.

Thank you!
Sincerely,
Mark
Feb 6 '08 #1
5 4317
markrawlingson
346 Expert 100+
Update:

I was wrong, they are in the same application pool, there seems to be a massive list of virtual directories which are all subfolders of the root web app in there though, rather than just the app pool servicing just the web app itself. Just to be sure i even added the two sub folders (/platform & /css) as virtual directories just like everything else is in the app pool, and getting the same problem.

I wrote out the SessionID on a page within /secured folder and got 277855185 - then i wrote out the SessionID on a page in /platform and got 277855186

So there is DEFINITELY something screwy going on with the session infrastructure.

Anyone have any idea what the problem could be?

I should also add that this application was developed years ago before I came along and the lead web developer on the project developed it with FrontPage, and thus there is a ton of frontpage junk interfering.. it's even in the Session_OnStart() of the global.asa (i removed it though, thinking it could be interfering with the session information..same deal)

Sincerely,
Mark
Feb 6 '08 #2
kenobewan
4,871 Expert 4TB
This isn't very helpful, but in a situation like this where I don't know the cause I usually take a couple of steps. Backup the original version. Switch off all error handling to see if I get useful error. Use any debugging tools available. Systematically comment out code or exclude files until I have a working version and then work forward.

You may also need to learn more about application pools:
IIS and ASP.NET: The Application Pool
Feb 7 '08 #3
markrawlingson
346 Expert 100+
Thanks Kenobewan,

That's always my methodology too. Sometimes I have to completely rip something apart and take it right back to basics to figure out the problem. In this case, the company doesn't have a test server so they do all development live while people are using the product.. so I have to be fairly careful while ripping apart things within the actual server itself.

In this case, I was able to fix the problem. Took me 7 bleeping hours, but I fixed it.

Some genius created about 30 virtual directories within the web site itself. All of them are subfolders serving the master application. So you had basically an application pool listing like this..

domain.com
/folder
/folder
/folder
/folder
/folder
/folder/folder/folder
/folder/folder
etc..

Each one of the virtual directories seems to have had its own session state unique to itself. So as I tried to retrieve information from a session variable which was set on one section of the site, I was essentially trying to retrieve information that was set by a completely different session state. In fact there were about 30 different session states, within the one website. Wow, right? Yeah, I know.. that was my reaction too.

Anyway, I killed the virtual directories because they didn't need to be there in the first place, and voila!

Thanks for your time by the way!

Sincerely,
Mark
Feb 9 '08 #4
kenobewan
4,871 Expert 4TB
Ouch! Beg, steal or borrow a test server, they are worth their weight in gold. Just make sure that it has the same platform as the production. Glad you solved the problem :).
Feb 9 '08 #5
markrawlingson
346 Expert 100+
hahaha, yeah 'Ouch' is right. It's a major annoyance, and dangerous too. I told them over a year ago we need one, but they haven't listened so far - despite a few minor catasrophes which have occurred as a result. They've done a lot of things in a unorthadox Manner. However, I'm slowly sorting through the mess and bringing them up to par with how we do things these days. Which is one reason why solving this particular issue was a major breakthrough. For the amount of $$$ they're paying for their production server, there should be a test server thrown in for free - lol.

Sincerely,
Mark
Feb 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
1
by: Gerry | last post by:
I have an ASP.NET application installed on a Windows Server 2003 computer. MS Excel is also installed on the same computer. And yes, the application makes use of Excel. When the Application Pool...
1
by: mingki | last post by:
Hi Developers, I am a .Net developer of a Large Online Retailling Company. I would like to have your help on a Connection Pool issue. Recently we have developed a Web Application on ODP .Net...
6
by: Wayne Smith | last post by:
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2...
3
by: Vlad Hrybok | last post by:
Hi all, I recently installed 64 bit version of Vista hoping to make it my primary development setup. I was able to do work with IIS7 and ASP.NET 2.0/Visua Studio 2005 combo, but hit a roadblock...
2
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have 2 web servers on which I am running a .net version 2 application, both of which I want to use an application pool with the same domain user's id and password to tighten security. I have...
7
by: Bolwerk | last post by:
Hello I got a client who uses what appears to be ASP.NET 2.0. I come from a UNIX/PHP/Apache background, and I'm not too familiar with ASP.NET. He had some permissions problem a few weeks ago...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.