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

Problem Adding Negative Numbers

$
0
0

Hi


But stuck for a while now on this, any help would be much appreciated. I've been asked to update an old site that runs a sales report to allow negative numbers.
The page runs fine using positive numbers but as soon as a negative number is sumbitted it throws a mismatch error.
Microsoft VBScript runtime
error '800a000d'

Type mismatch: 'CSng'

Here is an a example of one of the lines of code causing a problem have spent a while looking and don't know what I'm missing?

TotalSales = CSng(Cash1) + CSng(Card1) + CSng(Web1)

Thanks


Redirect only specific sub site not root/other sub sites

$
0
0

I am trying to use IIS URL rewrite to redirect only specific sub site documents and it should not redirect other sub site (OR) root site documents (These are SharePoint sites).

Example: Redirect documents from 

https://test.abc.com/subsite1/Documents/mydocument.pdf?Web=1   document URL's tohttps://xyz.abc.com

And it should not redirect, if source url contains other sub site/root site document url's like below

https://test.abc.com/Documents/mydocument.pdf?Web=1  (OR)https://test.abc.com/subsite2/Documents/mydoc.pdf?Web=1

using below code in web config: this is not redirecting as expected with this pattern (pattern="^test.abc.com\/subsite1\/")


<rule name="subsite1 Redirection" stopProcessing="true">
<action type="Redirect" url="https://xyz.abc.com" appendQueryString="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^test.abc.com\/subsite1\/"/>
</conditions>
<match url="\.(pdf|txt|xls|doc|ppt|xlsx|docx|pptx)" />
</rule>

IIS question on Web server redirect

$
0
0

Setup, I have a web server hosting a webpage, on that webpage I have 100+ different links. Those links go to individual websites hosted on other internal IIS web servers using host name headers sub domain names of the sites. So far have 4 IIS servers breaking them up to ruffly 25 per server. I could have up to 150 sites and just trying to plan for no issues if they get hit all at once so thinking breaking out to individual servers, the load would be spread out. Since the applications are slightly different, I can't use a server farm since they would be basically individual sites. 

Is it possible to have those links on the first IIS web server goto the web server that hosts them using the subdomain name so that the others servers would recognize them via hostnames. 

Windows IIS servers are on 2019 IIS

I'm trying to break up the sites, like 25 per server so that there is no overload when they get hit. 

(Or does someone think IIS can handle 150 sites with heavy traffic with no issues if it had a-lot of ram etc.?)

Or is there some other way to achieve this, just trying to plan for growth and performance.

Any help or suggestions would be appreciated!

slow page load

$
0
0

We are running 2 IIS servers (Windows Server 2012 (not R2)). Both are more or less identical. One is a production server, receiving a large flow of traffic from the internet. The other is for development and testing so traffic is very low.

Requests to the test machine are consistently coming back much slower than the same requests to the production machine. A request to a very small hello.html file containing only HTML (no images, JavaScript, etc.) takes1.2 seconds on the test machine and 0.06 seconds on the production machine.

This is not a case of IIS on the test machine waking up from being idle. I can reload the page again and again and it is consistently taking longer than 1 second.

The performance is even more pronounced when requesting a page full of images and other resources, as the request for each resource takes more than a second.

I have been struggling to see the difference between these 2 machines that would cause one to be so much slower than the other. The test machine has slightly less memory and is on slower hardware, but the memory and hardware resources should still be adequate for decent speed, especially since the test machine serves a very low web traffic volume.

Any ideas?

IIS 8 Fault offset: 0x000096b1

$
0
0

I'm running a small setup and in the past week my app pools keep crashing. This is one of many nearly identical logs:

Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x52157ba0
Faulting module name: HcApi.dll, version: 8.0.0.4444, time stamp: 0x59b6f63d
Exception code: 0xc0000005
Fault offset: 0x000096b1
Faulting process id: 0x175c
Faulting application start time: 0x01d5d2ece7c248b2
Faulting application path: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\Program Files (x86)\McAfee\Host Intrusion Prevention\HcApi.dll
Report Id: 25acd196-3ee0-11ea-8113-005056931e21
Faulting package full name:
Faulting package-relative application ID:

The exception code 0xc0000005 is pretty common and I've found all sorts of suggestions that it has to do with folder permissions. The user running my IIS app pools (and McAfee) is an admin.

What's throwing me off though is the Fault offset: 0x000096b1. I can't find that with Google. What does that Fault Offset mean?

Redirect domain1.co.uk/some_subs to domain2.co.uk/different_subs

