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

ASP.NET: Failed to execute request because the App-Domain could not be created. Error: 0x80004003 Invalid pointer

$
0
0

We have an ASP.NET Web Form Application written in .NET 3.5 framework. This application has been evolved for over 10 years now and is a mature application. It has been implemented across a number of different clients.

Recently we have had an issue with the application for one of our clients. The application has been live for over a year on the client's infrastructure before seeing this error. This error only started showing itself over the past month.

The error we are seeing is: 500 - Internal Server error. There is a problem with the resource you are looking for, and it cannot be displayed. Server Application Unavailable. The web application you are attempting to access on the web server is currently unavailable...

And from the event log: "Failed to execute request because the App-Domain could not be created. Error: 0x80004003 Invalid pointer"

Recycling the App pool fixes the issue (i.e. the application starts working without any further issues). This is an intermittent issue and the application will work fine for a about a week or so then we see the error again. Recycling the App Pool fixes is the issue again. The App Pool is set to recycle once a day rather than when it is idle, otherwise I think we would see this issue a lot more.

For this client the application is deployed in a Web Farm. We have only ever seen this error on ONE of the two servers on the Web Farm. Both should be identical to each other in terms of the Application deployed. It has happened 4 times now and all have been on the same server. Might be too early to call, but it seems to be server specific. We have never seen this error before across all our implementations to date. Also, it does not show up in Test and Dev for the client experiencing this issue.

I haven’t found much while googling this issue. This post seems similar, but no resolution included:https://m.reddit.com/r/WindowsServer/comments/4ew2p2/iis_0x80004003_error/#

I am fairly certain that the issue relates to starting up the App Pool and is likely (although I can’t be certain) to have occurred before hitting any of our start up code as none of our logging is outputted. We also have 2 other instances of our application (they have different content and databases however) on the same production servers. Both of the other 2 applications do not see this issue (they are running under different App Pools under different service accounts).

Any thoughts or feedback is welcome. The sever is Windows Server 2012 R2 running IIS 8.5.

Thanks!


.NET Framework support on Server 2012 R2

$
0
0

I work for an organization that has several applications on a Windows 2003 server. I don't manage the individual applications
but I do manage the server itself. Since this role is somewhat new to me, I am still learning the technology and the ins/outs of Server 2012 and IIS 8.5. I am getting a good handle on things but my next project is migrating to Server 2012 R2. Many of these applications still use .NET 1.1. During the past several months, I have found that Server 2012 R2 does not support 1.1 at all and everything should be on 3.5 or higher (https://msdn.microsoft.com/en-us/library/hh925570(v=vs.110).aspx). The only problem is I can't find any good source that confirms if Microsoft does not support anything below 3.5 on Server 2012 R2 or if it's just their recommendation.

Right now, my plan is to force developers to re-write their applications to run on 3.5 or higher so when we migrate, they will run with little/no issues. Does this seem like a good idea? I've seen on many forums/sites, where applications could still be run on 2.0. However, it looks like it might be better at 3.5 or higher. Does anybody have any experience with this and/or recommendations? We can't use a Framework version that isn't fully supported by Microsoft. Any advice is appreciated.

The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration

$
0
0

My system: I have installed Windows 7, VS2010 and .NET40 and ASPAJAXExtSetup.msi

I used to work with vs2008 and .NET3.5, after installing VS2010 I upgraded to .NET40. I dont think that is the issue here, but it might be something you need to know :)

My problem seems to arise from something within IIS, but I have no idea.

I'm getting the error below.

<div> Error Summary

HTTP Error 500.19 - Internal Server Error

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

</div> <div> Detailed Error Information <div id="details-left">
ModuleIIS Web Core
NotificationUnknown
HandlerNot yet determined
Error Code0x80070032
Config ErrorThe configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
Config File\\?\C:\inetpub\tickets\web.config
</div> <div id="details-right">
Requested URLhttp://www.tickets.com:80/
Physical Path
Logon MethodNot yet determined
Logon UserNot yet determined
</div> </div> <div> Config Source
45:  </connectionStrings>   46:  <system.web.extensions>
   47:  <scripting>
