Quantcast
Channel: Classic ASP
Viewing all 488 articles
Browse latest View live

Very new to IIS, cant understand log file, PLEASE HELP

$
0
0

Hello,

Current situation:

Migrated website from iis 6(server 2k3) to iis 7.5(server 2k8 R2;fully updated). We have 2 custom vb apps that uses the website for reporting purposes(website hold asp files both of our custom vb apps)

Hierarchy of website folder is as follows:
C: > Website > apps > app1

C: > Website > apps > app2

What ive done:


After migrating the website over and initially setting everything up(permissions etc.), I thought I was done because I went into app 1 and confirmed that it could open up an asp file within the program to view. However, users cannot open asp files within app 2. This is beyond mind boggling. Any help would be greatly appreciated.
* In the website folder properties, under the Security tab, I added IIS APPPOOL/nameOfMyWebsite, and it successfully added it.

Like I said before, I am fairly new to iis, so I could only retrieve getting the log file info for you guys. I would like an explanation as to what the underlined + bolded text means( thats the area in the log file that im stumped on) and any possible solutions/tips will be greatly appreciated. I will find you irl, twitter facebook and +1 your ass. Please help me from losing my mind.

2016-01-05 16:36:06 192.168.1.20 GET /apps/wc/reports/wpoa_trans_summary.asp BeginDate=1/4/2016%2000%3A00%3A00AM&EndDate=1/4/2016%2011%3A59%3A59PM|27|80004005|[Microsoft][ODBC_Driver_Manager]_Data_source_name_not_found_and_no_default_driver_specified80 DOMAIN\aj 192.168.1.57 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E)500 0 0 249

2016-01-05 16:36:22 192.168.1.20 GET /apps/wc/reports/wpoa_trans_summary.asp BeginDate=1/4/2016%2000%3A00%3A00AM&EndDate=1/4/2016%2011%3A59%3A59PM|27|80004005|[Microsoft][ODBC_Driver_Manager]_Data_source_name_not_found_and_no_default_driver_specified 80 DOMAIN\aj 192.168.1.57 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E)500 0 0 15

2016-01-05 16:36:30 192.168.1.20 GET /apps/wc/reports/wpoa_adjustments.asp |27|80004005|[Microsoft][ODBC_Driver_Manager]_Data_source_name_not_found_and_no_default_driver_specified 80 DOMAIN\aj 192.168.1.57 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E)500 0 0 0


winhttp.dll on windows 2008 r2 x64

$
0
0

hello,

I use WinHttp.WinHttpRequest.5.1 object and the PCI DSS provider upgrade to TLS 1.1 and TLS 1.2

if I try to use any of this options:

obj.Option(9) = 2048  'TLS 1.2

obj.Option(9) = 512 'TLS 1.1

I get an error.

I upgrade all the kb realted but I get the same result

if I try from web-browser the URL load using TLS 1.1 and TLS 1.2

what is the solution ?

transferring from http to https session lost

$
0
0

Windows Server 2008 R2 v6.1 - IIS v7 - ASP Classic

On the http side I populate a cookie for zipcode. Then, for checkout, I do a Response.Redirect("https://www.mysite/getinfo.asp")

It works as expected in IE. But fails in Chrome and Firefox with the same basic error: too many redirects. Reason being it does not pick up the cookie zipcode. I saw this fix ASP > Services > New ID on Secure Connection: False in this forum, but it does not work.

Then I tried Server.Transfer("https://www.mysite/getinfo.asp")

That didn't work either. Any tips on what I'm missing?

Thanks!

Indexing Services on 8.5

$
0
0

I have an application built in Windows 2003, and now I'm shifting it over to 2012. It's on IIS 8.5.

I built a search engine in Classic ASP using Indexing Services available in Windows 2003, as I required a function that could search through a folder of documents (PDF and Word Documents).

I realized there's no more indexing services in the new Server. Does anyone have any suggestion on what is available on 2012, and what kinda code can I use to build up an index? 

Creating VB script on classic ASP webpage

$
0
0

I'm trying to use the below VB script (XlsToCsv.vbs) on a classic ASP webpage. After running the script a blank page is displayed and the file PRD_new.csv is not created. The vbs file works in MS-DOS.

