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

multiple SSL certificates on single site with same IP and Port

$
0
0

Hi,

My IIS server is 8.5 and has self signed certificates to a site. My server is having only one site. Server self signed certificates are going to expire shortly. So, we need to generate one more self signed certificates and configure on server to the same site without removing the older one. The existing clients should continue to use older certificates without any disruption and new clients should use new certificates. Later once all the old clients upgraded to newer certificates, planning to delete the older certificates from site. 

Shall we configure two self singed certificates on same site with binding to same IP and port in IIS 8.5? If yes, please provide the details here. to configure. Also, later, we can delete the older certificate?


Object reference not set ( : colon are replaced by dollar sign $ )

$
0
0

Hello guys,

we install an old "home made" app on W2008R2 and on our DEV environment every thing working, but on PROD we receiving this error :

Object reference not set to an instance of an object.

Our programmer verify the code and on PROD the html code changed a some place, we having dollars sign ($) where on DEV we having colon (:).

Somebody having a idea why this happen and causing our problem ?

I compare both server and I can't find any "major" differences...

Thank you

Website Keeps Checking for Windows Credentials

$
0
0

I currently have an issue with one of my websites constantly checking for Windows credentials.  The reason this is an issue is because the computers in question are logged onto different accounts then what users are logging into the site with.  The local accounts (ones logged into the computers already) are not used for the site so they will never be able to login.  I'm very new to IIS so if I have not given enough information please ask for more details.  This problem only started happening a week ago and nothing was changed on the website (code wise) so I'm think it was a setting accidentally changed in IIS (we mess around in IIS quite frequently but never remember what we have done after it's done).

Not Found 404 Error When Viewing Website Documents On Local Machine

$
0
0

I have a document stored in a website folder and when accessed via a page on the web the file path is http://www.mywebsite.com/App_pages/Dept/HR/Forms/job_application.pdf which works fine.  However, when locally running the site via Visual Studio, the file path is http://localhost:55847/App_pages/Dept/HR/Forms/job_application.pdf resulting in a “HTTP Error 404 - Not Found” message.   The web page document file path is <a href="/App_pages/Dept/HR/Forms/job_application.pdf">.  What would be the correct file path within the webpage so the document can be viewed locally as well and not get the “404” message.

Any suggestions or recommendations would be most appreciated.

Thank you in advance.

ASP Pages Suddenly Stop Working and I need To restart my server to make it running again

$
0
0

I have server with windows server 2003

its local server not connecte to the internet

I have application which running by ASP pages

every 28-29 hours asp pages stop working and the browser give me messege that its not connected to internet and no page loaded

and I restart my server and then its workign again

I checked IIS service its running ok and I checked IIS manager and I stopped the services and start it again but nothing resolved the issue

now i tried everything I know and nothing work, always after 28 or 29 hours from restarting my server its happeneing again and I need to restart my server

can anyone give me any advice please

Different form tags on IIS 7 to IIS 8.5 using URLRewrite

$
0
0

Due to issues with SSL / TLS I am having to move a legacy v2.0 app onto a more modern server - from Win 2008 (not R2) to Win 2012 R2, and from IIS 7 to IIS 8.5.

My app uses UrlRewite module to produce friendly URLs.

When testing on the new server I am having issues with postbacks, and I noticed when viewing the page source that the form actions between the 2 servers are noticeably different..

On the old IIS 7 server I get for example :

<form name="aspnetForm" method="post" action="../../../Product.aspx?PID=128123" id="aspnetForm">

On the IIS 8 server I get :

<form name="aspnetForm" method="post" action="?PID=207051" id="aspnetForm">

I can see why I am getting the postback issues obviously but why are my form tags / actions so different? As far as I can compare all setup is as identical as it can be. Is there some other setup I have overlooked somewhere that can correct this?

I don't want to have to go through the entire app making fixes if I can help it because in theory the whole thing only needs to run for a few more months until our replacement is ready!

Thanks

 

Enable simple client side scripting in .html file with IIS?

$
0
0

I need to build a simple application on an IIS server (running Windows Server 2012 R2 and IIS8), but have little experience using IIS and am having trouble finding anything that tells me how to do the simple task I need. 

So far I've been able to setup the server side PHP and MySQL I need, but I need a little bit of client-side scripting in my index.html file. So if I were to use this simple bit of sample code in a .html file:

<HTML><HEAD><TITLE>Test Button Events</TITLE></HEAD><BODY><FORM NAME="Form1"><INPUT TYPE="Button" NAME="Button1" VALUE="Click"><SCRIPT FOR="Button1" EVENT="onClick" LANGUAGE="VBScript">
      MsgBox "Button Pressed!"</SCRIPT></FORM></BODY></HTML>

What do I need to configure to get a response when clicked? I've been trying to user either VBScript or Javascript, would prefer the latter but it's not that big a deal.

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

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

A little help please with some WebMatrix3 problems

$
0
0

I'm on Windows 10 computer. Installed WebMatrix3 to do a little ajax learning with jQuery et al. Everything seemed to work fine, but now I want to install php and also WordPress. I'm betting error messages with NuGet so I tried uninstalling it to re-install. I can't uninstall it. 

I want to get it clean working.

Also, I used Web Platform Installer to try to install php. It fails to install the Cache Extension 2.0 installer from sourceforge. My antivirus blocks it saying it has W32.Gen.Trojan. 

Anyone know how I can get php installed & working?

With WordPress (again through Web Platform Installer), it installs then asks me for localhost root password then tells me it is wrong. 

How do I get this all cleaned up?

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

%>

Unable to fork error for exec

$
0
0

We are running PHP 5.5.9 (NTS, x86) on Windows Server 2012 R2 with FCGI, Kerberos Auth and fastcgi.impersonate = 1. Application Pool runs with a AD User Service Account, W3P Service runs with "local system" Account.

Execution is enabled in IIS Script Handler for FCGI-PHP. Handler Feature Permissions is also set to "Execute".

Now I am trying to run a application from command line, but this also simple commands like dir or ping are failing with "unable to fork".

exec('dir');

Warning: exec(): Unable to fork [dir] in D:\mypath\myfile.php on line2

I have tried in my DEV-Environment:
- added read+execute Permissions to "Everyone" to c:\windows\syswow64\cmd.exe
- copied c:\windows\syswow64\cmd.exe to PHP-dir
- added read+execute Permissions to ISUSR to cmd.exe im PHP-dir
- added read+execute Permissions to IIS_IUSRS to cmd.exe im PHP-dir
- upgraded to PHP 5.5.16
- watched with sysinternals procmon, found no error or something
- searched hours and hours for this on the web

Any hints? Thank you for your help!

unable to fork, the mystery...

$
0
0

php 5.3 (x86 fastcgi)

windows server 2k8 (x64)

 I have spent a good few days googling around and trying things so let me give you the current state.

cmd.exe copied to php folder, all instances of cmd.exe, including syswow64, given read execute permissions to domain users, local users, iis_iusrs, network service in addition to the defaults

from my users command prompt i can execute php c:\inetpub\wwwroot\forktest.php, as well the same with php-cgi -f c:\inetpub\wwwroot\forktest.php

 system() is giving  a return_val of -1

in procmon.exe i can actually see the create call succeed. the application being executed has also been given the same permissions as cmd.exe, however it is not in the php folder but the full path has been given.

 my application pool, default setup, runs under network service.

any thoughts and suggestions will be appreciated!

Configure SMTP Server for use with scanning printer

$
0
0

I need to configure our HP MFP 4345 to use a local SMTP server to send scans directly to email. I am replacing an existing SMTP server. I configured the SMTP on a new Windows 2012R2 server and tested by placing a email.txt document in the "Pickup" folder, all works ok. I configure the HP 4345 to access this SMTP server, the HP validates the server, but when I scan from the printer the send fails and "Invalid addressing information" is displayed on the printer console. I used the same address and the earlier test email.

The part I am having trouble understanding is just that if I place an email in the Pickup folder, it works.

I took a look at this article https://support.microsoft.com/en-us/kb/230235 but was unsuccessful, the steps were not clear, we are using a hosted exchange so we don't have a local exchange server. Basically I just want to be able to scan in documents and forward them to specific email addresses. 

Any assistance would be appreciated. Thank you. Steve

Here is the log:

2016-06-28 20:02:07 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 HELO - +10.108.18.156 250 0 50 18 0 SMTP - - - -

2016-06-28 20:02:07 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 QUIT - 10.108.18.156 240 0 71 4 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 HELO - +10.108.18.156 250 0 50 18 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 MAIL - +FROM:<itsupport@dukkus.com> 250 0 44 31 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 RCPT - +TO:<swebster@dukkus.com> 550 0 48 26 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 QUIT - 10.108.18.156 240 94 71 4 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 HELO - +10.108.18.156 250 0 50 18 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 MAIL - +FROM:<itsupport@dukkus.com> 250 0 44 31 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 RCPT - +TO:<itsupport@dukkus.com> 550 0 51 29 0 SMTP - - - -

2016-06-28 20:02:29 10.108.18.156 10.108.18.156 SMTPSVC1 DUKSMTP01 10.108.18.167 0 QUIT - 10.108.18.156 240 156 71 4 0 SMTP - - - -

Binding Issues

$
0
0

Hi

I have a website where people access it through different links (i.e. different internally vs externally).

For some reason I can't work out, if I change the certificate for one binding it changes them for all, i.e. if I add a new link for websiteb.contoso.com and add the created certificate websiteb.contoso.com to the binding it will also update the certificate binding for websitea.contoso.com.

Hope that makes sense, it's causing some big issues for me this morning. It never did it before however after updating the underlying website this is now the result.

Thanks


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

windows authentication force specific DC instead of default controller

$
0
0

Hi,

due to finding ourselvs in a beginning of a international domain migration we need to find an interim solution to keep local (legacy, .NET) webapplications running until new FMO takes place.

The solution we need to achieve this would be the redirect LDAP auth calls sent by IIS during user login/windows auth request from default domain controller to a different one (probably a dummy LDAP resonder application or fake DC, we dont know yet, since we want to manipulate the response based on several paramaters)

Windows forms or any other auth. method is not an option since we're not allowed to touch legacy apps at all. Those are tied to use win.auth only.

Is it possible to configure IIS to use specific DC instead of default? Or any other option we have to achieve this?

thank you in advance,

Kornel

IIS Manager crash on Startup

$
0
0

Hello,

If i try to start my IIS Manager the ap crash with the following Details:

Beschreibung:
Stopped working

Problemsignatur:
Problemereignisname: APPCRASH
Application Name: InetMgr.exe
Application Version: 7.5.7600.16385
Application Timestamp: 4a5bd0a5
Fault Module Name: mscorwks.dll
Fault Module Version: 2.0.50727.5420
Fault Module Timestamp: 4ca2b7e1
Exception Code: c0000005
Exception Offset: 00000000002be3c8
Betriebsystemversion: 6.1.7601.2.1.0.400.8
Gebietsschema-ID: 1031

My System is a Windows Server 2008R2 Datacenter SP 1

The IIS is still running, only start the IIS Manager doesn't work.
Searching the Forum and the Web shows no solution for this problem.

Any Idears for me?

Regards

Multiple user recognition behid one IP

$
0
0

Hi guys,

I need your help.

I have to deploy a website with content protected by two-factor authentication access. The solution bought for 2FA is Fortigate 50E with Fortitoken.

The process is as follows:

  1. The user types the website address is the browser
  2. Fortigate asks for username and password
  3. Fortigate asks for token code
  4. Browser displays the website.

The problem is that different content have to be displayed to different users so the user must be authenticated somehow. For best user experience this must be done without prompting again for credentials. So I must have user authenticated by fortigate with autologin to the website.

No matter if I use fortigate local user or windows local user with radius I cannot be sure who is the user behind the IP

I have Fortigate Logs, NPS Radius logs so I can match username and IP for autologin but I cannot recognize two users connecting from one IP.

Do you have any ideas about how to recognize the user requesting access to the IIS without prompting for credentials again?

Thanks in advance guys!

Difference in Time-Taken value between regular and default IIS logs

$
0
0

Hello,

I'm having some trouble reconciling values recorded for 'Time-Taken' via advanced logging and IIS default logging, does anyone know about this?  I can't find much documentation about this value in the advanced logging situation.  You can see for the following 5 requests there's a difference of as much as 223 milliseconds between the two logs (265 vs 473 for the first request).  Is anyone able to help understand what's going on here?

Advanced log:
2016-08-24 00:00:22.541 POST * - * 200 *.*.*.* * * * "Apache-HttpClient/4.1.1 (java 1.5)" - 0 692 5213 265 "*" - - - *
2016-08-24 00:00:55.562 POST * - * 200 *.*.*.* * * * "Apache-HttpClient/4.1.1 (java 1.5)" - 0 688 4711 171 "*" - - - *
2016-08-24 00:02:25.783 POST * - * 200 *.*.*.* * * * "Apache-HttpClient/4.1.1 (java 1.5)" - 0 688 4722 179 "*" - - - *
2016-08-24 00:03:20.907 POST * - * 200 *.*.*.* * * * "Apache-HttpClient/4.1.1 (java 1.5)" - 0 688 4716 346 "*" - - - *
2016-08-24 00:03:46.432 POST * - * 200 *.*.*.* * * * "Apache-HttpClient/4.1.1 (java 1.5)" - 0 688 4711 159 "*" - - - *

IIS log:
2016-08-24 00:00:22 *.*.*.* POST * * * - * Apache-HttpClient/4.1.1+(java+1.5) - 200 0 0 473
2016-08-24 00:00:55 *.*.*.* POST * * * - * Apache-HttpClient/4.1.1+(java+1.5) - 200 0 0 390
2016-08-24 00:02:25 *.*.*.* POST * * * - * Apache-HttpClient/4.1.1+(java+1.5) - 200 0 0 394
2016-08-24 00:03:21 *.*.*.* POST * * * - * Apache-HttpClient/4.1.1+(java+1.5) - 200 0 0 565
2016-08-24 00:03:46 *.*.*.* POST * * * - * Apache-HttpClient/4.1.1+(java+1.5) - 200 0 0 382

I've searched what I think is pretty well for this information, so sorry if it's readily available somewhere.

Thanks,

Calvin

Viewing all 27852 articles
Browse latest View live


Latest Images

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