</div>

My web.config:


<?xml version="1.0"?>
<configuration>
   <connectionStrings>        
    </connectionStrings>
   <system.web.extensions>
        <scripting>
           <webServices>
               <!--http://weblogs.asp.net/andrewfrederick/archive/2008/02/18/a-client-side-ajax-login-for-asp-net.aspx-->
               <authenticationService enabled="true" requireSSL="false"/>
            </webServices>
       </scripting>
    </system.web.extensions>
   <system.web>
        <httpHandlers>
           <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
       </httpHandlers>
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
           <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
               <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
               <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
               <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
       <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <namespaces>
               <clear/>
                <add namespace="System"/>
                <add namespace="System.Collections"/>
                <add namespace="System.Collections.Specialized"/>
               <add namespace="System.Configuration"/>
               <add namespace="System.Text"/>
                <add namespace="System.Text.RegularExpressions"/>
               <add namespace="System.Web"/>
                <add namespace="System.Web.Caching"/>
                <add namespace="System.Web.SessionState"/>
                <add namespace="System.Web.Security"/>
                <add namespace="System.Web.Profile"/>
                <add namespace="System.Web.UI"/>
                <add namespace="System.Web.UI.WebControls"/>
                <add namespace="System.Web.UI.WebControls.WebParts"/>
               <add namespace="System.Web.UI.HtmlControls"/>
           </namespaces>
            <controls>
               <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
           </controls>
        </pages>
        <sessionState mode="InProc" timeout="60"/>
        <authentication mode="Forms">
            <forms name=".MyCookie" slidingExpiration="true" timeout="60" cookieless="AutoDetect" loginUrl="/login/" protection="All" defaultUrl="/">
               <credentials passwordFormat="SHA1"/>
           </forms>
        </authentication>
       <customErrors mode="Off" defaultRedirect="/contact.aspx">
           <error statusCode="404" redirect="/contact.aspx"/>
       </customErrors>
        <roleManager domain="192.168.0.103" enabled="true" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="60" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="AccessRoleProvider" createPersistentCookie="false" maxCachedResults="25">
           <providers>
                <clear/>
               <add name="AccessRoleProvider" connectionStringName="conn1" applicationName="/tickets" type="Samples.AccessProviders.AccessRoleProvider"/>
           </providers>
        </roleManager>
       <membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="30">
            <providers>
               <clear/>
                <add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider" connectionStringName="conn1" requiresQuestionAndAnswer="false" applicationName="/tickets" minRequiredPasswordLength="6" enablePasswordRetrieval="false" enablePasswordReset="true" requiresUniqueEmail="true" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed"/>
            </providers>
       </membership>
    </system.web>

   <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
       </modules>
        <handlers>
            <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
       <rewrite>
            <rules>
               <rule name="ordermanagement">
                    <match url="^eventmanager/ordermanagement/([0-9]+)"/>
                   <action type="Rewrite" url="ordermanagement.aspx?eventid={R:1}"/>
               </rule>
            </rules>
       </rewrite>
    </system.webServer>
</configuration>

 

I then checked out this page: http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx

And now Im trying this:
%windir%\system32\inetsrv\Appcmd migrate config"c:\inetpub\tickets"

