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

Need a rewrite rule


AD authentication failure when updating IIS 7.5 FTP from no user isolation to Isolate Users

$
0
0

Situation:

Existing IIS 7.5 Default FTP Site was created without any user isolation settings. Local users were given a vitual directory in the root of the FTP site. 

Now I need to add AD users to this FTP server and set up user isolation so the content is separated.  I enabled the option "Isolate users. Restrict users to the following directory: User name directory (disable global virtual directories)".  I moved the local users' virtual directories to the physical location D:\inetpub\ftproot\LocalUser\%username% and that worked fine. I created a new directory D:\inetpub\ftproot\mydomain.com\%username% and checked the NTFS permissions were correct for my domain user. I created a new virtual directory pointing to the domain users' folder. I restarted the Microsoft FTP service.

When I connect using a domain account I get this error: "530 User cannot log in, home directory inaccessible."

It seems like I need updated instructions something like what was written for IIS 6.0 here: "Converting an Existing FTP Site to Isolate Users Using Active Directory" (https://technet.microsoft.com/en-us/library/cc730802(v=ws.10).aspx), but I can't find anything for IIS 7.5

How do I get this to work?! I'm pulling out my hair. It should be so simple.

All rewrite rules completely ignored

$
0
0

Hello,

I don't have a lot of experience with IIS. We are trying to set up a few rewrite rules on a client's production server.

The problem is, it is completely ignoring them - even the example rules from the IIS tutorials. I tested the same rules set up on my local machine on a fresh instance of IIS and they all work without any problem.

They already have the ARR and URL Rewrite modules installed, and already have some Static Rewrite Maps in place that are working fine.

Also, when I simply change the mode to Redirect instead of Rewrite, the rules are working fine. Though, a redirect doesn't suit, so we need to make them work.

An example rule that I tried to use is like this:

<rule name="Test Rule" stopProcessing="true"><match url="^(.*)(testrewriterule.asp)$" /><action type="Rewrite" url="http://www.google.com" appendQueryString="false" logRewrittenUrl="true" /></rule>

As can be seen, even with the rewrite logging turned on, when trying to access the page - testrewriterule.html, we simply get 404, and in the log, there is only a request that gets a 404. If I switch the type to Redirect, it works.

Also, on my local IIS, the same rule works fine and I clearly see in the record how the request is rewritten to the external site.

My problem is, since I have very little experience with IIS, I don't know where to start checking... I suspect it is a configuration issue, but I have no idea what could produce this behavior so any clues would be appreciated.

Thanks

J

Trouble Accessing mssql database

$
0
0

<?php
// Server in the this format: <computer>\<instance name> or
// <server>,<port> when using a non default port number
$server = 'SQL\SQLEXPRESS';
$dbName = 'cem';
$connectioninfo = array("Database"=>"cem");
/* Connect to MSSQL */
$connection = "sqlsrv_connect($server)";

if (!$connection) {
    die('Something went wrong while connecting to MSSQL' . sqlsrv_errors());
}
//$sql="SELECT MachineName, DateofService FROM cem";
//$stmt = sqlsrv_query($connection, $sql, 100);
//if ($stmt === false ){
//  die( print_r( sqlsrv_errors(), ture));
//}
?>

<?php require_once("includes/functions.php"); ?>
<?php include("includes/header.php"); ?>


<table id="structure">
       <tr>
           <td id="navigation">
               &nbsp;
           </td>
           <td id="page">
               <h2>Staff Menue</h2>
                   <p>Welcome to the staff area.</p>
               <ul>
                   <li><a href="content.php">Manage Website Content</a></li>
                   <li><a href="new_user.php">Add Staff User</a></li>
                   <li><a href="logout.php">Logout</a></li>
               </ul>
           </td>
       </tr>
</table>

<?php include("includes/footer.php"); ?>

The above works well until I uncomment the area between the 12th - the 16th line,

then I get a blank page...

Can some one here help me? I don't even know where to begin.

Tell me what to do, and what info I can give you and I will try to comply...

Handler restrictions in ApplicationHost.config

$
0
0

We host several WordPress installations on the same IIS 8 server. How to disable execution of the PHP code in /wp-config folders for all Wordpress sites in ApplicationHost.config?

This doesn't work:

<location path="~/wp-content">
<system.webServer>
<handlers>
<remove name="PHP_via_FastCGI" />
</handlers>
</system.webServer>
</location>

IIS Install Fails Windows 10.0.10586

$
0
0

I just recently upgraded to the latest build of Windows 10 (10586).
In Order to complete the upgrade, I had to remove all components of IIS.
Now that the upgrade is complete, I am now trying to reinstall but running into some major issues.
I have run through every post online that I can find to resolve this issue but none of them appear to work (most post on this issue are for windows 7 or 8) and a format/reinstall is basically out of the question.
I have tried installing through add and remove features, DISM, DISM with /source, safe mode, clean boot, and any combination of these that you could probably come up with.
I have removed the keys (they are always regenerated in the install attempt), removed the /inetsrv and /inetpub folders (also recreated on install attempt), searched registry, and run every repair option I can find (/sfc and DISM).

I have also tried removing Avast from my system and then running every combination of fixes/install options listed above plus some.


Looking through the logs, I have narrowed it down to this:

iis.log:
[11/21/2015 22:32:33] "C:\WINDOWS\System32\inetsrv\iissetup.exe" /install SharedLibraries
[11/21/2015 22:32:33] Successfully added IIS_IUSRS ACE to DACL at %ProgramData%\Microsoft\Windows\WER\ReportQueue.
[11/21/2015 22:32:33] NetFrameworkConfigurationKey key container already exists
[11/21/2015 22:32:33] Set ACLs on NetFrameworkConfigurationKey
[11/21/2015 22:32:33] iisWasKey key container already exists
[11/21/2015 22:32:33] iisWasKey user key already exists
[11/21/2015 22:32:34] iisConfigurationKey already exists
[11/21/2015 22:32:34] iisConfigurationKey already exists
[11/21/2015 22:32:34] Created AesProvider
[11/21/2015 22:32:34] Created IISWASOnlyAesProvider
[11/21/2015 22:32:34] < !!FAIL!! > Failed to create the iisCngConfigurationKey key container (result=0x80090009)
[11/21/2015 22:32:34] < !!FAIL!! > Generating IIS CNG Configuration Key Container (result=0x90090009)
[11/21/2015 22:32:34] < !!FAIL!! > Install of component SharedLibraries result=0x90090009
[11/21/2015 22:32:34] < !!FAIL!! > COMPONENT::ExecuteCommand result=0x90090009
[11/21/2015 22:32:34] [ End of IIS 10.0 Component Based Setup ]
[11/21/2015 22:32:34] [ ***** IIS 10.0 Component Based Setup ***** ]

DISM.log:
-21 22:33:52, Info DISM DISM Package Manager: PID=6720 TID=6376 Error in operation: (null) (CBS HRESULT=0x80070bc9) - CCbsConUIHandler::Error
2015-11-21 22:33:52, Error DISM DISM Package Manager: PID=6720 TID=9796 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070bc9)
2015-11-21 22:33:52, Error DISM DISM Package Manager: PID=6720 TID=9796 Failed processing package changes with session options - CDISMPackageManager::ProcessChangesWithOptions(hr:0x80070bc9)
2015-11-21 22:33:52, Error DISM DISM Package Manager: PID=6720 TID=9796 Failed ProcessChanges. - CPackageManagerCLIHandler::Private_ProcessFeatureChange(hr:0x80070bc9)
2015-11-21 22:33:52, Error DISM DISM Package Manager: PID=6720 TID=9796 Failed while processing command enable-feature. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070bc9)
2015-11-21 22:33:52, Info DISM DISM Package Manager: PID=6720 TID=9796 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
2015-11-21 22:33:52, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070BC9

