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

Rewrite rule can't show correctly

$
0
0

Hi,

I'm learning how to use URL rewrite recently. I aimed to redirect http://mysite.com/b->http://mysite/a/b. So I created the following rewrite rule:

<rule name="rewrite rule" enabled="true" stopProcessing="true"><match url="(.*)" /><action type="Redirect" url="a/b" redirectType="Temporary" /><conditions><add input="{REQUEST_URI}" pattern="b" /></conditions>

The problem I got is when I am runing the URL, the rewrite rule didn't work correctly. What's more, after few minutes loading, I got the error message ' page can't be loaded'. I'm wondering how to configure the rewriterule correctly. Any suggestions will be apprciated.


IIS Virtual Labs is Excellent!!!

$
0
0

Hi Team!

Recently I tried Vista & IIS 7.0, it is marvellous in comparision to Win Xp and IIS 6.0 .

Congrats to MS Guys for an Excellent new product(s).

But Only thing I need to Upgrade my Machine in a short span of time.

Cheers.

Sanket Sirotiya
sanket.sirotiya@gmail.com

ASP.NET Core Web API deployed in IIS returning only HTTP Code 404

$
0
0

I have a new Web API developed in ASP.NET Core. This Web API is supposed to be deployed in IIS and will have to work over SSL, so I have the [HttpsRequired] attribute on all my controllers. I struggle to make it work while deployed, so, for now, I relaxed the requirements and commented out those attributes. Doing so, I was able to create two bindings in IIS, one for HTTPS and one for HTTP. Given that my Web API is created in ASP.NET Core, I followed the deployment steps Rick Strahl has in his excellent blog post. I have selected "No Managed Code" for the .NET CLR version. The IIS machine is a 64-bit Windows Server 2012 R2 environment - not sure whether this matters or not. The .NET Core Windows Server Hosting bundle has been installed on the server and I can see the AspNetCoreModule listed in the Modules grid.

If I try to access the Web API (I created a very simple GET method that returns some information regarding the assembly) with Fiddler, I get a 404 error. For now, I run Fiddler on the same machine, so I tried all combinations (localhost, IP address and full machine name in the domain).

If I run the Web API as a stand-alone application, I have it listening to "http://localhost:5000" and I can see it is working when I access it with Fiddler.

No errors are logged in the EventViewer. Does anyone have any suggestion on how to troubleshoot this issue?

TIA, Eddie

Oude International Trade Co., Ltd.

$
0
0

https://www.facebook.com/oude.Intemational.trade/?ref=bookmarks

rule to strip out one query string parameter

$
0
0

Hello all,

A request came down to me to remove one query string value from a request URL. So I have the case where users pull up a URL in several different possible ways:

http://www.example.com/test/url?value1=XXX&value2=YYY&value3=ZZZ

OR

http://www.example.com/test/url?value2=YYY&value1=XXX&value3=ZZZ

OR

http://www.example.com/test/url?value1=XXX&value3=ZZZ&value2=YYY

For all three of these possible options, I want to remove the "value2=YYY" query string parameter, and send the user tohttp://www.example.com/test/url?value1=XXX&value3=ZZZ

Does anyone know how to do this? I was able to create 3 separate rules to match on the possibility of value2=YYY being at different spots in the query string, but I'm drawing a blank on always redirecting the user to the initial URL before the query string, which might not necessarily be the same for each user.

Thanks,

Sheel Shah

Joomla Sites Crashing on IIS

$
0
0

Hi. I'm having problems with a Joomla website (and its staging site) crashing periodically on IIS 6.2 on Win 2012 R2. The site is using a Rocket Theme template and is heavy in jQuery effects on the main page. I'm getting Application Pool errors throughout the day, i.e.

A worker process with process id of '4524' serving application pool '.NET v4.5' was shutdown due to inactivity.  Application Pool timeout configuration was set to 20 minutes.  A new worker process will be started when needed.

The site shuts down completely every once in a while ... I can't tell what caused it from the IIS logs and there is activity in the other pages while the site is down. I'm waiting for the next crash to see if only the front page is not working.

I modified the Aspnet.config file which decreased the number of crashes:

<!--<legacyUnhandledExceptionPolicy enabled="false" />-->
<legacyUnhandledExceptionPolicy enabled="true" />

Can many jQuery plugins cause the Application Pool to fail and freeze the web site? How do I get more information on the process ID's that are failing on the server?

Thanks.

SQL connection error stuck in App Pool

$
0
0