But I get the error:
ERROR ( message:Cannot find APP object with identifier "c:\inetpub\tickets"". )
I also tried:
%windir%\system32\inetsrv\Appcmd migrate config"tickets"

But still no luck..
What am I doing wrong?

Session is getting kicked before Session time-out.

$
0
0

Hi,

We have a scenario in my asp.net application, where my website auto-saves the form every 5 minutes through JS. Now, my testing has pointed-out an issue where when the application is left idle for about 10-12 hours, with the form open, and they click on save, some weird issue happens and it seems after debugging that the session is kicked-out. The session in web.config is set to 1740 mins (29 hours).

App Pool settings in test environment:

Idle time-out -> 1740 mins

Regular time intervals -> 1740 mins

.net framework -> 4.5.2

IIS 7.0

After playing around with these settings, we came to know that the w3wp.exe process is crashing after the idle-time out of say 5 mins and asp.net session in web.config of 3 mins. But if we keep idle time-out of 2 mins, it works fine i.e. the session time-out occurs after 3 mins and application exits the form with a message and refreshes the page. Why is it that the idle time-out is crashing the worker process before 1740 mins it seems even though the session time-out is also the same.

I read somewhere that when idle time-out is kept 0, this problem would go. Also, what is the role of Regular time intervals in App Pool settings. Any help is appreciated.

Read IIS site name/ID during ASP.NET application_start event

$
0
0

This applies to IIS7+ in Integrated mode.

Is it possible for ASP.Net applications to read the IIS website name and/or ID value during theapplication_start event?  Please note I am not looking for domain/URL data, just the IIS website data.  At a push, the IIS application pool name would suffice instead.

I have the same web application duplicated within IIS, and each needs to read in its own configuration data from an external file duringapplication_start.  I have tried the following approaches below, but none actually work within application_start because theRequest object isn't available at that stage (I know why, having researched this):

protected void Application_Start(object sender, EventArgs e)
{
    string siteName = string.Empty;
// All of the approaches below work perfectly outside of Application_Start,
// but fail here with "Response is not available in this context."
// siteName = Server.MapPath("/"); // siteName = Server.MapPath("~"); // siteName = HttpRuntime.AppDomainAppPath; // siteName = HttpRuntime.AppDomainAppVirtualPath; // siteName = AppDomain.CurrentDomain.BaseDirectory; // siteName = HostingEnvironment.MapPath("/"); // siteName = HostingEnvironment.MapPath("~"); // siteName = HttpRuntime.AppDomainAppPath;
ClassLibrary1.Settings.LoadCommonSettings(siteName); }

I assume there must be a way to retrieve this data, as by the very nature that IIS is running the site, IIS "knows" this information.

I can see that Microsoft.Web.Administration offers some logic for reading this type of data, but I can't locate thecurrent site when iterating through...

var sm = new ServerManager();
foreach(Site s in sm.Sites)
{
	Trace.Warn(s.Name);
	Trace.Warn(s.Id.ToString());
}

...Or perhaps I'm looking in the wrong place?

SERVER_PROTOCOL on IIS 10 not returning HTTP/2.0

$
0
0

IIS 10 does not correctly set the server protocol when an HTTP/2.0 request is received.

Using ASP.NET and HttpContext.Request.ServerVariables["SERVER_PROTOCOL"] returns "HTTP/1.1."

This is annoying when dealing with the limited number of differences with 2.0 vs 1.1. i.e: Most things with HTTP/2.0 are similar except that the status description is stripped and never sent due to the HTTP/2.0 spec.

When will this be updated/fixed?

ASP.NET application initialization is failing on Server 2016/IIS 10

$
0
0

I have no idea if this is the correct place to post this, but we're trying to run our application on Server 2016 and all of our app pools are failing to start.  This is the error found in the event log:

An error occurred while trying to start an integrated application instance.

Exception: System.InvalidCastException

Message: Specified cast is not valid.

StackTrace: at System.Web.Configuration.ServerConfig.get_UseMetabase()
at System.Web.Configuration.ServerConfig.GetInstance()
at System.Web.Configuration.ServerConfig.GetDefaultDomainInstance(String version)
at System.Web.Hosting.ISAPIApplicationHost..ctor(String appIdOrVirtualPath, String physicalPath, Boolean validatePhysicalPath, IProcessHostSupportFunctions functions, String iisVersion)
at System.Web.Hosting.ProcessHost.CreateAppHost(String appId, String appPath)
at System.Web.Hosting.ProcessHost.StartApplication(String appId, String appPath, Object& runtimeInterface)

I turned on failed request tracing and the logs from that didn't provide any additional data.  I suspect this is some sort of misconfiguration on our part, but I have no idea where to start.  I've already fumbled around adding various IIS and .net roles and features, but nothing has worked so far.

(I also posted this on the asp.net forum.)

ASP.NET WEB API works fine in IIS 7 and IIS7.5, but have a fixed delay in IIS 8.5

$
0
0

i have a simple webapi. It only makes a getasync call to a third party WS(in the code i put a dummy WS that you can try).

[HttpGet]
public async Task<List<string>> DemoStack()
{
    List<string> nros = new List<string>();

    nros.Add("1");
    nros.Add("2");
    nros.Add("3");
    nros.Add("4");
    nros.Add("5");

    List<string> request = new List<string>();
    foreach (string nro in nros)
    {
        using (HttpClient client = new HttpClient())
        {
            client.Timeout = Timeout.InfiniteTimeSpan;

            string path = string.Format("https://jsonplaceholder.typicode.com/posts/{0}", nro);
            string startdate = DateTime.Now.ToString();
            HttpResponseMessage response = await client.GetAsync(path);
            string rta;
            if (response.IsSuccessStatusCode)
            {
                rta = "OK" + response.ReasonPhrase;
            }
            else
            {
                rta = "Error" + response.ReasonPhrase;
            }
            string enddate = DateTime.Now.ToString();
            request.Add(string.Format("GET:{0}, Start:{1}, End:{2}, Rta:{3}", path, startdate, enddate, rta));
        }
    }

    return request;
}

I added the line

client.Timeout = Timeout.InfiniteTimeSpan;

to just avoid timeout in IIS 8.5 with my real WS.

Answer of this webapi from an IIS 7 and 7.5

<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><string>
GET:https://jsonplaceholder.typicode.com/posts/1, Start:24/11/2016 07:17:40 p.m., End:24/11/2016 07:17:40 p.m., Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/2, Start:24/11/2016 07:17:40 p.m., End:24/11/2016 07:17:40 p.m., Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/3, Start:24/11/2016 07:17:40 p.m., End:24/11/2016 07:17:41 p.m., Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/4, Start:24/11/2016 07:17:41 p.m., End:24/11/2016 07:17:41 p.m., Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/5, Start:24/11/2016 07:17:41 p.m., End:24/11/2016 07:17:41 p.m., Rta:OKOK</string></ArrayOfstring>

Answer of this WebApi from an IIS8.5:

<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><string>
GET:https://jsonplaceholder.typicode.com/posts/1, Start:24/11/2016 19:21:34, End:24/11/2016 19:21:35, Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/2, Start:24/11/2016 19:21:35, End:24/11/2016 19:21:50, Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/3, Start:24/11/2016 19:21:50, End:24/11/2016 19:22:05, Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/4, Start:24/11/2016 19:22:05, End:24/11/2016 19:22:20, Rta:OKOK</string><string>
GET:https://jsonplaceholder.typicode.com/posts/5, Start:24/11/2016 19:22:20, End:24/11/2016 19:22:35, Rta:OKOK</string></ArrayOfstring>

As you can see, using this dummy WS the WEBAPI i have a delay of 15 seconds between calls in IIS8.5, but in IIS7.5 is just 1 second.

With my real WS, the delay between calls is 5 minutes and in IIS 7.5 the difference between start and enddate is just 1 second too.

In both scenaries, the first response get answered in 1 second, the problem is with the next request.

Thanks in advance.


asp.net 4 under iis 8.5

$
0
0

Hello

under my application pools I see:

.NET v2.0
.NET 2.0 Classic
.NET v4.5
.NET v4.5 Classic

should I see ASP pools ?

under add and remove windows features its ASP.NET 3.5 and 4.5 are  installed. did they rename them under IIS8?

SignalR web applications Working processes problem in IIS 7.5

$
0
0

Hi everyone.

In my company we have many web applications on a web server. Recently we developed a Chat module to this applications using SignalR. But a strange problem occured on these applications. In time this apps becomes unreachable. Recycleing does not solve. When i try to restart application pools it stops an never starts again. I had create a new app pool and delete the old one. And some time later the problem recurs.

Then i noticed that these application pools have several working processes which have the state of "Closing" and one "Running". What can be the problem? It is about SignalR I know, becouse this problem occurs only the applications which i use SignalR and we have about fifty apps on the server in total and only four of them have signalR on it.

Thanks for help..

IIS 8.5 not compress html content for MVC

$
0
0

because MVC's url like /product/view/1

IIS 8 is ok when use static compression

but IIS 8.5 not think they are static content and not compressed

.NET Framework for Website (NOT Webapplicatoin)

$
0
0

How do I change the .NET Framework for a ASP.NET Web site?

Currently I have all 4.6.1 aka (394271) https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

However, when writing out to a lblFrameworkVersion.Text = Environment.Version.ToString

I get ---  4.0.30319.42000

In the Web.Config I have - 

<compilation debug="true" strict="false" explicit="true" targetFramework="4.6.1">

The reset is 

<httpRuntime requestValidationMode="2.0" />
<compilation debug="true" strict="false" explicit="true" targetFramework="4.6.1">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>

What am I missing?  I am having issue with international email address màckdixon750@gmail.com

And have the code correct, but I have read that 4.6.1 is what supports this.  I am scratching my head.

RDP Apps Deployment dosen´t work - ASP .NET Error

$
0
0

Hello

I got in my Win Server 2012R2 the issue that the RemoteApp deployment won´t work.

Download of the Webfeed.aspx File works!
If I want to add the RemoteApps manually trough the Control Panel i get an Error.

The Event Viewer logs that this is an ASP.NET 4.0.30319.0 issue:

Event sequence: 25856 
Event occurrence: 12927 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/RDWeb/Feed-1-131274743115365810 
    Trust level: Full 
    Application Virtual Path: /RDWeb/Feed 
    Application Path: C:\Windows\Web\RDWeb\Feed\ 
    Machine name: [SERVERNAME] 
 
Process information: 
    Process ID: 6300 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\RDWebAccess 
 
Exception information: 
    Exception type: InvalidCastException 
    Exception message: Unable to cast object of type 'System.Web.Security.FormsIdentity' to type 'System.Security.Principal.WindowsIdentity'.
   at Microsoft.TerminalServices.Publishing.Portal.RWSCPubAndTsAccessor.GetApplications(String strSid, Boolean onlyShowAvailableByDefaultResources, AppInfo[]& apps, AppInfo[]& desktops)
   at Microsoft.TerminalServices.Publishing.Portal.RapWebService.GetRemoteApps(String strUserIdentity, Boolean onlyShowAvailableByDefaultResources)
   at Microsoft.TerminalServices.Publishing.Portal.WebFeed.GetDataForFeed(String userIdentity, String folderName, Dictionary`2& resource_list, Dictionary`2& ts_list, List`1& folders, Boolean& supportsReconnect)
   at Microsoft.TerminalServices.Publishing.Portal.WebFeed.GenerateFeed(String userIdentity, FeedXmlVersion xmlVersion, String folderPath, Boolean writeXmlDecl)
   at TSWF_FeedVdir.TsWebFeed.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information: 
    Request URL: https://[SERVER]:443/rdweb/feed/webfeed.aspx 
    Request path: /rdweb/feed/webfeed.aspx 
    User host address: 192.168.100.1 
    User:  
    Is authenticated: True 
    Authentication Type: Forms 
    Thread account name: IIS APPPOOL\RDWebAccess 
 
Thread information: 
    Thread ID: 268 
    Thread account name: IIS APPPOOL\RDWebAccess 
    Is impersonating: False 
    Stack trace:    at Microsoft.TerminalServices.Publishing.Portal.RWSCPubAndTsAccessor.GetApplications(String strSid, Boolean onlyShowAvailableByDefaultResources, AppInfo[]& apps, AppInfo[]& desktops)
   at Microsoft.TerminalServices.Publishing.Portal.RapWebService.GetRemoteApps(String strUserIdentity, Boolean onlyShowAvailableByDefaultResources)
   at Microsoft.TerminalServices.Publishing.Portal.WebFeed.GetDataForFeed(String userIdentity, String folderName, Dictionary`2& resource_list, Dictionary`2& ts_list, List`1& folders, Boolean& supportsReconnect)
   at Microsoft.TerminalServices.Publishing.Portal.WebFeed.GenerateFeed(String userIdentity, FeedXmlVersion xmlVersion, String folderPath, Boolean writeXmlDecl)
   at TSWF_FeedVdir.TsWebFeed.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Best regards
David Mörzinger

Odd 'The resource cannot be found' error

$
0
0

I have a UAT server and two Prod servers (2012 r2) that are not yet live but all have been working fine.  In the past month or so (not sure quite when) they have starting giving the following error for all managed code app pools:

Server Error in '/ISTAdmin' Application.


The resource cannot be found.

Description:HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
Requested URL: /istadmin

These sites will not even serve basic HTML pages with no app code - if I change the App Pool to no managed code they will. I have upgraded .net to v4.6.1, run diagnostics, uninstalled several patches, even uninstalled and reinstalled IIS but no success!  The site works 100% fine on my dev machine (Windows 10) and build with no issues.

Event viewer and IIS logs don't appear to have anything of any use either!  I'm really stumped - any ideas what the issue could be or what else to try to trouble shoot?

thanks for any assistance

URL Rewrite - HTTPS to HTTP

$
0
0

My site is ASP.Net framework 2.0 on IIS 7.5. It is non-ssl site with all pages working on HTTP.

  • Suddenly it is observed that with latest IE11 update, site is being redirected to HTTPS automatically. On checking it is found that IE v 11.953.x is doing so.
  • When checked in IE v11.576.x, the site is coming up in HTTP and redirection is not happening.

I installed URL Rewrite module on IIS and added following rules, but none of them worked. 

ANY HELP IN THIS REGARD IS HIGHLY APPRECIATED.

Trial 1:

-------------------------------------------------------

<rule name="Redirect to http" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP}" pattern="off" ignoreCase="true" />
<add input="{REQUEST_URI}" pattern="(/\w*[/ | \w]+\.aspx)" />
</conditions>
<action type="Redirect" url="http://{HTTPS_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>