<script language="vbscript">
	csv_format = 6

	Set objFSO = CreateObject("Scripting.FileSystemObject")

	src_file = objFSO.GetAbsolutePathName("D:\My Websites\www.fk-sales.com\PRD_new.xls")
	dest_file = objFSO.GetAbsolutePathName("D:\My Websites\www.fk-sales.com\PRD_new.csv")

	Dim oExcel
	Set oExcel = CreateObject("Excel.Application")

	Dim oBook
	Set oBook = oExcel.Workbooks.Open(src_file)

	oExcel.DisplayAlerts = False

	oBook.SaveAs dest_file, csv_format

	oExcel.DisplayAlerts = True

	oBook.Close False
	oExcel.Quit
</script>

I've also tried creating a vbs file and running the below code although the error appears saying "ActiveX component can-t create object: -Excel.Application-"

<%
Dim objShell
Dim vbsFile

vbsFile = "D:\My Websites\www.fk-sales.com\XlsToCsv.vbs"
Set objShell = Server.CreateObject("Wscript.Shell")

objShell.Run vbsFile

Set objShell = Nothing
%>

Receiving Microsoft VBScript runtime error 800a0009 Subscript out of range '3' /mydirectory/mypage, line 196

$
0
0

I am receiving  the error:

Receiving Microsoft VBScript runtime error 800a0009 Subscript out of range '3' /mydirectory/mypage, line 196

in one of the list boxes on the page. It occurs on only a few items selected

I have 3 cascading list boxes on the page. County, City & Court. When I select certain city names from the City list box I receive the error. I cannot, for the life of me figure this out. I don't if it's being caused by the SELECT statement or the list box itself

Here's the code for the SELECT statement:

' did user choose a subcategory from the drop down list the
' last time on this page?
subcatChosen = Request.Form("SubCategorySelect")
showsubSubcat = False
If (("X" & subcatChosen) <> "X") AND (subcatChosen <> "NONE") Then
    ' yes, he/she did
    ' make sure that chosen category type matches DB field type for query
    subcatChosen = CInt(subcatChosen)
    ' and say we *will* show subcategories
    showsubSubcat = True
    ' so get the list of subcategories for given category
    Set subsubRS = catConn.Execute("SELECT citiesID, courtsCourt " _& " FROM tblcourts" _& " WHERE citiesID=" & subcatChosen _& " ORDER BY courtsCourt")
    ' and, again, convert the record set to an array
    subsubRows = subsubRS.getRows
    subsubRS.Close
    Set subsubRS = nothing
End If

and here is the code for the list box itself:

<SELECT class="select listbox2" Name="SubSubcategorySelect" MULTIPLE Size=10 onChange="goNextPage(this);" ><% If showsubSubcat = False Then %><OPTION Value="0">-- No Courts yet --<% Else %><OPTION Value="0">-- Choose a Court below --<% For cnum = 0 To UBound(subsubRows,2) %><OPTION Value="<%= subRows(0,cnum) %>"><%= subsubRows(1,cnum) %><% Next %><% End If %></SELECT>

I would greatly appreciate any advice, suggestions or insight into what could be causing this problem. If I need to include more information or code, please let me know.

Thank you in advance

Mike

ServerXMLHTTP.6.0 || WinHttpRequest connecting to TLS 1.2 server

$
0
0

Hi

I have a server side application that connects to a third party server and is currently able to communicate with it via SSL 3.0. The third party server will be upgraded to only support TLS 1.1 and TLS 1.2. I have enabled TLS 1.1 and TLS 1.2 on my server for both client and server and am able to connect to my server via TLS 1.2 from a browser. I am also able to browse from my server with Internet Explorer to the test TLS 1.1 page however my server application is unable to connect to the third party test page.

An example of my application that connects to the third party server below. Server Registry changes below code.

I would be most grateful for any assistance.

===============================================================================

<%@ EnablesessionState=False
Language=JScript %>
<%
var URL = "https://test.paygate.co.za/process.trans";
//URL = "https://www.paygate.co.za/payxml/process.trans" /*Current SSL Server*/
var Data = "";
var ReqStatus;
var ReqStatusTxT;
var PageTxT;