Occasionaly our sql server 2005 won't accept connections for whatever reason (because it's either being restarted, or is too busy doing a backup, etc).    When an ASP.NET application cannot connection to sql server an error occurs.  When the sql server is back online and accepting connections again, the ASP.NET application continues to show the sql connection error.  Stopping and staring the site in IIS as well as touching the web.config to force the app to recycle have no effect.  Recycling the App pool does fix the problem, though.  This happens not too often (every couple of months), but when it does happen it's always the same -the site goes down because of a sql connection issue and never comes back up, and the only way to fix it is to recycle the app pool.  This leads me to think that maybe there is some deep relationship with ADO.NET connection pooling and IIS 6 App pools.  Has anyone else had a similar experience?

IIS ARR changes URL Symbol #

$
0
0

Hi all

We are using IIS ARR in our environment, one of our web server uses the following URL string "http://Domain/rms/#" when it passes through the ARR, the ARR changes the # to a %23 does anyone know what may be causing this issue?

Thanks

Terry


Sudden Dips in IIS Performance

$
0
0

Our IIS server seems to have encountered some problems recently and I'm not sure where to start looking for causes. The problems lie within it's ability to resolve the sites externally, where the response and loading times seem to be extremely slow and often fails. Internally however everything works fine and is blazingly fast. What's strange about this is that up to around a few days ago, everything was working fine with no problems.

In regards to the server setup, it's running IIS on a virtual machine with Windows Server 2007 Standard. This box is connected to a domain controller hosted on another Windows Server 2008 R2 VM, which also contains a DNS Server. The DNS server is being forwarded to our Fortigate 60C Router which handles external relays to our ISP's DNS Servers. All computers in our organisation uses the DNS server on the windows server as part of the domain network.

We also have an external OWA access enabled on our network which is mapped under domain.com/owa. This is hosted on another IIS server on our exchange server. The connection to the OWA dropped around the same time that we started to have the performance dips hence, I'm not sure whether this is related the main issue or a completely different one.

I don't think it'd be an IIS issue since nothing has been changed by anyone, and none of the apps on it are suffering from performance issues internally. I'm more inclined to think that it may be a network/DNS issue, but I'm not sure where to start looking. If it was a DNS issue however, our users would have problems with their internet speed and access which they don't so I find it quite confusing.

Could anyone give me some insight perhaps on where I may start looking and if possible, what's causing this to suddenly happen? Thank-you for reading.

Can't Access Site Publicly

$
0
0

We're configuring a new Test server for our application and we're having issues accessing the site using the URL or IP address.

Our URLs look like...

https://tenant.domainname.com/dev

https://tenant.domainname.com/dev/admin

The 1st URL is the main, public facing customer site, and the 2nd URL is used by the Admin users. The 2nd site is setup as an "application" nested in the 1st "application" in IIS and they are nested the same way on disk.

The odd part is we can access the Admin site publicly, but not the main site. The main site just comes up with a blank page. While I am on the server I can access the main site using localhost without issues.

Both the main site and the Admin site are .NET 4.x applications and share the same AppPool.

Without having access to our servers, does anyone have thoughts on why this is happening?

Thanks,

Chris

add framework 4.5 to IIS 6

$
0
0

I have a VS asp project create using Framework 4.5.

I created a new website on server 2008 using IIS6.

In the application pool i am not seeing 4.5 but seeing 4.

when I try to access the site I am getting page on found.

I downloaded framework 4.5 but i am not seeing it in the application pool in IIS6 just 4.0

and still getting server not found

WinCache cache only lasting 5 seconds

$
0
0

We have php 5.4 running on IIS 7.5 server with WinCache. WinCache appears to be working, but the cache only lasts for about 5 seconds. After that, any objects that are cached appear to be ignored (possibly because they are destroyed) and php runs the non cache code again.  So, it appears that the cache is being dropped after about 5 seconds.

All of the WinCache settings seem fine and are pretty much the default. We aren't getting any errors. Also, i have tried extending the time of the cache in the code but that doesn't work either. ttl max is set to 1200

Has anyone had a similar problem?

Thanks

IIS: Unable to get high throughput

$
0
0

Hello,

I have a IIS app; during load testing of our app we found the throughput to be very low. While trying to fix the problem, we thought of checking IIS performance for a feather weight page; We ran a test - load testing a page that returns some 1000 bytes of static data, with a sleep in the controller to mimic time taken during request processing. What we find is that if the sleep duration is something like 1 second, IIS is unable to serve requests, within 1 second, at loads exceeding something like 10 rps.

