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

IIS 8 Redirects is BROKEN/ BUG !

$
0
0

Right now, if you edit a distinct and individual website and click on its HTTP redirect and change the value, the value is changed for ALL websites on the server.   Seriously? This is WRONG.  When you change the values of one website, it should NEVER change the values of other websites unless you are at the top root of the server.  It took me awhile to figure out WTH was going on???

Apache has been able to do this correctly since before IIS was created.

In addition, this has been working correctly since IIS beta and the release of IIS 2.0 over TWENTY (20) years ago!    Now, Microsoft in their infinite wisdom of creating this junk IIS8 and compared to earlier versions of IIS, it is a huge hunk of junk, has done away with HTTP redirects.  With todays search environment, it is actually more important than it has EVER been.  Who is running this company into the ground?  How do I report this bug !


application pool and website

$
0
0

hi, experts, I am studying the iis.

in my company , I found that 

on one server, in IIS, there are many websites created and many application pools. and the relationship is one to one.

one application pool at most contains one website.

what is the benefit?

is it due to no. of processes (exe) running on the server? or easier management? easier to on off website, application pool without impacting other running services?

thank you very much!

A few questions on FTPS Server (Windows 2012R2)

$
0
0

Hi,

I am new to IIS and FTP.  There is a request to set up a SFTP Server for vendor upload files to us.

I have searched the web and followed the instruction here to set it up on a Windows 2012R2 Server (External CA Certificate has been acquired as well). https://winscp.net/eng/docs/guide_windows_ftps_server

May I ask a number of questions ?

1) When I add FTP Site, should I choose Port 990 or Port 21.  The following article shows that we should use Port 990 but some others say Port 21.  https://techontip.wordpress.com/2012/09/07/configure-ftps-server-using-iis/

2) Does the choice of Port 21 / Port 990 affect the encryption used - Implicit / Explicit ?  ftps:// or ftpes://

3) Can the FTP Server not be a Domain Server ?  Is there any advantage of being a Domain member rather than Workgroup ?

4) We are using FileZilla Client to access the FTPS Server.  Does the timeout interval controlled by the FileZilla Client or FTPS Server ?   I find that there is a timeout setting on FileZilla Client.

5) If we don't need to host any web site on this server, we only need install FTP Server Role Feature, is it correct ?

Your advice is sought.

 

error 503

$
0
0

Hi,

I have an IIS 7.5 application installed. The application connects to another server which has sql server installed on. both servers are under the same network.

I've created a new custom application pool and configured a new service account for the application pool.

Under process model--> identity I added the new service account, with the $ sign and with no password.

I also changed anonymouse authentication to "application pool identity" under application Authentication.

Another thing I did was adding the new service account to the IIS_IUSRS group.

However, now I receive an HTTP 503 error when i run my website.

In the event viewer I receive the following error codes: 5057,5059,5021.

error 5021 is: The identity of application pool xxx is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request.  If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.

In addition, when I try to add permissions to the application directory through IIS, I receive a pop up message saying that I's trying to add a disabled service. I tried doing that after restarting the application pool and I still receive the same message. 

In IIS, the application pool keeps disabeling once I try to launch the website.

I tried restarting web services and application pool.

Any idea what might be the problem?

External Authentication for Exchange 2013 URL with ARR 3.0?

$
0
0

Is there any possibility or the way we can achieve external authentication for Exchange 2013 URL with ARR.3.0?

How to create a new in applicationHost.config with C#?

$
0
0

Now,I want to use web.administartion API to create a new <location> in applicationHost.config in IIS7 with C#.But I don't know how to create a new <location>,this is the location in IIS6 .(The ABC is a application in Default Web Site.)

<location path="Default Web Site/ABC">
        <system.webServer>
            <directoryBrowse enabled="false" showFlags="Date, Time, Size, Extension" />
            <handlers accessPolicy="Read, Execute" />
            <defaultDocument enabled="true">
                <files>
                    <clear />
                    <add value="Default.aspx" />
                </files>
            </defaultDocument>
            <httpLogging dontLog="false" />
        </system.webServer>
    </location>

What happens ifIwant to achievethe same effectshould bewritteninIIS7 by C# code?

Before creating the location I needto determine whether it exists, and if needbehowto judge?