try {
var XMLobj = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0");
XMLobj.open ("GET", URL, false);
XMLobj.send(Data);
ReqStatus=XMLobj.status;
ReqStatusTxT=XMLobj.statusText
PageTxT=XMLobj.responseText;
}
catch(e){
ReqStatus=-1;
ReqStatusTxT=e.message;
PageTxT=""; 
}
XMLobj = null;


%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title>Test SSL</title>
</head>
<body>
Status code:<%=ReqStatus%>&nbsp;&nbsp;&nbsp;&nbsp;<%=ReqStatusTxT%><br /><br />
Returned XML:
<hr>
<%=Server.HTMLEncode(PageTxT)%>
<hr>
<br /><br />
</body>

===================================================================================

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client]
"DisabledByDefault"=dword:00000001
"Enabled"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]
"DisabledByDefault"=dword:00000001
"Enabled"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

 

redirect not working

$
0
0

hi,

      I have an editable page and a read only page. The redirect reads from a database field and redirects as needed. This works fine on the old server 2003, we are moving to 2008R2. Now I didn't change the code at all but it's not working on the new server. It always goes to the read only page even if the flag is marked in the database. Not sure what I'm missing here:

if rsR("mod_signver")="1" then
response.redirect "signver_menu_ronly.asp?crcod="&Server.URLEncode(request.querystring("crcod"))&"&crloc="&Server.URLEncode(request.querystring("crloc"))&""
Response.Write("0000000000000")
end if


How to create 301 redirect for many pages with exact same filename but in different folders

$
0
0

How can we create a 301 redirect that will redirect ALL pages that have the same file name? Every page called "iteminfo.aspx", no matter where it's located, needs to redirect to the home page.

Example:

category01/widget001/iteminfo.aspx
category01/widget002/iteminfo.aspx
category01/widget003/iteminfo.aspx
category02/widget001/iteminfo.aspx
category02/widget002/iteminfo.aspx
etc...

Windows Server 2012R2 MSDataShape Intermittent Error

$
0
0

Hello,

We migrated a Classic ASP application from Win2K to Windows Server 2012R2.  Also migrated the DB from MSSQL 2000 to MSSQL 2014 (with MSSQL 2008 as intermediate step to convert the DB since there is no way to convert from 2000 to 2014 directly).

We have 2 environments: Production and Testing which exact duplicates of each other except one points the Production DB and the points the Testing DB.  The DBs are exact duplicates as well.

The good news is that everything works like a charm in the Production environment.

The testing environment pointing the Testing DB keeps generating an MSDataShape error intermittently only in one of our scripts/files that uses the MSDataShape (most of the time, but not all the time) - All the other scripts/files that use MSDataShape work just fine.  Here is the error:

Error Description   :  Provider commands and tables are invalid in shape commands when the Data Provider is NONE.

ASP Description     : 

Category            :  MSDataShape

File Name           :  /iros/process.asp

Line Number         :  2199

Again everything works just fine in production and pointing to the production db.

We dropped and deleted the testing db and restored from the current production db several times.  We also made sure the code in both environments is an exact match.  

We are afraid that the symptom would start happening in production suddenly and have no cure for it.  So we are trying to figure out the cause and fix it as soon as possible.

It is very strange.  Can you help?

Thanks,

Jay Roma

Debugging ASP pages

$
0
0

My host has moved to a new server (iis8.5 Windows 2012) and this means that I can no longer test asp pages in my web browser as I cannot see detailed debugging messages any more, just a 500 internal server message.

I realise that this is for security reasons, so can anyone tell me how I can now debug ASP pages on my own computer at home and get detailed error messages?

Is there some software to do this?  I have a PC running Windows 10.

Many thanks in advance.

Using Asp.Net pages in classic ASP

$
0
0

Hi 

I have an application developed in .net.

I want to copy and use few aspx pages from this .net application in classic asp application which is in different machine.

How can I register dll in classic asp system and call aspx pages? 

When I call the page i am getting below error

Parser Error Message: Could not load type 'namespace/classname'.

Please help. Thank you.

Running Classic Asp Website in iis10

$
0
0

Hey All,

