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

in IIS URL rewrite rule remove symbol "?"

$
0
0

I'm trying to make a IIS URL rewrite rule that remove (revpage=1)  an URL parameter to the URL. if I have a URL that is as such:

1) http://blah.com/otzyvy.aspx?revpage=1&sort-by=photo-desc    should become   http://www.blah.com/otzyvy.aspx?sort-by=photo-desc

2) http://blah.com/otzyvy.aspx?revpage=1    should become   http://www.blah.com/otzyvy.aspx

<rule name="Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions trackAllCaptures="true">
<add input="{QUERY_STRING}" pattern="&amp;?(revpage=1+)&amp;?" />
<add input="{QUERY_STRING}" pattern="&amp;?(sort-by=photo-desc+)&amp;?" />
<add input="{REQUEST_URI}" pattern="^/redirect" negate="true" />
</conditions>
<action type="Redirect" url="otzyvy.aspx?{C:2}" appendQueryString="false" redirectType="Found" />
</rule>

result:

1) http://www.blah.com/otzyvy.aspx?sort-by=photo-desc      -this correcly

2) http://www.blah.com/otzyvy.aspx?                                      -and here how to remove a symbol - ?          

I will be grateful for the help


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

Add Website Maintenance Notification

$
0
0

Hi, I am a newbie at IIS stuff. I was just assigned a task to add a notice to our website before shutting it down for maintenance. So

1. The notice should be added when the website is live.

2. It should not use too much server resource.

Any best practices on this problem and pre-existing solutions?

Thanks in advance!

iis giving me the document not enabled for developing applications

$
0
0

hi. I am a blind it student,  about windows 8.1, and using visual studio community 2015 and iis 7 and above, I have windows 10 64 bit pro, and learning and using windows 8.1, to do the background apps subject fromhttp://www.pluralsight.com and doing the diploma of software development fromhttp://www.upskilled.edu.au. use a screen reader called ajws fromhttp://www.freedomscientific.com, every time I try to deploy a project, get the document or default document in either firefox or internet explorer. got the latest iis, and turned on all the features in control panel, programs and features, on windows features, checked the iis and other web sections, then rebooted my machine, edited the config file, and set the enabled document to true, but still keep getting this error, how to fix, any ideas. could not seem to find it using the command prompt, and so, then had to google, so the first project, it loaded the web application, but other web applications, giving me the document or root document default not loaded or recognized, then also just gave me an error could not load the web document. any ideas, new to iis, and got the latest version installed. marvin from Adelaide Australia.

Rewrite to HTTPS and site collection

$
0
0

Hi Guys, 

I need help to do following rewrite.

when users types http://portal.website.com or https://portal.website.com it should redirect to https://portal.website.com/site/mysite if both conditions are met. 

currently I am using below but it is just redirecting from http to https. 

<rule name="HTTP to HTTPS Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">

<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" />
</rule>

Thanks

how to view ASP files in IIS 10

$
0
0

I really hope this is a simple answer.  I can't view any files in the asp directory outside localhost.  So this means I can't view anything via the local network or using the external IP.  The site is setup under default web site and "default web site" will shojw the IIS splash page on every device.  I can pull up static objects like .jpg but everything in my asp directory comes up as error 404.0.  This is Windows 10 Pro.

Http Redirection Automatically HTTPS

$
0
0

Hello everyone!
I tell them what is not working and I want to ask if it is possible or not
An app in IIS 7.5 using http for port XX want to assure HTTPS using the same port XX and the idea is that when wanting to access the address http: // app: XX will be automatically redirected to https: // app: xx
Probe different variants I found here with the URL Rewrite Module but has not worked for me, you can do what I want?
Thanks guys

IIS 8.5. Cant access the ftp.

$
0
0

Getting this error when logging into my iis 8.5 ftp. No firewalls. Login and passwd is jo/jo

#Software: Microsoft Internet Information Services 8.5
#Version: 1.0
#Date: 2016-07-24 17:21:09
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem sc-status sc-win32-status sc-substatus x-session x-fullpath
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 ControlChannelOpened - - 0 0 cf8dec06-e038-4a57-8931-4d7cb2c91472 -
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 AUTH TLS 534 5 31 cf8dec06-e038-4a57-8931-4d7cb2c91472 -
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 AUTH SSL 534 5 31 cf8dec06-e038-4a57-8931-4d7cb2c91472 -
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 USER jo 331 0 0 cf8dec06-e038-4a57-8931-4d7cb2c91472 -
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 PASS *** 530 1326 41 cf8dec06-e038-4a57-8931-4d7cb2c91472 -
2016-07-24 17:21:09 10.10.30.5 - 10.10.10.20 666 ControlChannelClosed - - 0 0 cf8dec06-e038-4a57-8931-4d7cb2c91472 -