---------------------------

Trial 2 - Throws error - 

The condition's expression "{RequiresSSL:{R:1}}" is not valid.

--------------------------

<rule name="HTTPS to HTTP redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{RequiresSSL:{R:1}}" pattern="(.+)" negate="true" />
<add input="{HTTPS}" pattern="on" ignoreCase="true" />
<add input="{REQUEST_URI}" pattern="^(.+)\.(?!aspx)" negate="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="http://{HTTP_HOST}/{R:1}" />
</rule>

 


New ASP.NET with oracle ODP.NET only connects with admin login

$
0
0

noob on iis and asp.net C# mvc5 with oracle ODP.NET managed driver....worked thru many problems but now site works locally on my newly created iis on spare workstation with iis 6.1 with either user or admin credentials....but connecting to website from remote workstation it will only work as admin login when I am logged into iis workstation as admin and have the site open...perplexed

IIS8 Application Initialization not working after first init

$
0
0

I am trying to get application initialization working on Win Server 2012R2 DC and IIS8, for an ASP.NET WebApi.    I have followed these instructions:

https://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization

Initialization works correctly when the application first starts, but it's not being re-initialized on a periodic basis after the AppPool is recycled.   Then, when a request comes in, the configured application init occurs again but results in the typical warm-up delay.