So,Do you haveany suggestions, ifrelevantcode examples,I appreciate it!

Migration of IIS 6.0 website to IIS 8, membership database problems.

$
0
0

I have a website on IIS 6.0 that works fine and it uses a membership database in SQL 2008 to IIS 8.

Once I migrate it, it will no longer connect to the membership database without errors.The Application pool is set to:
ApplicationPoolIdentity

The connection string which works fine on IIS 6 is set to: 
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Initial Catalog=dbMembers;Integrated Security=SSPI"/>

I get this error:

Cannot open database "dbMembers" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\website.com (Cloud-Navigation)'.
A severe error occurred on the current command.  The results, if any, should be discarded.

I read that I need to create a new SQL2008 user called, IIS APPPOOL\website.com (Cloud-Navigation) and assign that user to the database.    So, I've tried that, and then I no longer get the error but it won't login either.  One of the things missing there is the instructions to do this, never state the "role".  So, I've been setting the role to owner which might be extreme but it doesn't work.  However, I can see that SQL sees that the database is special and is a membership database because it provides additional roles like: 
aspnet_membership_basicaccess
aspnet_membership_fullaccess

I've just been setting the role to owner.

The problem obviously is-The application pool identity of IIS8 can't access the SQL Server and Database name but I can't find an answer of "how do I solve that?".

I would appreciate any help and thanks in advance.

Rewrite rule help

$
0
0

Hi,

I am new the rewrite rules. when i see in windows 2008 R2, rewrite module is already installed in iis. I want to add rewrite rule for URL like

http://www.website.com/women/dresses/lawn.asp?Designer=Crescent to look like

http://www.website.com/women/dresses/lawn/Crescent

and for paging

http://www.website.com/women/dresses/lawn/Crescent/1

Will there be a 301 redirect for this rule for google etc.?

Secondly how can I remove the trailing .asp from pages.  For example, website.com/about.asp to look like website.com/about

Thank you.


Invalid credentials

$
0
0

I have an IIS 8 site that needs to read files from a location on the network part of a separate v lan. I can map the network location and read/write files using an account from that domain, however if I try to run my site under the same account at the same location it gives me username or password is incorrect.

Windows Server 2012 iis install error

$
0
0

Hi I'm trying to install the web server role onto my Windows server 2012 however I keep coming across the following error

0x800f0922

When I look in the iis logs I can only find the following errors:

[05/05/2016 04:25:44] [ ***** IIS 8.0 Component Based Setup ***** ]
[05/05/2016 04:25:44] "C:\Windows\System32\inetsrv\iissetup.exe" /install CoreWebEngine
[05/05/2016 04:25:44] < !!FAIL!! > SETUP_COMMON_UTIL::IsDomainController result=0x80070005
[05/05/2016 04:25:44] < !!FAIL!! > Install of component CoreWebEngine result=0x80070005
[05/05/2016 04:25:44] < !!FAIL!! > COMPONENT::ExecuteCommand result=0x80070005

I have tried uninstalling everything, deleting folders to force a fresh install, tried the following command start /w pkgmgr.exe /uu:IIS-WebServerRole;WAS-WindowsActivationService and tried .NET fix tool and uninstalling them.

I have tried installing with power shell and server manager

Does anyone have any ideas on what could be causing this issue?

Thanks,

John

Local IIS Visual Studio debug break mode slow to show results

$
0
0

Hi all,

Recently (past month or so) I have stumbled upon a nerve breaking issue. Before i can describe the issue I would state all the tools I am using.

I am working on:

  • Windows 10 Enterprise build 1511 OS 10586.218
  • Visual Studio Enterprise 2015 version 14.0.25123.00 Update 2
  • IIS version 10.0.10586.0
  • MVC 5
  • Framework 4.5.2
  • Running by web mvc application on  Local IIS(NOT USING IIS EXPRESS!!!)

My Problem:

While i put a break-point in any location and go to see the results of an object, there is a big delay to show these results(popup debugging context menu) while hovering over with the mouse on a object.A delay more than 10 seconds . This is unacceptable because it delays the whole debugging process.

