Quantcast
Channel: ASP.NET Administration
Viewing all 589 articles
Browse latest View live

how to change domain name used for Application Initialiation's initializationPage value

$
0
0

To anyone who has used the new Application Initialization with IIS 7.5, have you ever found it to call a domain name other than localhost, when it calls the page listed in the initializationPage value? Even when it's configured for a site other than the"default web site"?

For instance, I have a site named xyz, and its initializationPage value is "startup.abc" (not the real extension, but it's not relevant and could lead readers to misapprehend an explanation).

Yet, when I watch a monitor for the web application handling those .abc requests, I can see that when the initpage is executed, the URL generated by IIS is nothttp://xyz/startup.abc but rather http://localhost/startup.abc (and indeed, the monitor also confirms that the user-agent of the request is "IIS Application Initialization Warmup".

So what does it take to get things to work correctly? I have not found anyone else reporting it, but I almost wonder if most people who report that "it's not working" are suffering the same problem--but they are confused into thinking it's not calling their intended page because perhaps they have no monitor that can confirm the actual page executed.

And for what it's worth, the requests are NOT logged in the IIS logs. That doesn't surprise me as much, since resources on the feature do say that IIS throws away the page output (of the page called as the initializationPage).

But if anyone has any thoughts on what could help me solve this (or can confirm if they see other than localhost called for their background init page) I'd appreciate hearing from you.


IIS7 32bit application does not fire error pages, only empty page

$
0
0

Hello, 

I'm configuring IIS7.5 on a new 64bit server to handle a older website that uses few 32bit components and a MS Access database.

I've set successfully the application pool to support the 32bit - so that Jet4.0 and the old components are working correctly.

However, IIS is working in a odd way: when the application pool is enabled with the 32bit flag, and an error occurs (I tried to induce a division by zero error, therefore a 500 error, and a 404 not found), it doesn't show any error page, but only a totally empty, blank page.  

If the 500 error happens, let's say, in the middle of the script execution, the scripts shows its output until the error occurs and then silently stops. The website is configured to use the default IIS error pages, so there is no custom setup for the error pages.

This strange behaviour does not take place if the application pool 32bit is disabled. In this case, everything works normally. 

I have made some searchs on google and I've seen that this problem was experienced by other persons but I could not find any solution yet.

Any clue? 

IIS Application Restarts unexpectedly

$
0
0

In our production environment, we have setup a WebFarm of 14 web servers.
We have noticed a very frequent restart of IIS web application (average 80 times a day for various servers). This is observed by installing the AppDynamics on 5 out of 14 servers.

The event viewer has no specific information other than the unexpected event of restarting of the server. The details of the event viewer entries can be found below.

Also at the bottom of the event details, we have put the detail settings of the application pool. Hope this will help in finding the solution quicker.

This results in severe performance setback for our customers. Please advise the next step in troubleshooting the issue further.

 

Application Log Details

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          10-May-13 10:22:13 AM
Event ID:      1305
Task Category: Web Event
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      XXXXXXXXXXXXXXXXXXX
Description:
Event code: 1001
Event message: Application is starting.
Event time: 10/05/2013 05:52:13
Event time (UTC): 10/05/2013 04:52:13
Event ID: 62c2a98a73d2449e887e7f56b642e0ea
Event sequence: 1
Event occurrence: 1
Event detail code: 0 
 
Process information:
    Process ID: 2972
    Process name: w3wp.exe
    Account name:XXXXXXXXXXXXXXX
 
Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="16384">1305</EventID>
    <Level>4</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-05-10T04:52:13.000000000Z" />
    <EventRecordID>1484426</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXXXXXXXXXXXXXXXXX</Computer>
    <Security />
  </System>
  <EventData>
    <Data>1001</Data>
    <Data>Application is starting.</Data>
    <Data>10/05/2013 05:52:13</Data>
    <Data>10/05/2013 04:52:13</Data>
    <Data>62c2a98a73d2449e887e7f56b642e0ea</Data>
    <Data>1</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/7/ROOT-1-130126351137503515</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>D:\Inetpub\XXXXXXXXXXX</Data>
    <Data>XXXXXXXXXXXX</Data>
    <Data>
    </Data>
    <Data>2972</Data>
    <Data>w3wp.exe</Data>
    <Data>XXXXXXXXXXXXXX</Data>
  </EventData>
</Event>

Application Pool Settings

 

# General Setting

"Update General Settings"

$appPool.enable32BitAppOnWin64 = "False"

$appPool.queueLength = 9000

$appPool.autoStart = "True"

 

# CPU

"Update CPU Settings"

$appPool.cpu.limit = 0

$appPool.cpu.action = "NoAction"

$appPool.cpu.resetInterval = [TimeSpan]::FromMinutes(5)

$appPool.cpu.smpAffinitized = "False"

$appPool.cpu.smpProcessorAffinityMask = 4294967295

 

# ProcessModel

"Update Process Model Settings"

$appPool.ProcessModel.idleTimeout = [TimeSpan]::FromSeconds(0)

$appPool.ProcessModel.loadUserProfile = "False"

$appPool.ProcessModel.maxProcesses = 1

$appPool.ProcessModel.pingingEnabled = "True"

$appPool.ProcessModel.pingResponseTime = [TimeSpan]::FromSeconds(600)

$appPool.ProcessModel.pingInterval = [TimeSpan]::FromSeconds(600)

$appPool.ProcessModel.shutdownTimeLimit = [TimeSpan]::FromSeconds(90)

$appPool.ProcessModel.startupTimeLimit = [TimeSpan]::FromSeconds(600)

 

# Process Orphaning

"Update Process Orphaning Settings"

$appPool.failure.orphanWorkerProcess = "False"

 

# Rapid Fail Protection

"Update Rapid Fail Protect Settings"

$appPool.failure.loadBalancerCapabilities = "HttpLevel"

$appPool.failure.rapidFailProtection = "False"

$appPool.failure.rapidFailProtectionInterval = [TimeSpan]::FromMinutes(5)

$appPool.failure.rapidFailProtectionMaxCrashes = 5

 

# Recycling

"Update Recycle Settings"

$appPool.recycling.disallowOverlappingRotation = "False"

$appPool.recycling.disallowRotationOnConfigChange = "False"

$appPool.recycling.logEventOnRecycle = "ConfigChange,IsapiUnhealthy,OnDemand,Schedule"

$appPool.recycling.periodicRestart.privateMemory = 0

$appPool.recycling.periodicRestart.time = [TimeSpan]::FromSeconds(0)

$appPool.recycling.periodicRestart.privateMemory = 0

$appPool.recycling.periodicRestart.memory = 0

Orginal Url are written instead of User Friendly Url in log on IIS 7.5 when using Current.RewritePath.

$
0
0

Hai,

I want to get the User Friendly Url to be written on activity log of iis 7.5.But i always get the orginal url when using Current.RewritePath. It was working fine IIS 6.I tried using Current.Server.TransferRequest as per most of the replies i got from forums but i always get 500 error.I am using Integrated Pipeline mode and i have windows 2008 R2 server.I tried eanabling the 32 bit application true on iis 7.5 but still i get the same 500 error on using Current.Server.TransferRequest.I want to make the Current.Server.TransferRequest work on IIS 7.5 with  Integrated Pipeline mode,but it always give 500 error.Can Any body Guide me the right way..

Thanks in advance

iistracer in Windows Server 2012

$
0
0

I have tried (unsuccessfully) to install the current version of IIS Tracer in a Windows Server 2012.

Does anyone know if this tool (IIS Tracer) is intended to operate inside this operating system and, if so, if there are any "magic" steps to take to accomplish this?  I have successfully installed IIS Tracer years ago on older server operating systems and loved the information it provided.

If IIS Tracer does not run correctly in Windows Server 2012, does any know of any similar tools?

I have found the link to http://technet.microsoft.com/en-us/library/cc732518(v=WS.10).aspx in another forum entry.  Are there any other alternatives?

 

Thanks in advance!

 

Lynn

Missing ASP.NET section in Windows 7 Professional 64 bit

$
0
0

I am at a bit of a loss, and could use some help.  I am a developer, and am setting up a new development environment.  My old and new machine both have Windows 7 Professional, 64 bit.  On my new machine, I have enabled IIS.  I believe it is running IIS 7.5.  After setting up IIS, I open up IIS Manager, and browse to the default website.  Under the default website, there is normally an ASP.NET section.  It is there on my old machine, but my new machine doesn't have it.  The App Pool the website is assigned to is using .NET Framework 2.0.  I have changed it to use version 4.0, and I still don't see the ASP.NET section in IIS Manager.  I am not sure what I am doing wrong.

 I am going to try pasting a screen shot of my IIS Manager.  As you can see, under the areas there is no section for ASP.NET.  On my other machine there is.  My understanding is that there is a 32 bit version and a 64 bit version of IIS Manager.  I have tried running them both, and it doesn't make a difference.  I have tried turning on and off 32 bit support for the app pool, and it doesn't make the ASP.NET section show (my understanding is that this could make a difference in IIS 6).  Does anyone know what I am doing wrong?  Specifically I am trying to get to the ASP.NET section so I can get to the SMTP Email section so I can set up how email is delivered.  I was able to do this on my old machine, but can't on the new one because the whole section is missing.


Configure IIS to handle vCard

$
0
0

Hi,

I have adopted some old C# (ASP.NET) code that generates a string for VCARD and prints it to the page (Response.Write). On an old server (IIS 6) this works fine, it produces a VCARD-file to download. However, on a newer server (IIS 7.5) the same code only produces the VCARD-string as plain text on the page, it doesn't produce the file to download.

Somebody mentioned to me something about having to configure ISAPI filters in IIS to make this work, but I can't seem to figure out what/where/how :)

Can anyone help me out?

Thanks!

IIS 7.0

$
0
0

I just installed IIS 7.0 on my windows 7 Laptop with .NET 4.0

  1. Verify the installation IIS Manager (INETMGR)

Name

Status

.Net Frame

Managed Pipeline

Identity

Apps

DefaultAppPool

Started

v2.0

Integrated

ApplicationPoolIdentity

1

Classic.Net AppPool

Started

v2.0

Classic

ApplicationPoolIdentity

0

I run HTTP://Localhost and it worked fine - see the IIS 7 image

Register .Net 4.0 on Command Line, type the directory  

C:\Windows\Microsoft.NET\Framework\v4.0.30319

Typed \aspnet_regiis.exe –ir and press enter; Now I have ASP v4.0

ASP.NET v4.0

Started

V4.0

Integrated

ApplicationPoolIdentity

0

ASP.NET v4.0 Classic

Started

V4.0

Classic

ApplicationPoolIdentity

0

I run HTTP://Localhost and it still worked fine - see the IIS 7 image

Changed the DefaultAppPool to .Net Framework v4.0.30319

I run HTTP://Localhostand I got "HTTP Error 503. The service is unavailable."

What am I missing here, please help me fix this issue, I have been working on this for 2 weeks and cannot find a solution on the Web, just step by step instruction to enable to run v4.0 on my local machine.

 I cannot run my application on v2.0 because it is in .Net 4.0

 


MVC Project Not Working Without Debugging

$
0
0

Hi,

I have developed one Asp MVC application that is running on Azure.

First it was working fine.

But now i am facing some error.

I have login page. In that when i debug and run the project , my app is working fine.

But when i do not debug (means i tried to simply run the app without any breakpoint / debug), then my app is not working.

Please help me .

Thanks In Advance.

Prashant V Bhojani

ASP.NET not showing in windows features list

$
0
0

I am trying to setup IIS and ASP.NET on my windows 7 home basic system.
I'v already installed asp.net framework from the 'Web Platform Installer'.

When I go to Control Panel -> Programs -> Turn Wdinwos features on or off, it shows the list.
But in this list, under 'Internet Information Services' -> 'World Wide Web Services' -> 'Application Development Features',
the only option show is '.NET Extensibility'. There are no other options.

Please help.

Website is working fine after iis is restarted

$
0
0

I have deployed my asp.net application in IIS.
 
Suddenly my application is not working.
 
It is serving login page after clicking the button it is showing the error.
 
I have checked connection string .everything is fine
 
Then i restarted the IIS then application working fine.

Can anyone tell me what is the issue and help me to rectify this issue...


Maximum request length exceeded

$
0
0

Hi,

I have a virtual application in IIS 8.

The site has a file picker to upload files to the server (in our case the the files are uploaded to NAS drive). If the file to upload is heavy, I receive the following message:

---

Server Error in '/' Application.


Maximum request length exceeded.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.            
Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Maximum request length exceeded.]
   System.Web.HttpRequest.GetEntireRawContent() +12604736
   System.Web.HttpRequest.GetMultipartContent() +221
   System.Web.HttpRequest.FillInFormCollection() +357
   System.Web.HttpRequest.EnsureForm() +110
   System.Web.HttpRequest.get_HasForm() +12607123
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +146
   System.Web.UI.Page.DeterminePostBackMode() +129
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +322
                  


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929            

