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

How to find out what IIS roles to need to be installed to run the website.

$
0
0

We have few IIS web servers for out Dev environment. Our development guys use Visual studio to develop their web sites. When I asked them what IIS roles does you web site need they were unable to answer that questions.

So my questions is how to find out what IIS roles need to be installed on the Web server to run the website?


AppPool not working with Custom Identity

$
0
0

Hi,

We have configured the Site using custom identity in AppPool, it was working fine, but suddenly stopped working and site went down. While checking in IIS, AppPool was down and unable recycle. When we tried recycle the AppPool got this error "the object identifier does not represent a valid object iis7".

We then tried with "Network Service" account and site worked fine.

What might be the issue? From where can I start looking into the root cause.

Please let me know your inputs.

Thanks,

Sharath

page.Request.ServerVariables["logon_user"] is return empty for anonymous user;

$
0
0

After migrating from windows 7 to windows 2012  page.Request.ServerVariables["logon_user"] is return empty for anonymous user.My application pool is configured with network service please do reply !! help!!

Unable to install on IIS 10

$
0
0

Getting errors that IIS 7 or higher is required and can't install. I'm guessing you're only comparing the first digit of the version number and IIS 10 is causing problems because 1 is lower than 7..

IIS redirection with duplicate port

$
0
0

Hallo.