As I stated before I am running the mvc application on Local IIS. I even tried this in a brand new empty mvc application and the same thing happens. THE WEIRD thing is when i run the mvc application on IIS express the problem is fixed. Also as I said this problem never existed before with exactly the same setup. Just appeared out of nowhere. Also I saw this happen with some other users in my team.

Does anybody know anything or have the same issue? Why does this delay occurs when running the MVC web application on Local IIS? 

The problem that i have encountered recently, these settings where always the same from the start and the problem never existed before but showed up out of the blue. Maybe some windows update or visual studio update (problem existed even before Update 2). 

Thank you for your time and hope somebody can help out!

PS:

Also i stated the same problem over at Microsoft forum but they sent me here .

The link to that is : 

https://social.msdn.microsoft.com/Forums/vstudio/en-US/352f3f61-3ba8-417d-8c4a-742a670669d7/visual-studio-debug-break-mode-slow-to-show-resuls?forum=visualstudiogeneral&prof=required

error 15401 when trying to add new application pool login to sql server

$
0
0

Hi,

I have an asp.net 4.5 application installed on IIS7.5. 

The IIS is installed on Windows server 2008 R2 and the application is suppose to connect to an SQL Server 2008, located on another Windows Server 2008 R2.

I've created a new application pool and now I want to set it as the db owner.

When I try to add a new login in SQL Server and write the Login Name in the following format: IIS APPPOOL\[new apppool], I receive the following error message:

"Create failed for login 'IIS...' error 15401".

The two servers are under the same network and the following settings are defined:

in the IIS Manager--> application pool advanced settings--> application pool identity is set to "NetworkService".

I know that it is impossible to find the application pool by using the "search" button in sql server logins, so I simply try to click the "ok" button after I write the login name.

What is wrong with what I'm doing?

Thanks.

need direction to learn how to understand this?

$
0
0

<!--

    WebDAV configuration schema.

    Please do not edit this file. To add configuration sections to the schema,
    put them in .xml files similar to this one, in this directory. They will
    be picked up automatically at application pool startup.

-->

<configSchema>

  <!--

    These settings are always access from the top-level
    <system.webServer/webdav> section.

  -->

  <sectionSchema name="system.webServer/webdav/globalSettings">

    <element name="propertyStores">
      <collection addElement="add" allowUnrecognizedAttributes="true">
        <attribute name="name" type="string" required="true" isUniqueKey="true" />
        <attribute name="image" type="string" required="true" expanded="true" />
        <attribute name="image32" type="string" expanded="true" />
      </collection>
    </element>

    <element name="lockStores">
      <collection addElement="add" allowUnrecognizedAttributes="true">
        <attribute name="name" type="string" required="true" isUniqueKey="true" />
        <attribute name="image" type="string" required="true" expanded="true" />
        <attribute name="image32" type="string" expanded="true" />
      </collection>
    </element>

  </sectionSchema>


  <!--

    These settings are always accessed using a query path similar
    to "MACHINE/WEBROOT/APPHOST/{sitename}". Thus, there is no
    inheritance from lower levels in the URI hierarchy.

  -->

  <sectionSchema name="system.webServer/webdav/authoring">

    <attribute name="enabled" type="bool" defaultValue="false" />

    <attribute name="requireSsl" type="bool" defaultValue="false" />

    <attribute name="compatFlags" type="flags" defaultValue="MsAuthorVia, MultiProp, CompactXml, IsHidden, IsCollection">
      <flag name="None" value="0" />
      <flag name="MsAuthorVia" value="1" />
      <flag name="MultiProp" value="2" />
      <flag name="CompactXml" value="4" />
      <flag name="IsHidden" value="8" />
      <flag name="IsCollection" value="16" />
    </attribute>

    <attribute name="maxAllowedXmlRequestLength" type="uint" defaultValue="1000000" />

    <element name="fileSystem">
      <attribute name="allowHiddenFiles" type="bool" defaultValue="false" />
      <attribute name="useTransactionalIo" type="bool" defaultValue="false" />
      <attribute name="hideChildVirtualDirectories" type="bool" defaultValue="false" />
    </element>

    <element name="properties">
      <attribute name="allowAnonymousPropfind" type="bool" defaultValue="false" />
      <attribute name="allowInfinitePropfindDepth" type="bool" defaultValue="false" />
      <attribute name="allowCustomProperties" type="bool" defaultValue="true" />
      <collection addElement="add" removeElement="remove" clearElement="clear" allowUnrecognizedAttributes="true">
        <attribute name="xmlNamespace" type="string" isUniqueKey="true" required="true" validationType="nonEmptyString" />
        <attribute name="propertyStore" type="string" required="true" validationType="nonEmptyString" />
      </collection>
    </element>

    <element name="locks" allowUnrecognizedAttributes="true">
      <attribute name="enabled" type="bool" defaultValue="false" />
      <attribute name="lockStore" type="string" />
      <attribute name="requireLockForWriting" type="bool" defaultValue="false" />
    </element>

  </sectionSchema>


  <!--

    These settings are always accessed using a URI-based query
    path similar to "MACHINE/WEBROOT/APPHOST/{sitename}/{uri}".
    Settings are inherited from lower levels in the URI hierarchy.

  -->

  <sectionSchema name="system.webServer/webdav/authoringRules">

   <attribute name="defaultAccess" type="flags" defaultValue="None">
     <flag name="None" value="0" />
     <flag name="Read" value="1" />
     <flag name="Write" value="2" />
     <flag name="Source" value="16" />
   </attribute>
   <attribute name="allowNonMimeMapFiles" type="bool" defaultValue="true" />
   <attribute name="defaultMimeType" type="string" defaultValue="application/octet-stream" />
   <collection addElement="add" clearElement="clear" removeElement="remove">
     <attribute name="users" type="string" isCombinedKey="true" />
     <attribute name="roles" type="string" isCombinedKey="true" />
     <attribute name="path" type="string" isCombinedKey="true" validationType="nonEmptyString" />
     <attribute name="access" type="flags" defaultValue="Read">
       <flag name="None" value="0" />
       <flag name="Read" value="1" />
       <flag name="Write" value="2" />
       <flag name="Source" value="16" />
     </attribute>
   </collection>

  </sectionSchema>