Below I have included screenshots of my configuration.   As shown, it works the first time the application starts.  I expect to see the log entries on a periodic basis, but that's not happening.   And after some period of time, if I hit the WebApi using a client application, there is a delay in the response (due to warm-up).

Any thoughts or suggestions what might be wrong here?   I appreciate any insight.

Thanks.  

Application Initialization feature is installed:

applicationHost.config:

-------------------------------------------------------------------------------------------------

web.config:

Verification of Application Pool:

WebApi controller action (reads # entries from database table, then writes log):

Startup page is correctly shown the first time application initializes:

And finally, the log entry is written from the WebApi controller action, so I know the first appInit is occurring:

Cannot do async await from a website running in IIS 10

$
0
0

I have a website where we have created a client to consume responses from a web.api from the server side using the below code. If I run that code on my machine I can see that the request goes out successfully and the web.api service logs a success response with the data I am looking for. However, that response never comes back to me and the code just hangs waiting for it. If I run the same code from a small test console app I created it works fine. If I run it from a small empty test web app I created I experience the same issue. There are also three other developers on our team who can all run the same code on their machines from our website successfully. The only difference between my machine and theirs is that I have IIS 10 and Windows 10 and they do not. So we're thinking IIS 10 might be causing an issue for me. I have also discovered that removing the await call and adding a .Result at the end of each of the async calls allows the code to run on my machine. So somehow the await is causing some sort of deadlock on my machine but not on others. I have googled extensively and no one else seems to have had this problem with IIS 10 exactly. So I was hoping someone here might know why IIS 10 would be causing a deadlock on async calls from my machine. Any help will be greatly appreciated.

code to retrieve the response:

T model = default(T);

JsonSerializerSettings serializerSettings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() { IgnoreSerializableAttribute = true } };