$
0
0

Good morning

I've been tasked with setting some redirections but I can't get subdirectories  to work.

I've already redirected domain with code. This part works fine

<rule name="Redirects domain1.co.uk to domain2.co.uk" patternSyntax="ECMAScript" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAny"><add input="{HTTP_HOST}" pattern="^(www.)?domain1.(com|co.uk)$" /></conditions><action type="Redirect" url="https://www.domain2.co.uk/{R:0}" /></rule>

Now I am trying to redirect some highly ranked subs but I am not getting any luck with below code. Any help would be appreciated.

<rule name="Subdirectory 1" patternSyntax="ECMAScript" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAny"><add input="{HTTP_HOST}" pattern="^(www.)?domain1.(com|co.uk)$" /><add input="{PATH_INFO}" pattern="subdirecotory-A$" /></conditions><action type="Redirect" url="https://www.domain2/subdirectory-B/{R:0}" /></rule>

Lukasz

Network Setup Service service entered the stopped state then started state repeatably

$
0
0

We have recently deployed a Windows Server 2019 on AWS. We are running IIS, with a WCF service. Connectivity to the service seems to be fine, however, in the Windows event log I'm seeing regular entries of the following :

The Network Setup Service service entered the stopped state.

The Network Setup Service service entered the running state.

I've gone back over the event log from when the instance was first launched and these event entries were not present.  So these entries are as a result of one of the following

  •  Installing  WCF / IIS configuration
  •  Changed the NIC from DHCP to have two static IP addresses
  •  Installed all of the pending Windows Updates. 
  •  Disabled TLS 1.0 and make further changes to ensure that the server passed a PCI Compliance  vulnerability scan 

How can I fix this issue?

Application Host Helper Service encountered an error trying to delete the history IIS 10 (Windows 2019)

$
0
0

I have recently deployed a Windows Server 2019 on AWS. We have installed IIS, and are running a WCF service using .net 4.5.1. The WCF service is running fine and the server is up to date with regards Windows updates.

However, I noticed that we are getting regular entries in the Windows event viewer of the following :

The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000021'. The directory will be skipped and ignored. Note that the directory may still get deleted in the future if the service restarts. The data field contains the error number

I've checked in the file 'applicationHost.config' in the folder C:\Windows\System32\inetsrv\Config and under sectionGroup name="system.applicationHost" all I have is

<section name="configHistory" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />

There is no other reference to configHistory in this file.

How can I fix this issue?


Migrating classic asp from 2003 to 2012, anon user failing

$
0
0

Hello!

I'm migrating an old application that is currently working on a windows 2003 (IIS 6).

Its a site that uses only anonymous authentication, with a service id (domain account), and access an external server for some queries... this service receives this anon user account and returns the data ok.

On my new infrastrucrue, windows server 2012R2 (IIS 8.5) the site works, but fails on all calls to the external server/service (same one).

I have the application pool setup with the same credentials. In this case with 32bits enabled, tried integrated and classic mode.

On the site, I have the same authentication settings, but the external service receives the connection attempts but it receives a anonymouse connection so it rejects it... (from the website it says the server is turned off or too busy)

Is there anything I'm missing to get it to work as in iis6 and send the credentials?

Thanks!

https is not working when trying the sites inside the server (not even giving security certificate warning).

$
0
0
<div>We have a server (windows 2008 R2 with IIS 7.5) and have few sites setup in IIS. </div> <div>When we try accessing the sites using http inside the server, working fine without any issues.</div> <div>If we try sites using https inside the server, it is giving security certificate error and if we continue its working.</div> <div></div> <div>Recently we cloned this server and created second server as it is. Now in side the new server , is we try the site using http its working fine. But if I try using https, its not loading the site, not getting the security certificate error as well, its diplaying "This page can’t be displayed".</div> <div>

May I know what will be the issue, how to fix this? I want the sites to work similar to the first server if I try using https. 

FYI. SSL configured for the sites only in LB not in servers in our setup. 

</div>

powershell monitor if requests are occomulating under an appPool

$
0
0

Hi

our Dev team have 20 upplications under default website on IIS 10, Server 2012R2

sometimes one of the applications is stuck.

in IIS when I go to worker processes and click AppPoolname, I see under the stuck appPool many requests.

I need to

1. monitor if many requests are occomulating under an appPool

2. recycle the problematic appPool.

I only managed to do this partially using appcmd:

appcmd.exe list requests | find /c /v ""