---

To solve this I have read a lot of posts, and I have made the following changes in the web.config of my site:

Add this entry in <system.web>

<httpRuntimemaxRequestLength="524288"executionTimeout="120000"/>

And another one in <system.webserver>

<security><requestFiltering><requestLimitsmaxAllowedContentLength="524288000"/></requestFiltering></security>

Other tasks, in this case using appcmd.exe

C:\Windows\System32\inetsrv>appcmd set config "Site" -section:requestF iltering -requestLimits.maxAllowedContentLength:524288000

Even with this tasks done, I am still receiving the above error message.

In the EventViewer the ID is: 1309, Event code: 3004, Event message: Post size exceeded allowed limits.

 

Some idea? Thanks!

Issue with Application Pools running under Managed Service Account Identities

$
0
0

Hi,

We recently went through a project where we upgraded the platform of our ASP.NET v2 applications from Windows 2003 IIS 6 to Windows 2008 R2 IIS 7.5 to take advantage of ADFS client authentication.  As part of the upgrade we decided to use the new Windows 2008 R2 Managed Service Accounts (MSA) as it seemed to provide account management advantages. Each of the 20+ applications is configured with a unique application pool and each application pool has been assigned a unique MSA as the identity. The ASPState database and the associated backend SQL 2000 database has been assigned rights to the appropriate Managed Service Account. Identity impersonation is set to false.

