X-Post: Cannot Set Application Object In IIS6.0, But Could In IIS5
We have pretty simple ASP (not ASP.Net) application, which has been running fine on IIS4 and IIS5. It has now been moved to a sever running in the DMZ and managed by a 3rd party. The server is Win2003 and IIS 6.0.
Within the Globe.asa file, have an Application_OnStart SubRoutine (Visual
Basic) and it bombs out on the first line:
Application("cnSecurity_ConnectionString") = "connectionProperties"
With the error:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject failed
Globe.asa, line 25
View Replies
ADVERTISEMENT
I have a custom File management ASP application that handles Large File uploads and download from a database (30 - 40 MB files) The application works fine on IIS5 but when I relocate it to IIS6 i get an error when I file not found error when i attempt to download out of the Database. IS there a reg setting or metabase setting that i need to change to handle large blob outputs.? Sorry I can't be more specific about the error msg but that is all it give's me a File not found error. it does however work fine with small files less then 2mb in size
View Replies
View Related
I have an ASP app that grabs the logon user, and then I use GetObject to query the user's security groups. On a Windows 2000 server running IIS5, this works excellent. I then copied it to a different networks, Windows 2003 server running IIS6, and now I get permission denied on GetObject. How can get around this?
View Replies
View Related
We have our web site setup on two seperate servers. They are connected together through a BIG/IP server. I'm not sure how many of you are familiar with BIG/IP (load balancing) but I'll give you a quick explanation:
When a user goes to our site, they hit our BIG/IP server first. This server looks at our two web servers and determines which one has more resources to spare. The BIG/IP then redirects the user to that server, where they are on the rest of the time they are on our site.
So we have two web servers with duplicate web sites running. My problem is I need to run one application object between both servers. Is this possible, or is there a work-around?
View Replies
View Related
I am developing ASP application with complicated login system. There is several group of menu options. Each have form 5 to 15 sub-options.
User can work with any combination of options and sub-options and can see only these menu options which are allowed for him. "Rights rules" are store in SQL Tables and are getting after logon.
Now a questions:
1. what is the best way to store this menu structure (Session object is not allowed because it uses Cookies) ?
2. What is the best way to handle the "rights rules" ?
View Replies
View Related
Below you can find quick links to information about the Application Object. I would write a post like my CDONTS one, but I just don't have time, but when I do, I'll see if I can get one done.
An intro to the Application object, this its in JScript but its easy to change
Using the Application Object to Improve Performance
HOW TO: Declare an Array at Application Level Scope in Active Server Pages (Q165293)
A Real-World Example of Caching Data in the Application Object
W3 Schools Application Reference
HOW TO: Use the Application Object to Store ASP State
View Replies
View Related
I am trying to get to the application object from a seperate class in my ASP
application and I dont want to pass the object in as the class is inherited
to lots of other classes. So i can have something like the following:
Imports System.Web.UI.WebControls.DataGrid
Namespace Classes.Inheritable
Public MustInherit Class EntityCollection
Implements IDisposable
Private mobjDataConnection As Classes.Databases.DBConnection
Public Sub New(ByVal strSQL As String)
mobjDataConnection = Application("DataConnection")
End sub
View Replies
View Related
The following code exists in a Global.asa file:
----------------------------------------------
<%
Set Application("Thing")=Server.CreateObject("THINGDOER.THINGY")
%>
----------------------------------------------
Will the above code snippet:
create a non-object Application variable named "Thing" & place it in
the Contents collection of the Application object?
-----OR------
create an Application object named "Thing" & place it in the
StaticObjects collection of the Application object?
View Replies
View Related
There seems to be plenty of discussion about caching in the Application Object, however, I cant find any info on what realistic limitations there are and how they are measured.
What are the factors that will limit performance / storage of many individual or single large bits of data with application scope? eg database driven list boxes (that dont require up to the minute data) 10 * 100 options? 100 * 100 options? kb's? megs of info? How much can I cache?
View Replies
View Related
I'm having trouble with the workflow described bellow:
1. Asp page 1 on server A contains an iframe.
2. Asp page 1 submits a form targeted to the iframe, to Asp page 2 on
server B.
3. Asp page 2 runs in the iframe and at some point might decide to submit a
form targeted to the _top frame, to page 3 on Server B.
4. Page 3 loads in the top frame. Code:
View Replies
View Related
Rather than opening and closing a new connection to the database on every page, I have placed that connection into an Application variable. This has worked fine so far.
My issue is that I have a logoff page where it closes that connection.But this means that users who are on the application will not be able to access that connection.The obvious answer is that I don't close the database connection.But my problem is, I would like to eventually close that database connection.
How can I determine if an application variable (not session variable) exists?How can I determine that there are not any users on the application?
View Replies
View Related
My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this? Would the use of an application object work for this?
View Replies
View Related
Im trying to detect multiple logins...
Im using a application object in my global.asa, for some reason it doesnt seem to work. here is my code
<script language="vbscript" runat="server">
Sub Session_OnStart
Session("LoggedIn")=0
End Sub
sub Application_OnStart()
Application("Logged")=1
End sub
</script>
In my pages if i print the Application("Logged") value, it does not show....
View Replies
View Related
I'm looking for a way to allow only one user to access my web form at a time. so that if there is a user using my web page / html form.. then the next user is directed to another page. So only one user is allowed access at any given time .I was hoping there is a way to do this with Application variables.
View Replies
View Related
I am currently working on a small asp application. Now I would like to store the complete database connection in the application object. Note I want to store the connection NOT the connectionstring. For that purpose I wrote a small asp include which connects to the dbase and stores the connection object to the application object. However when I use this include in my pages then it doesnt work. What I am doing wrong? Here is the code:
View Replies
View Related
I'm using application variables for a web based sales tracking application. I use the variables for stuff like connection string, database name, etc. I store the values in a asp file that is included in a login page. The assignments are in a procedure that I then call on the login page. This is done everytime a user connects to
the login page.
what's happening to the variables? Are they being overwritten everytime a user accesses the page? I'm not checking for the existence of the variables. I just call the routine everytime the page is accessed. I know the values are shared for all users but, I was wondering if I should check for the existence of variables? Will it free up resources? Should I be using locks?
View Replies
View Related
Not sure if this is the correct newgroup to ask this, if it is not please direct me to the correct location. I have IIS5.1 on a Windows XP Pro SP2 machine. The extensions for ASP and asa are missing the DLL files. Like "inetsrvasp.dll" how can I get this
back. Would this be on the original CD.
View Replies
View Related
I am using MS Visual InterDev 6.0 SP5. When I connect up to web servers not
local to my machine, I am able to create the project; however the issue
comes when I am tring to create a new local project. It keeps asking me for
a user name and password. I did not setup a password.
View Replies
View Related
Having previously had this working on my XP machine, I've come back after a month to find this error occuring now. In the meantime, I had installed PHP (v4.2.3) which could easily be a factor.
The symptoms are that when I call an ASP page, I get a standard 404 error. However, if I dont specify a page, and a default/index page is found, it renders the page OK. I've uninstalled PHP & rebooted, but this didnt work.
View Replies
View Related
how to enable SSL in IIS5?
View Replies
View Related
Ive recently migrated from dirty ol' PWS on Win98 to IIS 5.1 on XP and Im a little unfamiliar with the IIS snap on. Would any of you be able to help me with permissions so the Db can be updated but without adding security risks.
View Replies
View Related
I found this articel that says that Server.HtmlEncode will screw up unicode data. I'm using htmlencode on many pages and cannot see that data are corrupted.
It says in the "This information in this article applies to" section that it is applicable for ASP 2.0 with IIS4 and IIS5. I thought IIS5 only supported ASP 3.0? Is the Server.HtmlEncode OK to use in ASP3.0 on IIS5?
View Replies
View Related
I'm working on an ASP application on my XP m/c.
I've uploaded a copy of the ASP code and accompanying DB onto another server
that is running both IIS5 & SQL Server. This is so that the development can
be demonstrated to key users at particular points.
However, when I access the application [on the server] from my machine, I'm
getting to odd caching behaviour that I dont understand. All the pages are
being cached and I need to refresh each page to get the accurate results.
The server is configured such all content should expire immediately, and
each ASP page has Response.Expires = 0 at the beginning, so AFAIK these
pages shouldn't be cached! Code:
View Replies
View Related
We are poised to migrate about 600 ASP sites from a single IIS5 server to a new pair of IIS6 servers. However, it appears that all files with includes like:
<!-- #include virtual="../../includes/file.asp" -->
will not work on IIS 6, it returns ASP 0126, include file not found.
We have enabled parent paths, but I can't find any documentation that suggests that IIS 6 handles include directives differently than IIS 5. Has this in fact changed in IIS 6? We are trying to avoid a huge and messy "search and replace embedded text" exercise.
View Replies
View Related
I am trying to send myself an email using cdosys. The error i get is:
CDO.Message.1 (0x80040222)
The pickup directory path is required and was not specified. my code looks like this: Code:
View Replies
View Related
Annoying problem on a server with IIS 5. [We have other
IIS 5 that show asp files just fine. I'm at a loss. ]
I can open htm, html, gif, jpg, all files except asp
files. The message when opening an asp file is:
"The page cannot be found...
blah blah blah
HTTP 404 - File not found"
I've looked everywhere. Permissions are okay with IUSR
and security since we can browse other files. The asp
files in question are NOT marked Hidden...
What can I do to make it render the asp files? Ideas?
View Replies
View Related
I just upgraded to Windows XP Pro from Windows 2000 Pro. All my ASP stuff seems to work, except that when an ASP page generates an error, and the Error handling is set to "On
Error Goto 0" the page just stops, as if I typed a response.end, and no
error information is returned to the client. If I set On Error Resume Next,
and write err.desc after the offending line, the error text is written
correctly. For debug purposes of course it is nice to be able to
immediately see the line number, and description though.
Anyway, does anybody know what setting I need to change to fix this? I have
server side, and client side debug set, and I have it set to send detailed
errors to the asp page.
Another interesting thing is if there is a compile-time error, like a syntax
error, or something, the page doesn't load, but I get the error message
until an error happens with the above condition, after that, it will just
return a blank page.
View Replies
View Related
I simply create a new web site using Windows 2000, IIS 5.
I use say c:est as a home page, in this folder there is a file
homepage.asp.
I assign a dedicated ip address to this web site.
If I try to browse to this web site I just get a "You are not
authorized to view this page"
Why ?? I cannot understand where the problem is ! Code:
View Replies
View Related
Let me first apologize for anything that makes me sound stupid. I'm really not a ASP programmer, but i am the one fixing our glitch.
First, let me explain whats going on. We have a company intranet signout board. And under our IIS4 server, it works just fine, but under IIS 5 its works except for one glitch. The board lets the user choose their name from a databse, and enter a date and time of leaving a arriving.
On the old server, if the user just entered a time, it automatically added the current date followed by the time. Now, if the user just enters a time, that all that is displayed, and for some reason the board will only allow one name to be displayed like that.
So if person A signs out with just a time, he is listed, until person B signsout and overwrites person A
I think i have narrowed the problem down to this
If FormatDateTime(Request("txtReturn" & intIndividualPerson),2) <> "12/30/99" Then
rsUDPerson("OutReturning") = Request("txtReturn" & intIndividualPerson)
Else
rsUDPerson("OutReturning") = Date & " " & Request("txtReturn" & intIndividualPerson)
End If
The idea is, if there is a date, it wil be different then 12/30/99 so nothing is changed, but if no date if there it adds the current one. It almost acts like there is no Else statement.
View Replies
View Related
Is there a way to 'force' a submit on a form with out actually allowing the
user to press a button ? For example...
step1: A from is filled out by a user, then they click the submit button.
step2: The form is 'post'ed to an ASP page which writes the values to a
database. So far No problems. But..
step3: Now I want to 'post' these values again to another page without any
user interaction.
My ideas were:
1) I know you can get the form values from Request.Form("myVar"), so I
thought of making a 'dummy' form and setting the 'values' of the form
variables to these Request.Form("myVar") valiables, but I don't know how to
'submit' them to another page again.
2) Is there some type of 'submit' command in ASP?
View Replies
View Related
I'm currently testing a version of Win2003 to evaluate a migration of our
NT4 server, but I got some troubles with Office Web Component 9 (office
2000), it seems it doesn't work anymore, and I can't find the issue.
When I make a Set objSpreadsheet = Server.CreateObject("OWC.Spreadsheet"), I
got an error :
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/test/include/./include_asp/excel-class.asp, line 10
800401f3
So I thought it was a "Web service extension" problem, prohibited por
default by IIS6, I authorized MSOWC.dll but nothing changed...
Then I decided to setup OWC11 and it seems to works fine.... even if I don't
authorized it... (is it a normal behaviour ?, shouldn't I be supposed to
autorized it ? )
I can't understand my problem with OWC9 is there some incompatibility with
IIS6 ? Code:
View Replies
View Related
Ive got a ASP site on a server with a old iis and it works perfect on but ive got a new server with IIS 6 with exactly the same site and the session variables wont stick they just dissaper any idea.
View Replies
View Related
I used to be able to run ASP scripts on IIS and then I installed MS SQL
server 2000, and EVERY page I go to that has an .asp extension (even if the
code inside is BLANK) will return a error labeled "The requested resource is
in use. ".
I've tried many things like re-installing IIS 6, allot of things. PLEASE
help me, this is on a production box and HAS to be UP AND WORKING before 1:00
AM CST (5 Hours from the time I posted this)
View Replies
View Related