I prefer working with powershell but could not find how to accomplish this.

any suggestions?

URL encoded data

$
0
0

Is IIS will convert URLencoded data in GET method e.g.

GET/index.php/..../reviewers?searchPhrase=%S9%85%...

to utf8 id the Database is encoded in utf8 and if bot what to do?

TLS1.0 TLS1.1 Query

$
0
0
My company have been casually removing TLS1.0 and TLS1.1 from our backend servers over the last year or so but we have a few more to finish off. Mid March 2020 is approaching so time is tight and we host quite a few sites. TLS1.2 will be present on all our backend servers. Come Mid March will customers still be able to connect to the websites we host if TLS1.0 and TLS 1.1 are still running keeping in mind that TLS1.2 is enabled? Thanks mcneilpa

IIS 10 with Advanced Logging

$
0
0

So, a trip down memory lane is in order.

Starting (for us) with IIS7, we installed the IIS Advanced Logging add-in, which gave us the ability to add new fields and direct that data to a different location versus the default logging location.

This has worked well for us up to and including IIS 8.5.

Introduce IIS 10

Advanced Logging MSI will not install on Windows 2016, you get a pop-up saying that IIS version 7.0 is required to use IIS AL 1.0

I know that custom logging was added to IIS 8.5 but we continued to use the AL 1.0 since our install script was still working and we didn't want to spend the time changing the script to work with the built-in feature.

In my Powershell script to install IIS and IIS AL, I have a function for adding or setting web configurations like below:

###############################################################################################

Function Update-WebConfiguration ($Action, $Filter, $Name, $Value){

Try{
If ($Action -eq "Set"){
$Command = "Set-WebConfigurationProperty -Filter $Filter -Name $Name -Value $Value"
$Result = Invoke-Expression -Command $Command -ErrorAction SilentlyContinue -ErrorVariable errVariable -WarningAction SilentlyContinue -WarningVariable wrnVariable
}
ElseIf ($Action -eq "Add"){
$Command = "Add-WebConfigurationProperty -Filter $Filter -Name $Name -Value $Value"
$Result = Invoke-Expression -Command $Command
}
}
Catch{
Return $false
}
Return $true
}

###############################################################################################

We changed the location of the advanced log files so as to not interrupt any current process that was using the base logging location or files with this code:

###############################################################################################

Write-Host "[$Now] Setting Advanced Logging Default Log Location..." -ForegroundColor Green -NoNewline

If (!(Update-WebConfiguration -Action 'Set' -Filter '/system.applicationHost/advancedLogging/serverLogs' -Name 'directory' -Value "$strIISAdvLogFolder")){
Write-Host "FAILURE" -ForegroundColor Red
}
Else{
Write-Host "SUCCESS" -ForegroundColor Green
}

###############################################################################################

Then we added advanced logging fields using code  like this:

###############################################################################################

Write-Host "[$Now] Add Logging For REMOTEADDRESS Property..." -ForegroundColor Green -NoNewline

If (!(Update-WebConfiguration -Action 'Add' -Filter '/system.webServer/advancedLogging/server' -Name 'fields' -Value '@{id="REMOTEADDRESS";sourceName="REMOTEADDRESS";sourceType="RequestHeader";logHeaderName="";category="Default";description="";defaultValue="";loggingDataType="TypeLPCSTR"}')){
Write-Host "FAILURE" -ForegroundColor Red
}
Else{
Write-Host "SUCCESS" -ForegroundColor Green
}

###############################################################################################

This all flies out the window with IIS 10.

Anyone have ideas on how to get this to work with IIS 10?

I need to be able to set advanced logging fields BEFORE any sites are created.  If done after, the installer will never know its needed and business partners would just ignore the requirement and then later on when we need the log data, we will discover they never added the fields after they stood up the site(s) that their application has.

Most mysterious thing ever

$
0
0

I have a custom PHP / MYSQL site running on Windows Server 2016 and IIS.  To be honest I don’t know what happened, and what’s still happening.  My website just stopped working yesterday afternoon, and I still don’t know why. 

 

It was just showing a white screen with no error message whatsoever.  The server was fine, the database was fine, (I was able to RDP in and had no problems using the DB in MYSQL Workbench) the code was exactly the same code running on my dev server and on my second server and those servers never had any issue. 

