Server.CreateObject and Server object not working in IIS [duplicate] - windows

This question already has answers here:
How to enable ASP classic in IIS7.5
(6 answers)
I have already enabled classic asp support on IIS for windows 7, and configured IIS web for classic asp,Yet .asp page is not being displayed? [closed]
(1 answer)
Closed last year.
I wanted to use IIS for ASP so I enabled IIS roles in Windows Server 2008 R2 and also .NET 3.5 in Features.
In the code I have "Server" object but it does not work. In another PC with another windows version it works but I don't know what is the issue in this windows. The browser gives the error as "Error 8002801d".
<%
Response.write("Check ")
Response.Write(Server.ScriptTimeout)
// commented not using this line
// Set Conn = Server.CreateObject(..........)

Related

Classic ASP page not rendering properly ( partially rendering ) on n Windows Server 2012 R2 ( IIS 8.5 )

I have an old application developed using classic ASP, it was running fine under Windows Server 2008 and IIS 7.0. We recently upgrade to Windows Server 2012 R2, since that the application is not running fine:
I have application of Classic ASP and running on Windows Server 2012 R2 ( IIS 8.5 ). But recently asp page is not rendering fully, It is just rendering partially.
I have tried below solution.
Delete .Net temporary files for .net version 2 & 4 (Also for 32bit & 64bit), Directories are given below.
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
Go to the IIS Settings => Pages and Controls
Change Client Mode => Static and click on Apply at Right side top in Action Menu
Now reboot the server.
Check again if the page is render properly or not.
4.1 If the page is render properly, Change the Client Mode => Predictable.
4.2 restart the iis by iisreset
If still there is an issue, again delete the .net temp files.
5.1 restart the iis by iisreset (Reboot server again if its require)
5.2 Check the requests, It should render properly.
5.2 Again go to IIS Settings => Pages and Controls.
Change Client Mode => Predictable (Don't forget to click on Apply)
Again iisreset from a command prompt.
Check the same page again page must render on every requests.
After applying above steps, Page is working fine. But after some times, Issue is started to occurring.
Any help would be appreciated . Thanks in advance.

Migrating Classic ASP from Windows server 2003 to 2008 R2 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have been asked to look at the feasibility of migrating an ASP app from Windows 2003 to Windows Server 2008 R2.
Old setup:
ASP Classic Hosted on: Windows Server 2003 DB: SQL Server 2000
Proposed new setup:
ASP Classic Hosted on: Windows Server 2008 R2 IIS: 7 DB: SQL Server
2008
Ideally the app should be re-written in ASP.NET, but the company doesn't have the budget for this right now.
Questions
Would it be possible to host Classic ASP built on Windows 2003 w/ IIS 6 on a Windows 2008 R2 w/ IIS 7.5 environment?
What steps can be taken to successfully migrate the application and database from the old environment to the new environment.?
Would it be possible to host Classic ASP built on Windows 2003 w/ IIS
6 on a Windows 2008 R2 w/ IIS 7.5 environment?
Classic ASP can be hosted on Windows 2008 and 2012. As of IIS 7, Classic ASP is no longer enabled by default. See this article.
How to enable Classic ASP module in Windows 2008
Click Start, point to Administrative Tools, and then click Server
Manager.
In the Server Manager hierarchy pane, expand Roles, and
then click Web Server (IIS).
In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.
On the Select Role Services page of the Add Role Services Wizard, select
ASP.
What steps can be taken to successfully migrate the application and
database from the old environment to the new environment?
32 bit vs 64 bit components - 32 bit dlls do not work in 64 bit application pool. Make sure your Application Pool is set accordingly.
Classic ASP uses "Classic .NET" setting in the application pool
Verify your supporting dlls e.g. "Persits ASPemail" work in Windows 2008 R2. In some cases you may need to upgrade your license.
Take a look at this post to assist with SQL Server 2000 to 2008 migration.

Windows 7 ODBC driver [duplicate]

This question already has an answer here:
ODBC connection to Access database in 64-bit Windows
(1 answer)
Closed 8 years ago.
I need to create a datasource for Microstation V7 in Windows 7(64bit), but I can't find "Driver do Microsoft Access (.mdb)" ODBC driver.I looked in Control Panel>Administrative Tools>Datasources(ODBC) and when I click the "add" button in the User DSN I only see "SQL Server" and "SQL Native Server". Where is Driver do Microsoft Access (.mdb) or how can I install it?
This is most likely a 32/64 bit problem.
I assume Microstation is a 64-bit program and Office are 32-bit applications. This mismatch is hard to overcome.
Maybe this answers your question.

IIS 8.0 integrated pipeline Session RequestAcquireState

We are trying to make a cut over from IIS 6.0 to IIS 8.0 Integrated pool on Windows Server 2012 Standard edition for an application built on ASP.Net Version 4.0. Our web application requests go into a RequestAcquireState ( ASP.Net Session gets locked for concurrent requests working with the same sessionid ) , in IIS 8.0 Integrated pool on the above Windows Server . However this behavior does not show up when we run the same app in Classic mode on IIS 8.0 .
Session is stored InProc.
We can rectify this situation on a Windows Server 2012 Data Center by modifying SessionStateLockedItemPollInterval in registry. However that solution does not work in Windows Server 2012 Standard edition.
This has left us perplexed -
why does an ASP.Net Run time Session issue surface in IIS 8.0 Integrated Pool for an application we have run successfully on previous versions of IIS and classic mode in IIS 8.0 ?
How do we rectify this problem now on Windows Server 2012 Standard edition ?
Thanks, will appreciate if some body can help
IIS 8 comes with .net framwork 4.5 so you may be running into missing the fix http://support.microsoft.com/kb/2828842
Issue 6
Symptoms
When you send many concurrent requests that have the same SessionId to an ASP.NET 4.5 web application, some requests may freeze at the RequestAcquireState stage unexpectedly.
Resolution
After you apply the hotfix, the hotfix makes sure that the EndRequest event will always trigger.
try installing this fix and see if that addressed the issue

Visual FoxPro (9.0) issue on Microsoft Windows Server 2003 R2

We have been running a Visual FoxPro (version 9) application on a Server under Microsoft Windows Server 2003 Operating system for a number of years now. We are now trying to migrate it to a different Server running under Microsoft Windows Server 2003 R2 and the application crashes. The problem occurs when it is trying to create HTML files from the FoxPro reports it has just created. To do this is uses the system variable _ReportOutput and aborts with the message “ox is not an object”. The application resides on the Network in a directory accessible to both Servers. Since hitting this problem I have changed the program to use the Htmllistener class within _ReportListener and get the same problem (works on one not on the other (R2)). Wait windows have been inserted to gain additional information but they only show that the object has not been created returning a data type of .Logical. It appears to me the problem is with the R2 version of the operating system, has anybody any ideas.
Have you installed ReportOutput.APP in the same folder as the application?

Resources