Quantcast
Channel: All Forums
Viewing all 26858 articles
Browse latest View live

How can I make ARR work with SSL offloading DISABLED? 502.3 Bad Gateway

$
0
0

So I have been hitting this error for days now. I have googled and googled but nothing seems to resolve my scenario and am hoping someone out there can help.

The problem:

When I disable SSL offloading in ARR (Routing Rules) I receive the following:

502 - Web server received an invalid response while acting as a gateway or proxy server.

There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

So, digging further, I enabled Failed Request Tracing to capture the error. The log offers the following info:

  1. view trace Warning -MODULE_SET_RESPONSE_ERROR_STATUS

ModuleName: ApplicationRequestRouting
Notification: EXECUTE_REQUEST_HANDLER
HttpStatus: 502
HttpReason: Bad Gateway
HttpSubStatus: 3
ErrorCode: 2147954430

  1. view trace Warning -SET_RESPONSE_ERROR_DESCRIPTION

ErrorDescription: The connection with the server was terminated abnormally

My Config:

2 x ARR/NLB Servers

  • Server 2012
  • NLB (Clustered)
  • ARR 3 (Server Farm)
  • IIS 8 (Shared configuration, Centralized Certificates (CCS))

2 x Content Servers

  • Server 2012
  • IIS 8 (Shared configuration, Centralized Certificates)
  • Default VS 2013 MVC 5.2 application template

Basically, I am trying to accomplish load balancing and redundancy up front via NLB and ARR. I went by the book on all the configuration. These are all fresh installs with only bare minimum components installed. The certificate is self signed through AD CA. Root CA is installed in trusted cert authorities on all servers.

Everything works perfectly over port 80 (non SSL) and when I enable SSL offloading in ARR. However, due to application constraints, I cannot enable offloading.

Hitting the content servers directly works fine via http and https (aside from browser warning about certificate).

I've tried installing the certificate on each server and selecting in the site binding rather than selecting Centralized Certificate Store, but it doesn't seem to matter as I get the same results when ARR is the requester.

Below I've attached the relevant config files. Many thanks in advance.

IIS/ARR administration.config

IIS/ARR applicationHost.config

** I also asked this on SO**


ASP Classic, IIS 7, w3wp.exe huge memory use

$
0
0

Hello,

I have a Windows 2008 Server with IIS 7. It runs several websites in PHP nicely.
In the server there is also a legacy ASP classic application. The w3wp process of this application uses a lot o memory (over 1GB)

I have traced the issue with DebugDiag 2 when the memory use was about 300MB. The report is here:
https://drive.google.com/a/allbus.com/file/d/0BxBXhSnMSM8HM2U4QkpPVm1zMEU/view?usp=sharing

An interesting part may be:

Heap 1 - 0x00200000

Heap Name
  Microsoft Data Access Runtime MpHeap 21620

Heap Description
  This heap is used by ADO, OLEDB and SQLOLEDB

Reserved memory
  150,53 MBytes

Committed memory
  134,47 MBytes(89,33% of reserved)

Uncommitted memory
  16,06 MBytes(10,67% of reserved)

Number of heap segments
  13 segments

Number of uncommitted ranges
  15 range(s)

Size of largest uncommitted range
  0 Bytes

Calculated heap fragmentation
Unavailable

It looks like ADO is leaking memory.
The ASP code widely use something like:

private function getTipoScarPaga(gts_id_vettore, gts_id_agenzia)
	set rspaga=server.CreateObject("adodb.recordset")
	rspaga.open "select ....",conn,3,3
	...
	rspaga.close
	rspaga.ActiveConnection = Nothing
	set rspaga = Nothing
end function


Recordsets/Connections are (almost) always closed.

Do you have any idea on how to get the cause of this leak?

Thank you!

Connection to SQL Server throwing error Microsoft OLE DB Provider for ODBC Drivers error '80004005'

$
0
0

Hi,