In general operation this has been working fine in Dev, Test and Production. However we hit a recent issue where the application pools failed to authenticate to the SQL database causing an outage. Unfortunately this immediately followed some scheduled patching maintenance so this threw me off the trail a little as to the cause. I have now identified that the issue is down to the automatic changing of the MSA password. I have taken the issue offline and can recreate the issue on demand by issuing a Powershell “Reset-ADServiceAccountPassword -Identity msaUniqueID”. Shortly after this has been run I see ASP.NET 2.0.50727.0 1309 warnings with  “Exception message: Failed to login to session state SQL server for user 'Domain\msaUniqueID '.”.  At this point the application fails and the only way to get it working again is to stop and then start the application pool. The application then works fine until the MSA password is changed again manually or automatically after 30 days.

I can’t find anything that suggests that we should not operate the application in this configuration or any obvious fix to the issue. Before we move to not using MSAs is there anything that can be done to resolve this?

Many Thanks

Tony

 

IIS configuration for impersonation in ASP.Net app and CRM Pool

$
0
0

Hi!

I just have set up an environment where I have a CRM, SQL and DC Server, and another VM where I have Visual Studio. 

It's working all fine less the last step, that's comunicate the asp.net app that I have in the VS Virtual Machine with the CRM Server, I'm getting this error 'Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.'