Anyone have a quick solution?


ERROR_USER_NOT_AUTHORIZED_FOR_DEPLOYMENTPROVIDER while performing deployment (web application or windows services) as NON-Admin user via MSDeploy

$
0
0

Hi Team,

We have been receiving error - "ERROR_USER_NOT_AUTHORIZED_FOR_DEPLOYMENTPROVIDER" while executing below command using MSDeploy as Non-admin user (Username : myserviceaccount) in Target server. Same error by-passed when admin access provided to "myserviceaccount" user in Target server.

Typically, reported error should not appear when we declare delegation rules in IIS as mentioned in http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler. But, MSDeploy still requires Admin access to "userName" for complete preSync & postSync MSDeploy commands.

Also, Have followed all directions captured in below blogs to complete the deployment as Non-Admin user. But, no luck favors to us.

1. http://www.jamescrowley.co.uk/2011/09/05/deploying-windows-services-using-msdeploy/

2. https://support.microsoft.com/en-us/kb/2023855

3. http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler

Can you advise us what we are missing here?

MSDeploy Command:

“C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe” -verb:sync -preSync:runCommand=’mypath\Uninstall_Service.cmd’,waitInterval=30000 -source:package=’mypackage.zip’ -dest:manifest=”mypackage.DestinationManifest.xml”,computerName=”https://myserver:8172/MSDeploy.axd?site=Default Web Site”,userName=”myserviceaccount”,password=”#########”,authtype=”Basic”,includeAcls=”False” -setParamFile:”mypackage.SetParameters.xml” -postSync:runCommand=’mypath\Install_Service.cmd’,waitInterval=30000 -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted

Smooth Streaming: 500 error when subtitles hosted on remote origin

$
0
0

Hi Microsoft,I am generating Smooth Streaming packages with ISMT subtitles for a customer. The production origin servers are owned by the customer and content is distributed by a third party CDN (Akamai).

In the production environment, the audio, video and manifest files are hosted on one origin and the subtitle files are hosted on a separate origin and I have therefore been trying emulate that architecture in my test environment.

My packages play perfectly (including subtitles) when I host all the media files and the subtitle file in the same folder on my test IIS web server. But if I try to host the subtitle files on a separate server, or indeed in a different location on the same webserver and referenced within the ISM manifest by the full URL, the video and audio plays but the subtitles do not display.

I raised this issue with our packager vendor (USP) and they repeated my remote subtitle test (using the exact same subtitle file and location but hosting the audio and video files on their own Apache server) and heir test was successful - video and subtitles display correctly.

I have noticed that in the successful tests (the one with subtitles local to video/audio and the USP one), the developer view in my browser shows that the textstream request gets a 200 response and the content type is shown as mp4 (just like the video and audio streams).

In my unsuccessful test (where the video and audio are hosted on my test IIS server and the subtitle file is on the remote server) the textstream request gets a 500 response and the content type is shown as html.

I have tried setting the MIME type to mp4 for .ismt files on my IIS server but that doesn't have any effect.

I'm sure this must be down to a problem on my IIS server because everything else is the same between my test and the successful USP one: same smooth streaming packager/package, same player (SmoothStreaming.xap) same subtitle file and subtitle origin, same crossdomain.xml, and same clientaccesspolicy.xml.

Is there something other than the MIME type I need to set on my IIS server in order to force content type "mp4" for the textstream request?

Many thanks,

Bruce.

Reverse proxy using subdirectories

$
0
0

Hello,

I've setup a reverse proxy using using IIS, URL Rewrite and ARR. 

Purpose: If I surf to http://example.myqnapcloud.com/router/ I should be redirected to http://10.254.0.1. In the browser I should always see: http://example.myqnapcloud.com/router/.

Currently: It goes goeas always to http://10.254.0.1 even if I surf to http://example.myqnapcloud.com.

Future: I want to extend the subdirectories http://example.myqnapcloud.com/NAS / http://example.myqnapcloud.com/IPMI / ...

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="ReverseProxyInboundRule1" stopProcessing="true"><match url="(.*)" /><action type="Rewrite" url="http://10.254.0.1/{R:1}" /></rule></rules><outboundRules><rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1"><match filterByTags="A, Area, Base, Form, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://10.254.0.1/(.*)" /><action type="Rewrite" value="http{R:1}://example.myqnapcloud.com/router{R:2}" /></rule><preConditions><preCondition name="ResponseIsHtml1"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /></preCondition></preConditions></outboundRules></rewrite></system.webServer></configuration>