I just migrated a PHP website from apache to IIS. I still use MySQL database which works just fine. The problem is that: I used url rewrite to convert from .htaccess to web.config. When all pages work as expected, when I an not logged in and enter the homepage (http://127.0.0.1:8080) then i get a message for corrupted content in firefox and by viewing the console, the status code is 302 but I get a location ofhttp://127.0.0.1:8080:8080/?page=.... instead ofhttp://127.0.0.1:8080/?page=

This only happens on the home page and when not logged in. Have you ever encountered such an error?

Thanks a lot

Chris.

Anonymous Authentication Identity

$
0
0

I'm not much of a web developer or anything so I'm sure this is a stupid question. I have a web app that uses PHP on the back-end, and the PHP executes powershell scripts to reset passwords through system calls.

In order for me to get this to work I had to set the Anonymous Authentication user to run as an account with permissions to reset AD passwords. My gut instinct tells me this is a security problem, but it works perfectly and i'd like to keep it that way if I can.

Restrict a web-site getting opened from google

$
0
0

I have developed a web-site in ASP.Net from which I am calling an existing web service to open a document in pdf format. Both my web-site and the web service is hosted in IIS. This web service was existing and provided by some third party vendor. I have to provide an ID and Name in query string to this web service. I understand that sending data in query string is wrong but this is existing web service which I have to have use. This is working fine to open documents from my web site. But, the problem is if someone type my site name in google then it is opening documents directly from the web service URL. 

I want to stop google opening the documents from that web service directly. I do not have code of this web service. For some reasons I have to use this web service only. I have full access of the IIS on which this web service is hosted. Is there a way that I could restrict this web service getting searched from google. Or is there a way that I could tell this web service to respond only if the request is coming from my web-site. 

I have already tried robots.txt but its not working as web service path is already indexed by google. If there is a way to remove the indexed URL from google then also it will work for me.

global.asa does not fire in IIS 8 with "Enable 32-Bit Applications" set to true

$
0
0

Hi.

I have created an ASP application in IIS 8 Windows Server 2012.

I need to set "Enable 32-Bit Applications" to true to use the Provider Microsoft.Jet.OLEDB.4.0 (following the instruction in this video:https://www.youtube.com/watch?v=m4BwtCjs3z8).

If I set the flag to false, the application works, executing the Application_OnStart and Session_OnStart sub defined in golbal.asa, but i can't use the Provider Microsoft.Jet.OLEDB.4.0.

When I set the flag to false, the application does not work!

Any suggestion on this?

Thanks.


Error removing 'Side By Side Component' value

$
0
0

Hello,

I have been testing the use of Side by Side components in my IIS7.5 on Windows 2008 R2 SP1. I mistakenly enabled a Side by Side component at the Default Web Site level rather than at the application level and wish to remove that enablement.

To enable the SxS component I changed the property for 'Enable Side By Side Component' from False to True and I changed the property for 'Side By Side Component' from "" to "<my component manifest>". These changes were made via the GUI. I hoped that reversing these property settings would meet my requirements, but I find that I am unable to reset the 'Side By Side Component' from"<my component manifest>" to "" as it claims:

Property value is not valid

And the Details state:

The side-by-side name cannot be empty.

How can I clear this value?
Do I need to clear this value if the 'Enable Side by Side Component' is set to False?

Thanks

IIS Express - Web API application fails when multiple segments in application path

$
0
0

I have the following in applicationhost.config (note that the application path has multiple segments):

           <site name="test-Site" id="12">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\Users\some\bogus\path" />
                </application>
               <application path="/xxx/yyy" applicationPool="Clr4IntegratedAppPool">
                   <virtualDirectory path="/" physicalPath="C:\path1\path2\path3" allowSubDirConfig="false" />
               </application>
               <bindings>
                    <binding protocol="http" bindingInformation="*:41000:localhost" />
                </bindings>
            </site>

And the following route configured:

            config.Routes.MapHttpRoute("Route1", "route1/route2/{param1}/{param2}", new { controller = "MyController", action = "MyMethod" });

The following url: http://localhost:41000/xxx/yyy/route1/route2/1/2 , MyController/MyMethod is invoked, but fails when it tries to access a connection string from the web.config at c:\path1\path2\path3\web.config.  

Procmon shows that the web.config is being read to EOF (several times).  If the allowSubDirConfig parameter is removed from the <virtualDirectory>, then in addition to reading c:\path1\path2\path3\web.config it searches (unsuccessfully) for web.config files in c:\path1\path2\path3\route1, c:\path1\path2\path3\route1\route2, c:\path1\path2\path3\route1\route2\1, and c:\path1\path2\path3\route1\route2\1\2, and fails the same way (connection string not found).  Also setting a breakpoint in the controller,  ApplicationPath ("/xxx/yyy"), AppRelativeCurrentExecutionFilePath ("~/route1/route2/1/2") and MapPath("~/") ("c:\path1\path2\path3") in System.Web.HttpContext.Current.Request are what they should be.

Modifying the virtual directory so that the path has only one segment:

<application path="/xxx" applicationPool="Clr4IntegratedAppPool">

And modifying the url:

http://localhost:41000/xxx/route1/route2/1/2

in this case the connection string is correctly accessed from the web.config and the request is successful.

Is there any reason why an application path cannot contain more than one segment in IIS Express?

Thanks in advance!

Anonymous Access with authentication (migration from iis6 to iis8)

$
0
0

I have an intranet site currently hosted by a 2003/iis6 server (machine1) that is being migrated to a 2012r2/iis8 server.  This site has write permission using the iis_<machine1> user to upload files to a specific folder that resides on an internet (hosted outside the firewall) server (2008r2/iis7.5) which has a local iis_<machine1> user.  (link to desc of this)

The iis_<machine1> user doesn't appear to exist on the new server and as I'm looking into this further I'm wondering has this method been deprecated/is there an easier way to grant write access from a server behind a firewall to a server outside it?

Thank you for your kind attention

IIS Express - Web API application fails when multiple segments in application path

$
0
0

I have the following in applicationhost.config (note that the application path has multiple segments):

           <site name="test-Site" id="12">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\Users\some\bogus\path" />
                </application>
               <application path="/xxx/yyy" applicationPool="Clr4IntegratedAppPool">
                   <virtualDirectory path="/" physicalPath="C:\path1\path2\path3" allowSubDirConfig="false" />
               </application>
               <bindings>
                    <binding protocol="http" bindingInformation="*:41000:localhost" />
                </bindings>
            </site>

And the following route configured:

            config.Routes.MapHttpRoute("Route1", "route1/route2/{param1}/{param2}", new { controller = "MyController", action = "MyMethod" });

The following url: http://localhost:41000/xxx/yyy/route1/route2/1/2 , MyController/MyMethod is invoked, but fails when it tries to access a connection string from the web.config at c:\path1\path2\path3\web.config.  

Procmon shows that the web.config is being read to EOF (several times).  If the allowSubDirConfig parameter is removed from the <virtualDirectory>, then in addition to reading c:\path1\path2\path3\web.config it searches (unsuccessfully) for web.config files in c:\path1\path2\path3\route1, c:\path1\path2\path3\route1\route2, c:\path1\path2\path3\route1\route2\1, and c:\path1\path2\path3\route1\route2\1\2, and fails the same way (connection string not found).

Modifying the virtual directory so that the path has only one segment:

<application path="/xxx" applicationPool="Clr4IntegratedAppPool">

And modifying the url:

http://localhost:41000/xxx/route1/route2/1/2

in this case the connection string is correctly accessed from the web.config and the request is successful.

Is there any reason why an application path cannot contain more than one segment in IIS Express?

Thanks in advance!

IIS Smooth Streaming

$
0
0

Can anyone point me to the minimum 2008 R2 Minimum Server requirements to build a server for IIS Smooth Streaming?  Thanks

HTTP2 and IIS

$
0
0

I have been reading about HTTP2 and have had not much luck.

I have windows 10 a client and I have a site hosted on IIS 8.5 using .Net 4.6 using HTTPS

What else doo I need? Thanks

How to add an element in the SMTP header?

$
0
0

This is on Windows 2012R2 using the SMTP service. I need to add an element in the SMTP header to enhance security. In the old days I would have fired up metaedit and added an element. How is this done with this version of IIS?


How to Block Auth pass-thru in IIS...

$
0
0

I have a need to block AD-Auth pass through and in turn prompt users to enter a username and password when they access a site.

Is this possible from the IIS side? I do not want to change the setting in IE since ther are other sites that the users will need to access and this site falls under the local intranet wildcard we have of *.domain.com

Specifically this is for the FIM 2010R2 SPPR, we have some users that are using auto logged in PC's and those are not the actual user names they need to use with SSPR.

Thank you!

Fred

HTTP/HTTPS bindings for the same site

$
0
0

I am running IIS 7.5 on Windows Server 2008R2.  I have a site that has  bindings for HTTP and HTTPS.  The binding to HTTPS is proxied through an appliance for external connections.  The HTTP binding is set on an obscure port.  The HTTP binding is in place for an internal application to connect to the application.  

My question is...how can I prevent external HTTP connections to the site?  I want to allow those HTTP connections from one or two internal addresses only and all other connections should be HTTPS.  I realize this could most likely be done with a firewall, but is it possible to configure this in IIS or the Windows firewall?

I thought this could be achieved with the IP and domain name restrictions in IIS, but if I set those it will apply to the HTTP and HTTPS bindings.  I don't see a way to configure restrictions that are unique to a protocol.

In essence, I have a site that has an HTTP binding on an obscure port.  How to I make HTTP access only available to one or two internal addresses with IIS?

Thanks.

question about IIS serving files created on the fly with .NET/MVC

$
0
0

Hello,

If I have a website that creates some Excel exports on the fly, how long do those files "live" in memory.  If someone requested one of these Excel files and didn't opt to open or save that file... basically just letting the dialog from IE sit there, how long would the file exist in memory within IIS? The reason I ask is I am curious if someone could just keep requesting and have memory on the server continue to get eaten up waiting for those responses to finish being sent to the client. The file would need to live in memory until the IIS response was finished, correct? In the code for the website, the data gets flushed to a FileStream object and the content-type is set at which point the application is done with that memory, but IIS still needs to serve that file that was created on the fly.  I'm just wondering if there is a mechanism within IIS that would prevent someone from potentially just queuing up these requests and not saving or opening the file through the IE dialog to open/save the file.

IIS Express 10 terrible performance

$
0
0

Recently upgrade from VS2012 to 2015 which includes IIS 10 Express. When developing our web application locally the performance running under IIS 10 Express is awful and basically unusable - using Chrome dev tools I can see on the network tab that resource loading (images, scripts, fonts etc.) are taking upwards of 60 seconds to load which delays script execution and makes it hard to debug and develop on.

I managed to disable failed request tracing as I saw someone recommended this as a way of speeding up IIS Express but it had no impact at all. Has anyone else noticed this?

I am sure it's IIS Express 10 because I've just uninstalled it and re-installed version 8 and the problem has immediately gone away. It's not a problem for us continuing to use version 8 for now but I'd like to understand what has happened to version 10 to make it so slow.

Thanks,

Will.

Sitemap.xml is not fetching rewritten URL formats...please help

Viewing all 27852 articles
Browse latest View live




Latest Images