I think is missing any IIS configuration, but I can't find anything, I was checking all about ASP.Net authentication and seems correct.

I'm using this configuration in web.config:

<authentication mode="Windows"/><globalization culture="en-IE"/><identity impersonate="true" userName="DOMAIN\\user-name" password="pass"/>

Anyone can have an idea about where the problem could be? Thanks!

IE asking to download .aspx files IE8 - IIS7.5

$
0
0

Hey all,

I'm a long time IIS6 user but pretty new to IIS7.5. I've just gone through a process of upgrading our .Net 1.1 site to 4.0. The site works fine on our development environment (Win XP SP3, IIS6), however I'm having some issues on our production server (Windows Server 2008 R2 Standard SP1, IIS7.5).

Using IE10 on the server I can browse the site fine. On the client if I use Chrome, Firefox, Opera, Safari the site also works fine, however using IE8 the browser asks the user to save the .aspx file. I've tried accessing on a client with IE10 (standard and compatibility mode) and it's rendering fine.

I'm not seeing any Application or Web Server (IIS) errors in the Event Viewer.

Initially I thought it might be that the server wasn't processing the aspx calls, however if all the other client browsers are behaving as expected, then the server is processing the asp.net OK - it has to be something else.

I've trauled through this forum and Google to no avail. This is what I've attempted:

What other avenues should I follow? Could this be more of an http-accept issue for older versions of IE and the way they handle .xhtml? If so, why can I see the site working on a client pointing to the development environment (IIS6).

I'd appreciate any assistance you can provide. if there are any logs that might assist, I can post them. I don't mind researching this more myself, but I'm at a loss at where else to look.

Thanks in advance.


MUMBAI//Famel//""FockiG//CALL//GIRLs//09167673311@@MUMBAI//escorts

$
0
0


mumbai hot call girls   09167673311 TASHU
mumbai call girls mobile  09167673311 TASHU
hot mumbai call girls   09167673311 TASHU
mumbai call girls mobile no   09167673311 TASHU
call girls mobile number in mumbai   09167673311 TASHU
where to find call girls in mumbai   09167673311 TASHU
mumbai call girls hot   09167673311 TASHU
mumbai call girls phone numbers   09167673311 TASHU
phone number of call girls in  09167673311 TASHU
mumbai independent call girls   09167673311 TASHU
call girls of mumbai 09167673311 TASHU
mumbai call girls image 09167673311 TASHU
Andheri Call Girls In Mumbai  Call Me  >Ms Tashu+91;9167673311