I have migrated a Classic ASP application from Window server 2003 to Windows 2012.  The following error occurrs when attempting to connect to the SQL Server database:

Microsoft OLE DB Provider for ODBC Driverserror '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

sConn = 

"Driver={SQL Server};"& _

"Server=server ip;"& _

"Address=server ip,1433;"& _

"Network=DBMSSOCN;"& _

"Database=DatabaseName;"& _

"Uid=User;"& _

"Pwd=password;"

 

I have enabled 32bit applications in the application pool.

Managed Pipeline Mode:  Classic

I tested creating an ODBC connection successfully from the Windows 2012 server using the SQL Server driver

For testing purposes I have the application pool using a high level adminstrator account

Do not see any ACCESS DENIED using procmon

Any help will begreatly appreciated.

ASP.NET MVC project and Azure VM problem

$
0
0

Hi.

I have faced up with some problems in hosting of my asp.net project to Azure virtual machine.

I stick to this post - http://netbc.ca/labs/azure2014/IaaS/IntroToWindowsAzureVirtualMachines/HOL.htm for posting project on azure virtual machine and IIS configuration.

But result is not the same like in article, my result is list of folders in IE:

<dir> bin

<dir> content

32038 favicon.ico

101 Global.asax

<dir> images

2635 packages.config

<dir> scripts

<dir> Views

4237 Web.config

------------------           

Have you any ideas what I did wrong?

P.S. IIS7, ASP.NET MVC 5.

IIS manager slow node opening

$
0
0