using (client)
{
HttpResponseMessage response = await client.GetAsync(path);
if (response.IsSuccessStatusCode)
{
var models = await response.Content.ReadAsStringAsync();
model = JsonConvert.DeserializeObject<T>(models, serializerSettings);
}
else
{
HandleErrors(response);
}
}
return model;

Code to create the Client:

var client = new HttpClient();

client.BaseAddress = new Uri(url);
client.Timeout = new TimeSpan(0, 0, 0, 0, 500 * 1000);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
client.DefaultRequestHeaders.Add("Authorization-Token", "my token}");

iis looking for asp.net file reference in the wrong place!

$
0
0

I have an asp.net web application which has been deployed for *years* with no problem.

At first, it was deployed by hand, then by scripts in CruiseControl

Recently, we changed the deployment tool to Octopus deploy, and it has a bunch of predefined scripts, one set of which is set up to deploy a web application.  But something is different!

In one of the aspx files, a resource is referenced thus:

          ToolsFile="~/TaskEditorToolbarDefault.xml"

Where before, things would just work, with the new deploy scripts, i get an error 

Could not find file 'c:\windows\system32\inetsrv\~\TaskEditorToolbarDefault.xml'.

on the server, as i play with the file reference the error message changes to reflect the change i make in the file.

But, it is always is looking in c:\windows\system32\inetsrv

I've checked the application settings, the application advanced settings, the app pool basic settings, the app pool advanced settings.

I can't see any difference between what is there now and what was there.

Is there anyplace else i have to look?

Why would IIS want to resolve to the inetsrv folder?

thanks in advance

dmc_lat47

Windows Server 2008 r2 Enterprise

framework version 4.0

Problem binding an SSL Cert with SNI enabled to support multiple SSL certs on single IP on IIS 8.5

$
0
0

I'm having a strange issue with IIS8.5 on Windows 2012 Server  trying to select a wildcard SSL cert for site bindings with SNI flag enabled. Earlier I had a single SSL certificate to be selected for all bindings and hence I did not need to set SNI flag for bindings, but to support multiple SSL certs on a single IP, I had to make this change.

I am able to assign the SSL cert to binding if I do not set the SNI flag.

Interestingly, if I go into the IIS Administrator and perform the steps manually to create new bindings using similar configuration, the process works fine but get following error when I try to create the binding through code using C# program and Microsoft.Web.Administration library: 

 [code]A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520) [/code]

What wrong I might be doing here?

Viewing all 589 articles
Browse latest View live


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