Commenting out the file that connects to the DB allowed me to load the login page (without a DB connection).  So I figured there was some code in there that was causing the problem, but eliminating all the code did not solve the problem.  Even including this file now entirely blank, resulted in a white screen, but if I did not include it I was able to see the login screen.  Eventually I saved the DB connecting file with a different name and included that one instead and it finally gave me a DB connection error instead of a white screen.  Exact same code, different name.  So then I went into the DB, changed the password and then it worked.  I renamed the file to the original name and it still worked.  I still don't know why I was getting a connection error and I wondered if maybe somebody had hacked in and changed my DB password, which seems unlikely but changing the password allowed me to connect.

 

So the main site is usable again, but this morning I’m still having the same issue with my mobile site and my demo site, but the same trick is not working for these sites.  As long as I comment out the code that tries to hit the database the page will load, except of course I can’t get any data from the database.  If I allow it to try to hit the database I just get a white screen.  My admin site, which also hits the same database (and on the same server) never had any issue and that is still working fine.

 

I’ve never seen anything like this.  It makes absolutely no sense.  It can't be a code issue because the code works fine on other servers, and the same code is now working on my main site even though that same code was not working yesterday.  It can't be a DB issue because I can connect to the DB either through MySQL Workbench or through my dev site or my admin site and my second server.

I've restarted the website multiple times, recycled the application pools.  I even rebooted the box entirely.  If anybody's ever seen anything like this I would love some insight.  I'm desperate now because this site is how I make my living and if my customers can't access it, I'll lose them all.

 

Vincent.


Unable to download the Web Platform product list with wordpress

$
0
0

Hello, I am getting this error.. anyone can help please? Thank you

Unable to download the Web Platform product list. Check your network connection and try again. If the problem persists, report the issue on the Web Platform Installer forum at: http://go.microsoft.com/fwlink/?LinkId=145244.
Details:
One or more errors occurred.

An error occurred while parsing EntityName. Line 106, position 29.

System.AggregateException: One or more errors occurred. ---> System.Xml.XmlException: An error occurred while parsing EntityName. Line 106, position 29.
at Microsoft.WebMatrix.Gallery.Wizard.GalleryWizardModel.Load()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Xml.XmlException: An error occurred while parsing EntityName. Line 106, position 29.
at Microsoft.WebMatrix.Gallery.Wizard.GalleryWizardModel.Load()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

IIS-W3SVC-WP EventID 2308 loghttp

$
0
0

Модулю loghttp в рабочем процессе с ИД "6684" не удалось получить данные настраиваемого журнала для запросов: "6". Поле данных содержит код ошибки.

особенность в том, что процесса PID 6684 нет.

PHP 7.4 is not available in the Web Platform Installer

$
0
0

Still waiting for PHP 7.4 to be added over a month after its release.

Classic Asp pages started not showing in IIS10 - 'Cannot reach' and connection reset

$
0
0

Have used some classic ASP websites running on localhost for years with no problem. They connect to a local Access DB and I input data and create reports through my browser. Now the sites are not showing up through browser. Localhost home page is just fine though - it appears to be when an asp page is browsed to. Initially when browsing to an .asp page, it would cause the App pool to stop - but I've turned off Rapid Fail which I assume was stopping the default app pool the sites run in. Now just getting a 'cannot reach page' error - and connection reset message. Wierdly - one of the asp sites works just fine now after turning off Rapid Fail. 

All sites were working just fine until this week - early Feb 2020. Have stopped working on 2 of my PCs and I have not changed any IIS settings or anything else - so I suspect an update issue, but dont have option to rollback. Any advice would be really appreciated!!

Update - the asp sites that work use older versions of access .mdb ones - its the ones with .accdb that are erroring.

thanks

Richard 

Dynamic IP Restrictions Beta module blocking IIS migration

$
0
0

I am currently trying to migrate our public facing web server from Server 2008 R2 to Server 2016. I am attempting to use msdeploy. I have successfully done this with our Dev server that was also a 2008 R2 server and moved to a 2016 server. However, when I attempt to do the same steps with our Production server I get an error saying the 'Dynamic IP Restrictions Beta' application is on my source server and it is unsupported on my destination server. When I look at my source server however, I don't see the beta installed AND the Dynamic IP Restrictions feature is installed on my destination server as well. My questions are as follows:

  1. Is it possible to skip this module when exporting or importing the sites via msdeploy?

  2. If it's not possible, what are my next steps for getting these sites moved?

I have Googled for a few hours and have found a whole lot of nothing. I've seen a few people have the same problem, but the solution was never stated.

Thanks for any help. This has been the bane of my existence for the past month.

</div> </div>

Viewing all 27852 articles
Browse latest View live


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