Can someone please tell me what I'm doing wrong?

Thanks in advance !

Reverse proxy and MJPEG stream

$
0
0

My problem is same as hereI try to reverse proxy my intranet webcam mjpeg stream through IIS URL Rewrite module and there is a big startup delay. But in difference I use Application Request Routing 3.0, where bufferingfeatures is disabled. So the solution with response buffer threshold via server farm settings is not answer for my question. What can I do to set the response buffer limit to 0 for any streaming applications in my case?

IIS 8.5 showing old sql query

$
0
0

I'll first apologize for the novice post.  I am a DBA fudging my way through a home-grown-DBA-built aspx (built by a different DBA) database inventory app.  I know very little about IIS which brings me here.

I have a addnewinstance.aspx that utilizes InstanceValidation.vb found in C:\inetpub\wwwroot\App_GlobalResources\

This is a windows 2012r2 machine with IIS8.5 on a SQL server 2014 (both are local/sharing the same machine (I'm sure there are a thousand things to consider with this but I'm here for my specific problem).

The vb validates a certain database exists.  I have since modified the query to point to a new, relevant database in my InstanceValidation.vb.  However when I profile the sql error, its still looking for the old database and has the old query.  

I search everything and I could not see if it references that old database anywhere in any of the scripts.  I have done multiple IIS resets and the machine has been rebooted.

what or where else should I look for this old reference (I'm sorry but you may need to direct me where to go as well)?

New server, can't open site

$
0
0

Hello,

I have a new server (2008 R2 SP1).
Created a new site in IIS, and added a simpel Default.htm file.

But when I browse to http://mytestsite on the server I get the following messages:

Internet Explorer: "This page can’t be displayed"
Google Chrome: "mytestsite’s server DNS address could not be found"

First time I configure IIS, so what am I missing?

2.0.0.7 stable as x64 DLL

$
0
0

Hi,

The PECL release doesn't have a DLL to download. Also the binaries on sourceforge are marked as 2.0.0.7-dev etc.

Can you please provide a 2.0.0.7 x64 DLL for download?

Thanks,
Mike


Application Pool Identity Credentials

$
0
0

Good Day

Our IIS is hosting several ASP.NET based web applications on our local intranet. Every ASP.NET Web app has its own app pool which has its own identity, that is a domain account. The local admin can use PowerShell script or AppCmd.exe to see the account password as clear text. We want to prevent this even from the local admin.

Please suggest.

403 error depending on binding

$
0
0

I have two binding for a site:

1-stuffdev.company.com all unassigned 443 same cert - this one works

stuffdev.company.com all unassigned 443 same cert - this one I get the 403 error.

both are in DNS.

the owner of the site is listed under NTFS permissions and he can access both .

I can only access 1-stuffdev.company.com

anonymouse auth is the only setting on.

Help

403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

Different performance depending on the way HTTP requests are made

$
0
0

I am trying to inderstand why if I connect to a web site through my browser I get consistently good performance, but if I do it through .NET using httpwebrequest it is occasionally slow. Do they use different application pools or something and one is timing out? How does a ServicePointManager relate to an Application Pool, if at all?

 Thanks for any help on such an open-ended question - I wish I knew how to narrow it down!

Help on rewrite

$
0
0

Hi all,

I need some help on rewrite. When user typed http://www1.website.com or http://www2.website.com, I need to rewrite to https://www1.website.com. Thanks.

IIS 6.0 (Server 2003) to IIS 8.5 (Server 2012 R2)

$
0
0

Hello! 

I have been banging my head against my desk for the past couple weeks trying to figure out why I cannot migrate my IIS 6.0 (Server 2003) webwsites to IIS 8.5 (Server 2012 R2) using the MSDEPLOY tool.

I've used mostly used this blog post - https://blogs.msdn.microsoft.com/ericparvin/2014/09/12/migration-from-iis-6-to-iis-7-x-8-x/ - and due to our environment, I really need to be able to use the PUSH or PULL method to sync the servers. These servers are on the same subnet/workgroup and am logged in as a local administrator on both but I cannot get them to sync. 

Running this code.....

msdeploy -verb:sync -source:metakey=lm/w3svc/123456 ^
-dest:metakey=lm/w3svc/123456,computername=IPADDRESS -whatif

I get this error....

Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to 'IPADDRESS' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'IPADDRESS'
Error: The remote server returned an error: (401) Unauthorized


Now as I mentioned, these servers are not on the domain and therefore I can't use domain admin credentials. How can I give permission to either push/pull and migrate to IIS 8.5?

Viewing all 27852 articles
Browse latest View live




Latest Images