Now I read about the Concurrent Requests and how post .Net 4.5, the default value is 5000. So if IIS is handling 5000 concurrent requests, how come it is unable to serve requests at 10 rps, with each request taking 1 second? Maths does not add up.

Notice that static data is returned, data size is small, and all the function doing is to sleep. So none of the machine params like CPU, disk, network etc go over limit. The server hardly blinks. The IIS server does NOT become a bottleneck.

This is the entire controller code

public ActionResult Contact()
{
    Thread.Sleep(1000);
    return View();
}

The view in there returns some static HTML; I created the web app using Visual Studio template; the template returns static HTML.

When I remove the sleep, then I have no problem running the server at high rps. But then the requests complete so fast, that IIS would not even be encountering any high concurrency at even high rps.

The load is generated through a simple C# program, making requests from multiple threads, using functions of. HttpWebRequest

So I was hoping that someone could point me to some setting or something in IIS that would allow IIS to serve this simple page - no processing, 1000 bytes static data, Sleep of 1000 msecs - at rates like 100 rps.

configuring a new IIS web site

$
0
0

Hello.

I am re-writing our intranet site (asp.net). The new server will be Server 2012R2/IIS 8.5. I have installed IIS and all of the modules that I *believe* I need, but I cannot get the default website to work (and I do not mean the out-of-the-box default, I deleted that one and added a new site named 'Portal'). I want that website to use NTLM authentication to authenticate off-site visitors against AD, and I want the page to use HTTPS. I also have a signed certificate for the server. How do I 1)  import the signed certificate, 2) set the site to use SSL and 3) use our AD to authenticate the user?

How to Read Test Connection message Authentication and Authorization messages in to powershell

$
0
0

Usually we can read Authentication and Authorization messages from 'Test Connection' of a web applications->Basic Settings

We would like to read the the messages in to powershell.(particulary if there is an error 'Invalid user credentials') Please help


SMTP server: Mails dumped and left in Drop folder

$
0
0

Hi all,

I have a Windows 2012 server with SMTP configured  and it is running smoothly on port 25. I configure another SMTP server on the same machine with another email address but on port 587. The SMTP is running but mails are dumped in the Drop folder (c:\inetpub/mailroot/Drop) and left there. I have increased the delay time from 12 hours to 18 hours but no changes.

 I need help in resolving this asap, please.

Regards,

Leonard

Web Application on IIS is getting hosed sporadically

$
0
0

I have a Web application hosted on Windows 2012 server IIS, it was working well since last 01 years but recently since last 15 days it is getting disconnected sporadically , The problem seems to be with Application Pool in IIS but not able to identify, there are no logs which can show what went wrong when application pool disconnected to IIS and Web site, each time to establish the connection , we need to recycle the application pool and then it connects, sometimes it needed a restart of IIS as well, in addition, to make it work,

Can anyone please help how to fix this problem ASAP and share where can we check to investigate the logs or additional settings to be corrected ?

Any urgent help is highly appreciated as it is impacting the entire web application.

Thanks,

403 - Forbidden: Access is denied with HTTPs

$
0
0

I have a certificate installed in IIS.
Add the site header HTTPs and the correct IP application on port 443.

But when the https settings check as required, the application displays the error 403.

Does anyone know why?

I am using 2 servers with network load balanced.

Mysterious IIS Application Reset

$
0
0

I'm having a weird problem where my ASP.Net application resets after doing some specific actions on my website. After adding some logging in Application_End(), I see that the shutdown reason is due to "ConfigurationChange". I obtained this from System.Web.Hosting.HostingEnvironment.ShutdownReason. However, I have looked and looked and no config files seem to be changing on my web server. There is no anti-virus running on the server. We are using Windows Server 2012 R2, IIS version  6.2, .NET version 4.5.


Also, yes we do have patch KB3052480 installed. Any help would be very much appreciated. Thanks. 

IIS Virtual Directory Video Host Help

$
0
0

Hey all,

I want to setup a virtual directory to host video content. I want to make it a web server farm with multiple web servers, is this possible?

We have SharePoint, and we need a video host. I can setup an asset library to take embed codes, from my Virtual Directory and everything works great.

I am however unsure how to do this with multiple servers. Does anyone have any documentation on how this would be setup? Or if you can think of a service like IIS Streaming where I can get an embed code, with easy setup, I'm open to suggestions.

Thanks!

Viewing all 27852 articles
Browse latest View live


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