CBS.log:
2015-11-21 22:33:50, Info CSI 00000956@2015/11/22:03:33:50.735 Done executing midground installer in 0ms
2015-11-21 22:33:50, Info CSI 00000957 Creating NT transaction (seq 169), objectname [6]"(null)"
2015-11-21 22:33:50, Info CSI 00000958 Created NT transaction (seq 169) result 0x00000000, handle @0x2088
2015-11-21 22:33:51, Info CSI 00000959 Error STATUS_CANNOT_DELETE while executing operation DeleteFile on [l:36]"\??\C:\WINDOWS\System32\admwprox.dll"


2015-11-21 22:33:51, Info CBS Setting ExecuteState key to: ExecuteStateNone
2015-11-21 22:33:51, Info CBS Setting RollbackFailed flag to 0
2015-11-21 22:33:51, Info CBS Clearing HangDetect value
2015-11-21 22:33:51, Info CBS Saved last global progress. Current: 0, Limit: 1, ExecuteState: ExecuteStateNone
2015-11-21 22:33:51, Info CBS Exec: Scheduled TrustedInstaller for auto-start because rollback was pended. [HRESULT = 0x00000000 - S_OK]
2015-11-21 22:33:51, Info CBS TI: CBS has signaled that a reboot is required.
2015-11-21 22:33:51, Error CBS Exec: An error occurred while committing the transaction and the transaction rollback requires a reboot. [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
2015-11-21 22:33:51, Info CBS Perf: InstallUninstallChain complete.
2015-11-21 22:33:51, Info CSI 0000095a@2015/11/22:03:33:51.620 CSI Transaction @0x260d468ed20 destroyed
2015-11-21 22:33:51, Info CBS Failed to execute execution chain. [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
2015-11-21 22:33:51, Error CBS Failed to process single phase execution. [HRESULT = 0x80070bc9 - ERROR_FAIL_REBOOT_REQUIRED]
2015-11-21 22:33:51, Info CBS WER: Generating failure report for package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.10586.0, status: 0x80070bc9, failure source: Execute, start state: Installed, target state: Installed, client id: DISM Package Manager Provider

(there's more in the CBS.log. All the logs I referenced here can be downloaded from https://drive.google.com/file/d/0BxquhMSQhxokQnRuTTBzUjh3Qkk/view?usp=sharing)

If anyone could help me out here it would be greatly appreciated.
I have basically run out of web links/forums from google searches and I just appear to be working in circles with all of them so far.

again, thanks for any help anyone can provide.

IIS Media Services

$
0
0

Hi there

I am writing software that interacts with IIS Media Services' REST API. I am however concerned about the lack of development for IIS Media Services; the current update (4.1) was released on 2011-11-09. What is Microsoft's roadmap for IIS Media Services?

Thanks,

Shannon O'Hara

IIS 8 Access Denied to Stop App Pools

$
0
0

I have an application that deploys code to various target servers. Recently Windows 2012 servers have been added as target servers but the application's agent service returns an 'Access denied' message when trying to perform any tasks linked to IIS. For example the application will try to Stop the relevant App Pools and Sites before copying the code to the target. First thing the App does when trying to stop the App Pool is determine which app pool needs to be stopped:

private DirectoryEntry FindSite(int nPort)
    {
        using (DirectoryEntry sites = new DirectoryEntry(string.Format(m_adSitesPath, m_RemoteServerName)))
        {
            sites.RefreshCache();

            foreach (DirectoryEntry de in sites.Children)
            {
                de.RefreshCache();
                if (de.SchemaClassName == "IIsWebServer")
                {
                    string port = GetNullableDirMultiValuePart(de, "ServerBindings", 0, 1);
                    if (nPort == int.Parse(port))
                    {
                        return de;
                    }
                }
            }
        }
        return null;
    }

App fails after using (DirectoryEntry sites... with Access Denied. On the actual server the ID the Agent is logged in as is in the Admin group and has the Log on as a Service privilege set. This application does not display this issue when running on Windows 2008 servers with IIS7. Has anyone any advice on where I could start investigating? I have enabled IIS 6 Compatibility role service and Access is still denied, It appears to be permissions related but the ID setup matching on both servers is there something with IIS8 that I need to do or can do?

Thanks


Incorrect Download Link for Windows Azure Storage Emulator 4.1

ERROR_DESTINATION_NOT_REACHABLE when using Web Deploy Server 2012

$
0
0

When publishing a web site using Web Deploy 3.5 to IIS 8.5 on Windows Server 2012, you might get an error containing the suggested cause: ERROR_DESTINATION_NOT_REACHABLE

Solution: Install ALL Features of WebDeploy when running the installation package

The hint says to go to: http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes#ERROR_DESTINATION_NOT_REACHABLE

That's fine, but the real issue is that Web Deploy 3.5 does not install all the needed components. So install/change the Web Deploy application from MS with ALL FEATURES. You can downloadi it here:

Download WebDeploy here

Paul Harker

@PaulWolf

How to tell what version of TLS users are connecting with

$
0
0

Anyone know of a way (either from ASP.Net code or using IIS logging or ??) that I can tell what type of secure layer a user is using to connect to IIS (Windows Server 2008 R2 Standard)?

TIA,

Config errors in published site

$
0
0

My dev machine is running IIS 7.5. I published to a local folder and created an app pool for the site. When attempting to browse the site, I get the following error:

HTTP Error 500.19

The requested page cannot be accessed because the related configuration data for the page is invalid. 

Error Code 0x8007000d

The site runs without any config errors in Visual Studio, and I've validated the XML from my config file - no errors. What could be causing this issue?

Not able to get the virtual directories in a web site.

$
0
0

I am using below line of code to retrieve all the virtual directories 

Get-WebVirtualDirectory -site 'Default Web Site' -Application "AppName"

but it gives me below error. 

get-webconfiguration : Retrieving the COM class factory for component with CLSID

{688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception

from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

At line:1 char:1

+ Get-WebVirtualDirectory -site 'Default Web Site' -Application "ehrms"

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-WebConfiguration], COMException

    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetConfigu

Can somebody help. i am running this command on windows server 2012

Thanks

how to use PHPstudy to set IIS in Linux Operate system

$
0
0

how to use PHPstudy to set IIS  in Linux Operate system

hello

friend:

oue website is www.sunraysat.com

i use PHP and in Linux Operate system

but i don,t know how to set up the .htaccess file

please help me

How can I get a list of IIS worker processes (and their process ids) for a given local website?


ASP.NET 1.1 on IIS8 Windows Server 2012 R2

Urlrewriter and Visual Studio 2013 IIS Express error

$
0
0

Hi, I am using urlrewriter 2.0, and with Visual Studio 2013 in IIS Express an error occurs. The same site with Visual Studio 2010 and ASP.NET Development Server, it is working, but without urlrewriting.

I note that a a section declaration is missing, but what isthe configuration sectionto recognizethe<rewrite>tag?

HTTP Error 500.19 - Internal Server Error

You can not access the requested page because the configuration data related to the page is invalid.

<div class="content-container">

Detailed Error Information:

<div id="details-left">
Module   IIS Web Core
Notification   Unknown
Handler   Notdetermined yet
Error Code   0x80070032
Configuration Error  The configuration section'rewrite' can not beread becausemissing a section declaration
Configuration file   \\?\c:\users\isarachm\documents\visual studio 2013\Projects\WebAppWithUrlrewriter\WebAppWithUrlrewriter\web.config
</div> <div id="details-right">
Requested URL   http://localhost:62957/
Physical Path   
Logon Method   Not determined yet
Logon User   Not determined yet
Request TracingDirectory   C:\Users\isarachm\Documents\IISExpress\TraceLogFiles\
<div class="clear"></div> </div>
</div> <div class="config_source content-container">

Configuration source:

86:
   87:   <rewrite>
   88:             <rules>
</div>

WebDav slowness with lots of directories

$
0
0

We have webdav setup on Server 2012 R2 in IIS 8.5. In general, it works well. Except for one folder that has about 2500 directories in it. This folder take about 10-20 seconds to open. I've been researching for a while and haven't found anything that works yet. Is this normal or should this be faster? Any help would be appreciated.

Thanks!

arr determine images exist or not

$
0
0

Hello experts,

i used arr 3.0 with iis7.5

i want to set the arr server to determines the images existence in iis server when the request through arr server
if exists ,arr server will passes the request to iis server

or not,it wll goes to cdn url

thanks for everybody help !!

 

 

IIS8 - asp.net identity login constantly expires

$
0
0

Hi,

I have a windows 2012 server with IIS8.

I have an MVC 5 application with the latest version of asp.net identity 2.2.1. (everything is updated with NuGet)

When I log in, and visit some actions/controllers with authorize attribute, my authentication cookie/session gets lost and I must relogin.

(for example after 10 second of browsing the site).

I have the correct permissions (roles) for the actions and controllers. I gave myself all the roles, so normally a relogin isn't normal n my case. 

I don't have this problem on a windows 2008 R2 server of IIS Express. 

any ideas of iis settings I forgot?

Viewing all 27852 articles
Browse latest View live




Latest Images