I have a Windows 2003 server running IIS6.0. It has a number of ASP.NET sites running on it.
I'm trying to instal a legacy classic ASP site, but trying to access and
pages with the .asp suffix produces a "The system cannot find the file
specified." page, or when run locally a 404.
Interesting to note that when I make default.asp my default content page and
browse to /mydomain/ rather then /mydomain/default.asp, this page works
fine.
I am using an asp script that uses rptserver.asp to display some reports over http. It worked fine previously but now the webpages with the report display just hang. I tried switching from the activex viewer to java viewer and still the same. I don't know what changed, except I do the Windows updates. Can anyone tell me the best way to trouble ASP problems. The page just stays blank forever and that status bar slowly progresses. No errors in the event log on the server. The HTTPerr log has the following errors:
i have made a script and it worls no the local host on my pc but does not work on the server.all of my other asp scripts on the server work any ideas y this would work on the local server and not on the internet?
I get the error Error Occured Reading Records: Server has not yet been opened. when I am trying to view a report using the asp pages for crystal reports. It works fine for access files. Can someone help me on it?
I have to upload my senior project to the school's sytem. My asp pages are all in one directory so there is no directory structure. At home I just reference my database file as Code:
Server.MapPath("mydb.mdb")
But it won't work on the school's system saying it can't find the database file. I've tried "mydb.mdb" and ".mydb.mdb", but it still won't find it. I'm just wanting to make sure that, those are the only ways you can reference your db. I've sent and email to the admin, but he doesn't answer his emails. (What an admin!) I'll have to talk to him in person about it then. Suggestions till then?
I have a site with the directory structure like this:
wwwroot (where the default.asp and other pages sit)inc (where the includes are)login (where login pages are)otherDirs (where other pages are)datafiles (where database is)
I usually hard code the db connection path but want to use the MapPath now in case in the future my site moves servers (have been though that and having to manually change all db connection strings - Not Fun ) Code:
I'm an ASP beginner and did an application here locally on my IIS under W2000 Prof (SP4). Runs here completely great.
Now I wanted to place this application under a W2003 server online. Now always get the message:
Runtime error in Microsoft VBScript error '800a01a8' object required: 'Application(...)' /globalfunctions.asp, LINE 18
Funny, that line 18 in my globalfunctions.asp is empty. However I use the Application()-object in this file and the coputer seem not to find it. I read that it could have to do something with global.asa. I then created a global.asa and created the subs for the events but put no code inside. It changes however absolutely nothing.
What could I have still forgotten and why run it here locally? Possibly a rights problem?
I have an asp to display data in database, the data is in big5 encoding (chinese characters)
I haven't specify the codepage in the asp and placed the file into 2 machine. When I browse the file in NT machine the chinese characters can display correctly, but doesn't for the page in my winxp machine. Both OS is english version. Since the file is actually the same (by copy and paste), so any setting in the OS or IIS level cause the problem?
I have 9 asp-sites on a Win2003 server, and would like to use the same include file, but it does not work.
The path for the servers default website (which is not where the problem is) is c:inetpubwwwroot and the rest of the sites are at c:inetpubwwwrootwebsitesSite1 , ..Site2 etc.
I tried using the following on the secondary sites: <!--#include virtual="Websites/Include.asp" --> <!--#include virtual="/Websites/Include.asp" --> <!--#include file="../Include.asp" -->
All works fine on my development machine (Win2k) and on the server (Win2003) when it is accessed through the LAN, but when I cut the LAN and access the server through www (e.g. http://www.site1.dk) it does not work.
I suspect that the internet user does not have rights to the virtual path, but how do I solve that?
Below is code to display in a drop down menu some addresses. There is two things i need to do. One is to not show if there are no records but also there could be duplicate records, How do i stop duplicates occuring...
I dont have CDONTS support. i am using the following script. with this, even yahoo doesn't consider the email to be HTML and displays all the HTML tags and treats it as TEXT. here is the code i use! Please dont consider it abuse as i dont know how to encloase the code in TAGS!
if Request("__action")="TestEMail" then TestEMail() end if
Sub TestEMail()
Set objMail = Server.CreateObject("CDO.Message") Set objConf = Server.CreateObject("CDO.Configuration") Set objFields = objConf.Fields
With objFields .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Update End With
With objMail Set .Configuration = objConf .From = sFrom .To = sTo .Subject = sSubject .TextBody = sBody End With
Err.Clear on error resume next
objMail.Send if len(Err.Description) = 0 then mes = " Message sent to " + sTo mes = mes + " EMAIL SENT SUCCESSFULLY!" IsSuccess = true else mes = " " + Err.Description + " TESTS FAILED!" end if Set objFields = Nothing Set objConf = Nothing Set objMail = Nothing End sub
Sub Alert(html) if IsSuccess then Response.Write "<div class='testRelults' id='testSuccessful'><span class='testResult'>Success:</span>" & html & "</div>" else Response.Write "<div class='testRelults' id='testFailed'><span class='testResult'>Fail:</span>" & html & "</div>" end if End Sub %>
Im working on an automated email sending script which work real fine. I have to send 2 different list of email ( contact1 and contact2) of an acces database file (.mdb).
The fact is that my script work well but for some reason it only send the second list of email (contact2).
The script process the list contact1 without any error but obviously it isnt sending mail to those email.
It seems to be an easy fix mistake but i cant figure out why the first contact list isnt sending. Must be a "If then" mistake or something with the loop i think.
I have a formview which im using to ammed records in a DB via a gridview. When an item is selected on the gridview its details are shown in the formview. Ive wrote the update statement for the Insert button in the formviews edit mode.
If i edit a record in the formview this updates the DB, but not the gridview striaght away. I have to click on one of the select buttons on the gridview to update this. I have gridview.databind() on the click event of the insert button of the formview and on pageload, if its a callback. Code:
I'd like to use XMLHTTP to retrieve two .cav files, store them as arrays (or cursors), join them and execute an SQL query. Can this be done using script in an .asp page? What objects and procedures should I focus on?
This error occurs while trying to execute a asp file which write content into a excel file. strangly it occurs once in a while. what could be the cause?
I want to install asp and access on a server, is there way to password protect asp pages from being accessed directly?. I don't mean via web.But being accessed from the server directly?
Is there way to ensure that the asp pages works on the computer/server it has been installed on and not for any other comp?
So if some new admin tried to copy those asp pages to another computer,they would not work.
Running W2k Server SP4, my application event viewer says that the Active Server Pages service is stopped.How and what do I need to do to start the service, and why does it stop?
aspx page designed by asp.net contains text box, buttons, and labels viewed by browser in the localhost but when uploaded to the server only view the labels.
I just upgraded an NT IIS server to 2003 and IIS 6.0 now my Active Server Pages .asp pages do not load or open in the browser I get 500 Error Server Error. Yet and htm page will open. What do I need to change? or configure?
i am gettin this error...which i never got. Active Server Pages error 'ASP 0201' Invalid Default Script Language The default script language specified for this application is invalid.
I got this book for some time. I need to download the source code for this book. However, Wrox, the publisher, does not have download code for this book. Could anybody suggest any site from where I can get the download of source code for this book?
I have an ASP form that uploads files to our server.When I upload small files, it works great.But larger files like (2.5mb), I get:
Active Server Pages error 'ASP 0113' Script timed out
I have looked up the error, and added more time to the script (up to 10 minutes). Didn't help. We are using Microsoft Server 2000, IIS 5.0, and Microsoft ASP Upload.
My guess is that there is a file size limitation somewhere, but don't where.
The problem occured when I used FP2002 to create a page to search a database. The purpose was to see how it worked and the code behind it so I could start learning how to work it myself.
But before I got that far, I get an error message:
HTTP 500.100 - Internal Server Error - ASP error
Error Type:
Active Server Pages, ASP 0138 (0x80004005) A script block cannot be placed inside another script block.
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) (Mozilla/5.0 came back with the same message)
But unless I'm mistaken (and I probably am), the only scriptting on the page is this: Code:
We have Windows 2003 Server as our SUS server. When we try to approve updates, etc., we receive the following error message. Has anyone experiences this before? If so, can you tell us what needs to be fixed?
Active Server Pages error 'ASP 0126'
Include file not found
/autoupdate/administration/shared/inc/publish.inc, line 2
The include file '/shared/global.asp' was not found.