</configSchema>

IIS 8.5 Windows authentication + Rewrite URL

$
0
0

Hello, I've been having some trouble with IIS 8.5 and the Rewrite URL module 2.0

My first problem is getting my PHP website to interact with the server-variables that IIS sends out, apparently it doesn't send me a REQUEST_URI-variable, rather a HTTP_X_ORIGINAL_URL-variable, can you enforce IIS to send out a REQUEST_URI-variable?

The other, more serious problem, is getting the windows authentication (using active directory) to work combined with the rewrite url module. It works fine connecting and authenticating to my web application using active directory, and I get the username and domain through server variables, but as fast as I add a rewrite rule, I can't seem to connect, the authentication window pops up and my credentials doesn't match apparently, I get nothing out of the security log either, which is filled with success messages when I avoid to use the rewrite module.

This is my rewrite rule:

<rewrite><rules><rule name="Rule" stopProcessing="true"><match url="^(.*)$"/><action type="Rewrite" url="index.php"/></rule></rules></rewrite>

Does anyone know of this problem, and could maybe help? Thanks!

Binding Sub domain to a specific site?


ARR not working with static content

$
0
0

Hello,

I am setting up a server farm and having some troubles I can't get my head around, I will describe in detail as much as I can what the setup is and what the issues are.

Firstly, I am using server 2012 with IIS 8.5 and have ARR, URL rewrite etc.

I have 2 websites (website1 and website2), both have :80 and :443 bindings such as: 

Website1
mysite.testsite.com on 192.168.1.21:443
mysite.testsite.com on 192.168.1.21:80

Website2
mysite.testsite.com on 192.168.1.22:443
mysite.testsite.com on 192.168.1.22:80

Both websites point to the same directory and serve the same website.

In my HOST file I have 

192.168.1.21 website1

192.168.1.22 website2

I have a server farm (Sitefarm) with the servers website1 andwebsite2 added (which point to the IP address defined in the HOST as described above)

I have 2 URL rewrites on the server (not the websites), one for HTTPS requests and one for HTTP as below:

HTTPS rewrite:

Match pattern (.*) with conditions {HTTP_HOST} matches the pattern (mysite\.testsite\.com) and{SERVER_PORT} matches the pattern ^443$
Which routes to server farm https://  SiteFarm  /{R:0}