Mumbai~~cALL~GiRLSAnDHERI//ESCORTS??cALL//GIRLS>09167673311@@

$
0
0


Goregaon/Dadar Call Girls In Mumbai  09167673311 TASHU
Goregaon/Dadar Escort  09167673311 TASHU
Santa Cruz Call girls In Mumbai 09167673311 TASHU
Andheri Call Girls In Mumbai  09167673311 TASHU
Goregaon call girls In Mumbai  09167673311 TASHU
Churchget Call Girl Mumbai  09167609167673311 TASHU
Goregaon call Girls In Mumbai 09167673311 TASHU
Lower parel Call girls Mumbai  :- 09167673311 TASHU
Mumbai Call Girls / Model House Wife   09167673311 TASHU
VASHI CALL GIRLS Navi Mumbai   09167673311 TASHU
Navi Mumbai Hot Call Girl  09167673311 TASHUsharma
Borivali / Andheri Call Girl   09167673311 TASHU
Mira Bhayandar Call Girls Online   09167673311 TASHU
Call girls in mumbai thane   09167673311 TASHU

Rizvi College Of Architechure??mUMBAI//cALL//GIRLs//09167673311@@TASHU

$
0
0


Goregaon call girls In Mumbai  09167673311 TASHU
Churchget Call Girl Mumbai  09167609167673311 TASHU
Goregaon call Girls In Mumbai 09167673311 TASHU
Lower parel Call girls Mumbai  :- 09167673311 TASHU
Mumbai Call Girls / Model House Wife   09167673311 TASHU
VASHI CALL GIRLS Navi Mumbai   09167673311 TASHU
mumbai hot call girls   09167673311 TASHU
mumbai call girls mobile  09167673311 TASHU
hot mumbai call girls   09167673311 TASHU
mumbai call girls mobile no   09167673311 TASHU
call girls mobile number in mumbai   09167673311 TASHU
where to find call girls in mumbai   09167673311 TASHU
mumbai call girls hot   09167673311 TASHU
mumbai call girls phone numbers   09167673311 TASHU
phone number of call girls in  09167673311 TASHU

Mumbai University Address/Map##cALL//GIrlS>>09167673311@@TASHU

$
0
0


mumbai call girls hot   09167673311 TASHU
mumbai call girls phone numbers   09167673311 TASHU
phone number of call girls in  09167673311 TASHU
mumbai independent call girls   09167673311 TASHU
call girls of mumbai 09167673311 TASHU
mumbai call girls image 09167673311 TASHU
Andheri Call Girls In Mumbai  Call Me  >Ms Tashu+91;9167673311
Andheri East Call Girl Escorts   09167673311 TASHU
Bandra Call Girls Escorts   09167673311 TASHU
Santacruz Call Girls Escorts 09167673311 TASHU
Vile Parle Call Girls Escorts   09167673311 TASHU
Andheri Call Girls Escorts  09167673311 TASHU
Jogeshwari Call Girls Escorts   09167673311 TASHU
Goregaon Call Girls Escorts   09167673311 TASHU

how to change domain name used for Application Initialiation's initializationPage value

$
0
0

To anyone who has used the new Application Initialization with IIS 7.5, have you ever found it to call a domain name other than localhost, when it calls the page listed in the initializationPage value? Even when it's configured for a site other than the"default web site"?

For instance, I have a site named xyz, and its initializationPage value is "startup.abc" (not the real extension, but it's not relevant and could lead readers to misapprehend an explanation).

Yet, when I watch a monitor for the web application handling those .abc requests, I can see that when the initpage is executed, the URL generated by IIS is nothttp://xyz/startup.abc but rather http://localhost/startup.abc (and indeed, the monitor also confirms that the user-agent of the request is "IIS Application Initialization Warmup".

So what does it take to get things to work correctly? I have not found anyone else reporting it, but I almost wonder if most people who report that "it's not working" are suffering the same problem--but they are confused into thinking it's not calling their intended page because perhaps they have no monitor that can confirm the actual page executed.

And for what it's worth, the requests are NOT logged in the IIS logs. That doesn't surprise me as much, since resources on the feature do say that IIS throws away the page output (of the page called as the initializationPage).

But if anyone has any thoughts on what could help me solve this (or can confirm if they see other than localhost called for their background init page) I'd appreciate hearing from you.

Viewing all 589 articles
Browse latest View live