I am facing one issue that how can i host classic asp site in iis10. i am using windows 10 as operating system.please give me step by step guideline for this.

ASP.NET 4.0 causes extensionless Urls to NOT load default document default.asp (classic asp) - although existing

$
0
0

hi,

we are having a couple of websites and sub applications that contain old classic asp files as well as asp.net .aspx files (some mix asp and aspx in the same project). recently we upgraded ALL projects to vs2010 and asp.net 4.0. (no sub-application is using an 2.0 apppool!)

however when we are calling http://ourdomain.local we get an asp.net 4.0 404 error!

when calling http://ourdomain.local/default.asp it is working.

default.asp is in the list of default documents in iis. (i also removed and readded it)

we could only get the extensionless urls working on our old staging server (2003 ii6) via the extensionlessurl registry hack (http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770153 option 3).

but we are still having this problem on every team members computers - using win 7 iis 7.5 as well as our new staging server (win 2008 r2). the registry hack only seams to work for iis6.

"Aspnet_regiis.exe -i" did NOT help, too!

that to do to get the default document working? i search the web and tested so many things the whole day without success. :(

(we can not go back to asp.net 2.0)

thanks, tobi

Response.Redirect variable depending on a SQL result. How to ?

$
0
0
Hello,

I have code below

SQL is ok and results as I need

Problem is add result just into Response.Redirect

I tried to put directly from sql, put result into a variable like below and use the variable

But it is not working as expect

Any idea ?

Code:
<%
set rs=conn.execute("select url from encurta where id="&request.querystring("id")&"")
encurta=rs("url")
Response.Redirect "encurta"
%>

Classic asp timeout at IIS8

$
0
0

the asp works at IIS6 very well

there are 4000 emails sent by script with writting log to a file at the same time.

after moved to IIS8, there is timeout issue and it runs very slow

some posts said the slowness is because of asp file IO operations which i accepted.

when send action is clicked, it has timeout after 23xx emails sent,

then 2nd click, timeout at 8xx emails sent

then 3rd click, timeout at 4xx emails sent....

it did not be solved after reset of web site/app pool.

any help pls.   thx.

How to Insert, Delete, Update in GridView in ASP.Net using C#. ?

$
0
0

i want to know that how to insert,delete,update in gridview in asp.net using c#.

Error on where clause to proceed sql on ASP

$
0
0

Hello

Following code below

Even if "if clause" is respected ... it does not work

Just go to last if and print value of variavel3 variable :(


O que estou fazendo de errado ?
    <%
variavel1 = LCase(Request.ServerVariables("URL"))
variavel2 = LCase(Request.ServerVariables("QUERY_STRING"))
variavel3 = "SEM TÍTULO AINDA | ConteudoAnimal.com.br"

select case variavel1
case "/"
response.write ("Informações e Noticias sobre: cachorros, gatos, cavalos, pássaros, peixes e muito mais")

case "/default.asp"
response.write ("Informações e Noticias sobre: cachorros, gatos, cavalos, pássaros, peixes e muito mais")

case else
set rs=conn.execute("select title from paginastitulodescricao where lcase(url) like CONCAT("%",variavel2,"%")")
if not rs.EOF then
response.write rs("title")
else
set rs=conn.execute("select title from paginastitulodescricao where lcase(url) like CONCAT("%",variavel1,"%")")
response.write rs("title")
end if
if rs.EOF then
response.write variavel3
end if

End Select
response.write("| ConteudoAnimal.com.br")
%>

Display form based on IP address

$
0
0

I found out how to get my users ip address using HTTP_X_FORWARDED_FOR.  I'm needing to disable the use of a form if the ip is not within our network.  Can anyone help me with this?

CDO.Message Error on IIS 8.5

$
0
0

Hi all, I recently have an application that has shifted from IIS 7 to IIS 8.5.

There's a function that has CDO Message Problem. 

 error '8004020f'

 line 214

The error line is highlighted below: 

myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="<company's smtp server>"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
myMail.Configuration.Fields.UpdatemyMail.Send
set myMail=nothing

What could be the problem? What user configurations should we make to the server? We're running on Windows Server 2013. 

myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="confermail.ntu.edu.sg"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing

Viewing all 488 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>