After installing URL rewrite module the server node opens with a 20s delay (which is long!).

 It is similar to this post ( http://forums.iis.net/t/1183356.aspx?URL+Rewrite+Module+IIS+Manager+takes+10+seconds+to+open+navigate+after+installation) but there was no solution found and the topic is already closed.

With process monitor I found out that the inetmgr.exe process tries to reach 3 different locations:

-  193-45-15-147.customer.telia.com:http
-  193-45-15-170.customer.telia.com:http
-  193-45-15-145.customer.telia.com:http

For each it takes 5s to timeout.

Anyone has any idea what this addresses are? Checking for updates maybe?

Picture from Process Monitor:
Process Monitor pic

The server has blocked outbound connections, IIS v7.5.7600, Windows server 2008 R2 Standard.

If in Internet options / Connection / LAN Setting i turn on (Use a proxy server for your LAN) -> localhost:9000 the node in IIS Manager opens faster. (7-10s).

Display Asian characters from MS-SQL variable

$
0
0

I'm having some trouble with the way Webmatrix is displaying asian characters, in this case, Korean. The data is stored in the database with standard HTML form encoding, which displays in the database in this format:

100수~130수 까지, 3가지 라인업 

However, it displays correctly in the editor and the old classic .ASP code, which seems to translate as it should.

100수~130수 까지, 3가지 라인업 

Reading from the same database location via Webmatrix displays the characters exactly as they appear in the first instance. 

I've updated TinyMCE to input the characters via numeric encoding, but that doesn't help with standard text fields.

How can I force Webmatrix to display the characters correctly? Any help would be much appreciated as it's driving me nuts!

URL redirect with multiple query strings to other domain?

$
0
0

We are trying to rescue an mobile app that is hosted on a Windows Server at ISP. The ISP has recently stopped supporting PHP in Windows environment and we cannot move the rest of the site to Linux yet, as it is written i ASP.

We have created a subdomain on a Linux server at the same ISP and set up the app code (PHP) on that domain. Now we are trying to redirect the requests from the mobile app (iOS and Android) to the new subdomain.

The request looks like this http://domain.se/apps/?startdate=yyyy-mm-dd&stopdate=yyyy-mm-dd

How can we redirect these requests to the new subdomain http://subdomain.domain.se/

Any advice is appreciated!

IE Rendering Issue and URL Rewrite

$
0
0

We're rewriting a public URL to an internal URL and finding that as part of the rewrite IE seems to treat the website in a different manner to how it renders without the rewrite.  I've setup an inbound URL Rewrite rule for the site (say https://dev.somewebsite.com/) to match (.*) as per some guides i've read, and have the rewrite as http://devserver.domainname for our internal network.

Incidentally, i've enabled Proxy Mode for this site and seen no improvement.  The application not rendering correct is SAP with an error about Microsoft Compatibility mode, however on the same machine going direct to the internal address (when on the network) there isn't an issue.  I'd really appreciate being pointed in the correct direction if I've overlooked something, i'm a novice and learning as I go - thankfully with a Dev environment!

Thanks


500 - Internal Server Error

$
0
0

This is the text I am receiving:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

I am by no means computer literate so any directions to correct this have to be spelled out in very easy and understandable terms.

thank you

502 Bad Gateway when content server return 204 ?

$
0
0

Hi,

I create a reverse proxy for a webservice with ARR and a rewrite rule.

All seems to work fine, except in one case : when the server behind the proxy return a 204 HTTP status code.

If I send the request directly to the server I receive a HTTP status 204, with no content.

If I send the same request to the proxy, I receive a 502.3 Bad Gateway.

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

All the request that return an other HTTP status code(200, 500, etc) works fine.

I enabled the failed request log but it didn't help.

All I have is this :

ModuleNameApplicationRequestRouting
Notification128
HttpStatus502
HttpReasonBad Gateway
HttpSubStatus3
ErrorCode2147954552
ConfigExceptionInfo
NotificationEXECUTE_REQUEST_HANDLER

It seems that ARR consider the 204 no content like something wrong.

Any idea ?

Default mapping error

$
0
0

Hi ,

I have a default.asp that maps to 'xyz/content/login.aspx' inside /inetpub/wwwroot.

I have a default document in the location where my application (i.e xyz) is already hosted. But inside that file it is mapped like '/content/login.aspx'.

I access my application like 'servername:portnumber/xyz'. I get 404 error now.

The problem is I want to use the default.asp from hosted location instead of default.asp inside inetpub.
How can I do this?? . Please suggest a solution.

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

$
0
0

I came across this error today after restarting one of my production web servers. The issue only appeared when ASP.NET was initializing on the first request from a web browser. If you requested the website a second time, the application would finally kick-in and start. However, if you restarted the W3SVC service (effectively reloading IIS and ASP.NET), and request the site again, you'll get the error. I looked in C:\WINDOWS\assembly, and Microsoft.Jscript was in the GAC. I figured this might be a permission issue with the IIS worker process identity that ASP.NET uses but it has been working now for some time. We currently host our web-app over a network share, and have a separate identity access the network share. This is the error that we are getting. Any help would be greatly appreciated. Thanks in advance.

Server Error in '/' Application.


 

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Description:

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[COMException (0x8000ffff): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]

[FileLoadException: Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +78
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName) +48
   System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +9
   System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +1813
   System.Web.Configuration.CompilationSection.get_RecompilationHash() +70
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +780
   System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +46
   System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +419
   System.Web.Compilation.BuildManager.Initialize() +235
   System.Web.Compilation.BuildManager.InitializeBuildManager() +228
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +329

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279


 

Version Information:

Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

 

 

How about starting a new open source CMS project?

$
0
0

How about starting a new opensource CMS project?

I am not a very skilled programmer, but i have a very simple system that others might be able to enhance.

Is there is any basisto create a new project for us old school ASP Guys (and girls)?

Kind regards

Klaus

asp.net 2.0 event id 1309 event code:3005

$
0
0

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/3/2015 6:28:46 PM
Event time (UTC): 3/3/2015 10:28:46 AM
Event ID: e36472119d194486ba4de41c1420382c
Event sequence: 4
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1507655397/Root-1-130698521257656250
Trust level: Full
Application Virtual Path: /
Application Path: D:\LaLa20140201\
Machine name: SHARK-EF328E

Process information:
Process ID: 656
Process name: w3wp.exe
Account name: SHARK-EF328E\web.net

Exception information:
Exception type: AccessViolationException
Exception message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Request information:
Request URL: http://321ddd.com/index.aspx
Request path: /index.aspx
User host address: 108.215.145.111
User:
Is authenticated: False
Authentication Type:
Thread account name: SHARK-EF328E\web.net

Thread information:
Thread ID: 1
Thread account name: SHARK-EF328E\web.net
Is impersonating: False
Stack trace: at pIJcL2h8r9mkm1D10o.QnokMgjRGcq7Rr2ebY.R6EW7tmcJpYykOoW14j(IntPtr , IntPtr )
at pIJcL2h8r9mkm1D10o.QnokMgjRGcq7Rr2ebY.CZ35NZeEx()
at .cctor()


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Directory authentication - path no longer exists

$
0
0

Hi,

We had a site directory, such as http://webserver.com/test which was configured with basic authentication. We then renamed this directoryhttp://webserver.com/login (for testing). Obviously we had to re-apply the authentication settings for the new directory.

However, if I browse to http://webserver.com/test I still get a prompt for a username and password, even though the path doesn't physically exist anymore.

Checked web.config, restarted site, restarted IIS services, cleared my own cache and browsed to it via the server itself. Still prompts for a username and password on a directory that doesn't exist anymore.

Any ideas?

Thanks,

David


After adding a binding website requires a login

$
0
0

Just using default web page works fine but as soon as I set a binding for it a login prompt comes up when trying to go to the site.

Login box says:

The server asdf.domain.local at 802.11g WLAN Login requires a username and password.

Not sure what wireless has to do with anything. There is nothing even using wireless.

Classic ASP: how long will Microsoft continue to support?

$
0
0

I have a website that has been written using classic ASP.  This site is over 17 years old.  This website has almost 600 different asp pages that are still being maintained.  Management is concerned that Microsoft is going to stop supporting classic ASP and is pushing for us to re-write the app/website using .Net.  Has Microsoft given any notice on how long they will continue to support classic ASP?  If Microsoft is going to continue to support classic asp, then is there any security reason to switch to .net?

How to make default.aspx my default page

$
0
0

I am a web developer who got thrust into working with IIS since a guy here suddenly left.  I haven't done this sort of thing in several years.  I know it's probably very simple but I can't figure out how to tell IIS which page is my default.  Can anyone help?

"c:\Windows\Microsoft.NET\Framework\v4.0.30319\TemporaryASP.NET Files\temp" folder

$
0
0

What is designation of "c:\Windows\Microsoft.NET\Framework\v4.0.30319\TemporaryASP.NET Files\temp" folder?

This folder should be created on running web servers (iis, asp.net, mvc) and it looks like responsible for running time compilation. However it is growing too rapidly. Moreover in my case it is growing on build machines (in compilation time). How do I control its growth (including particular compiler flags if relevant)?

IIS 8 CCS on fileshare used by 16 web servers

$
0
0

Hi,

we have 16 web servers running on NLB, configured to use CCS stored on fileshare (e. g.\\share\certificates). We have multiple certificates - e. g. EV certificate for  www.domain.tld, wildcard cert *.domain.tld, EV certwww.domain.com, wildcard cert *.domain.com. Servers are configured to use SNI and also default binding is set.

As stated on MSDN blog, if I browse www.domain.tld IIS should look for filewww.domain.tld.pfx and if it doesn't exists then for _.domain.tld.pfx and if it also doesn't exist then it uses default binding.

Our problem is, that IIS on some web servers are serving EV cert www.domain.tld but at the same time some other web servers in NLB are serving *.domain.tld cert.

Does anybody have any idea why? All servers are configured exactly the same. Can there be some file-locking issue or something like that?

Our goal is to serve EV certificates if we have them for certain domain and if not then serve wildcard certificates.

Thank you for any ideas!

Daniel

Viewing all 26858 articles
Browse latest View live


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