HTTP rewrite:

Match pattern (.*) with conditions {HTTP_HOST} matches the pattern (mysite\.testsite\.com) and {SERVER_PORT} matches the pattern ^80$
Which routes to server farm http://  SiteFarm  /{R:0}

When accessing my site at mysite.testsite.com on HTTPS or HTTP the page loads, but all CSS, Images and Javascript are not loaded, these HTTPS requests return a 502 error:

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.

It seems that all CSS, JS and images are not able to be loaded on HTTPS or HTTP, despite the page content itself loading. I have verified that all requests are going through to the server farm by watching the incoming requests and seeing the current requests count changing but I cannot figure out why the static content will not load.

If any one has any insight or ideas, anything would be greatly appreciated, 

Thanks

File Not Found Exception while creating FTP site on IIS using C#

$
0
0

Hello all,

We generally create FTP site in IIS manually. I am trying to automate it using c#

I have reffered Automating creation of IIS7 FTP site with C# this link but I  am getting error saying 

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.Web.Administration.dll  Additional information: Filename:   Error: Element is missing required attributes id .

I got this exception when  I was trying to add siteElement to siteCollecation on below line

sitesCollection.Add(siteElement);

does Anybody has an answer ?

thanks.

Default Pages in Sub Folders Fail

$
0
0

Description of the Problem:

If I try to access a web page by typing www.mywebsite.com/subfolder the default.aspx page that exists in subfolder is never found.  If I navigate to the websitewww.mywebsite.com first and then add /subfolder to the address bar not only is the default.aspx page never be found but any links on the page that point to the same domain will fail.  I have to close the browser completely.  If I close the browser completely and type in www.mywebsite.com/subfolder/default.aspx the page works as expected.

In short:

www.mywebsite.com/subfolder doesn't find the default page located there and if you attempt to find the default page in that sub directory by typing this into the address bar any links on the page, even those that link to www.mywebsite.com/subfolder/default.aspx will no longer work.  The entire browser session is hosed.  This happens in IE 11, Chrome, and Firefox.

Navigate to www.mywebsite.com (in a fresh browser session) and all of the links on the page work fine.  A request to a subfolder, without explicitly typing in the page (default.aspx) hoses the whole thing.

Configuration of IIS:

I know that your first thought is probably that the website doesn't have default pages configured correctly.  Default pages are set up in multiple directories and they were working up until about 2 months ago.  The default pages are inherited and default.aspx is the very first entry in the list of default pages for each and every directory.  The website was upgrade from .NET 2.0 to .NET 4.0, the application pool was set to match, and it currently runs under 'Classic' instead of integrated.  We have default pages working in another application on the same server and it doesn't exhibit the same behavior but that website is 'Integrated' (App pool setting).

Any ideas on what could be causing this strange behavior?

Subdomains only accessible to vpn user

$
0
0

Hi,

is it possible to make subdomains only accessible when connected through vpn?

I tried blocking all unknown ips and allowing access to all ips given by the RAS but that did not work for vpn clients.

Is there any different approach?

Regards,

Yannik

IIS Rewrite URL 2.0 - redirect url getting chopped

$
0
0

So I am trying to do a redirect rule using IIS Rewrite URL 2.0; basically if a user hits original site:http://www.originalsite.com/2013REIT/images/header.jpg I want to redirect to http://static.domain.net/images/2013REIT/images/header.jpg 

Testing the regex works, but when I rewrite using the below rule I end up redirecting to http://static.domain.net/images/images/header.jpg instead of maintaining the original path "2013REIT/Images" path. Any ideas?

Thanks in advance!

<rule name="Rewrite image files" stopProcessing="true">

    <match url="^(http(s)?(:\/\/))?(www\.)?[a-zA-Z0-9-_\.]+/(.*)$" />
    <conditions>
        <add input="{REQUEST_FILENAME}" pattern="\.(gif|jpeg|jpg|png|bmp|pn|psd|tif|tiff|svg)" />
    </conditions>
    <action type="Redirect" url="http://static.domain.net/images/{R:5}" appendQueryString="false" />
</rule>

Viewing all 26542 articles
Browse latest View live