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

Warning Message ASP.NET 2.0.50727.0

$
0
0

I am Getting below warning message in application log

How to resolve this issue?, Kindly help to solve this.

Error message details:

Event 1309, ASP.NET 2.0.50727.0
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/12/2014 9:34:14 AM
Event time (UTC): 10/12/2014 4:04:14 AM
Event ID: 080d265d9f5f49e0aa0c3680b6a1436c
Event sequence: 4
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/3/ROOT/xxxxx-1-
130575602539648654
Trust level: Full
Application Virtual Path: xxxxx
Application Path: D:\xxxxxx
Machine name: xxxxxxx

Process information:
Process ID: 9556
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of
an object.

Request information:
Request URL: https://xxxx.com/e-
returns/Returns/FormIreturns.aspx
Request path: /xxxx/xxxxx/xxxxx.aspx
User host address: xxxxxx 
User: 34660001555|1
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 6
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at FormIreturns.Page_Init(Object sender,
EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr
fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback
(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.Page.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control
namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)

Thanks in Advance

John Britto M


Java Script Exception

$
0
0

Hi ,I getting below exception if any one why its coming then let me know.

Stack Trace:    at System.Web.HttpRequest.GetEntireRawContent()

   at System.Web.HttpRequest.get_InputStream()

   at System.Web.Script.Services.RestHandler.GetRawParamsFromPostRequest(HttpContext context, JavaScriptSerializer serializer)

   at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)<br/>Service Error: Request timed out.<br/>Status Code: 500<br/>Exception Type: System.Web.HttpException<br/>Timedout: false

ASP.Net interacting with Kinect2.0 Windows Service..

$
0
0

Hello IIS Community.. I am currently working on an ASP.Net MVC Application and have been able to connect to the Kinect 2.0 Sensor for Windows in the application.. The information current frame displayed on the browser every x milliseconds.. This works great in IIS Express in Visual Studio when debugging.. However, when publishing to IIS 8.5 the sensor is not detected.. Would anyone happen to know what configuration may need to be done to achieve this? I have tried the following: giving permissions to the runtime components of Kinect to the DefaultAppPool, impersonating my login, and setting worker process to run as SYSTEM with password="AutoGenerate" in Machine.config, starting the KinectMonitor Service(Windows Service) as my login instead of LocalSystem.. Any advice would be greatly appreciated.. I would like to add that it is possible to write a Windows Application/Service to do this, but I would like to do this in ASP.Net using MVC if at all possible.. Thank you for your time, fellow developers.. ( = Have a blessed day!!!

ASP Site with IIS Shared Content

$
0
0

Hi Folks,

i have a problem migrating an internal Site to a shared content location.

Application information:
    Application domain: /LM/W3SVC/1/ROOT-1-130610393357053347
    Trust level: Full
    Application Virtual Path: /
    Application Path: \\server\programs$\Content\Website.com\
    Machine name: XXXXXX
 
Process information:
    Process ID: 2108
    Process name: w3wp.exe
    Account name: domain\Administrator
 
Exception information:
    Exception type: UriFormatException
    Exception message: Ungültiger URI: Autorität/Host konnte nicht analysiert werden.
   bei System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   bei Gmos.Foundation.CommonResourceController..ctor(String rootLocalPath, String rootRemotePath, Boolean useLocalSource)
   bei Gmos.Foundation.CommonResourceController..ctor(Boolean useLocalSource)
   bei Gmos.Foundation.CommonResourceController..ctor()
   bei Gmos.Foundation.Web.CommonResourceHandler..ctor()
   bei Gmos.ServiceUser.Client.WebGui.SiteMaster.Page_Load(Object sender, EventArgs e)
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Control.LoadRecursive()
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

(sry but its a german server installation)

As long as the content is local, windows and anonymous authentication is enabled. i also checked the permission to the folder about 10 times and also looked at nearly every forum post about this problem...

help :-(

ASP.Net thread concurrency for .net framwork 2.0

$
0
0

Hi all

we are using IIS7 with .net framework 2.0

we are having new application pool in integrated mode. the application hosted in this pool internally uses the managed module for business use case

in fact we are able to add managed module only when application pool is in integrated mode

now here is the issue. The requests to this application are exactly failing after processing 24 requests. we have come to know why this logical number 24.

by default in iis7 integrated mode MaxConcurrentRequestsPerCPU is 12. siince we use dual core it s 24.

have tried to increase this default value to 5000 as mentioned in below article, but that didn't help.

still we are facing the same issue. along with registry change should i do any thing else. why it's not working in this case

http://blogs.msdn.com/b/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx

Thanks& Regards

Sukumar

IIS 7.5 Site, Application & Virtual Directory

$
0
0

I am new to IIS, and I created a site for an MVC Web API application on my IIS 7.5 localhost.  I published the application files to the directory referenced in the site, and the application works fine.  But I have some questions:

1) I have not done anything with "Add Application" or "Add Virtual Directory" - what are they even used for?

2) I read an explanation on IIS.net about sites, applications and virtual directories, but am even more confused because of the following statements:
a) In IIS 7 and above, each site must have an application which is named the root application, or default application.
b) In IIS 7 and above, each application must have a virtual directory, which is named the root virtual directory, and which maps the application to the physical directory that contains the application's content.
c) (this is an overview statement of a and b above) As in IIS 6.0, a site contains all the content, both static and dynamic, that is associated with that site. However, each site must contain at least one application, which is named the root application. And each application (including the root application) must contain at least one virtual directory, which is named the root virtual directory. These objects work together to form the site.

I don't have "at least one application" nor "at least one virtual directory", yet my site works just fine...

I did "Add Virtual Directory", but since my application files are already published in the site directory, all it did was add a reference to the same directory.  I originally thought all sites were supposed to be published under inetpub (where the Default Web Site is), but I don't see any examples online where that is the case.

Can anyone shine a light on this for me?

Cache-Control on Application_Start errors

$
0
0

It appears that on IIS (7.5 and 8.5 tested), IIS will set "Cache-Control: private" on the error pages it generates when an exception is thrown in Application_Start (Global.asax.cs).

This is causing issues for me, as my server application has setup logic in Application_Start that can fail in situations such as an database server error or a bad connection string.

What the response from IIS effectively says is "Hey, sorry. An error happened. The end client may remember this response forever." This means that client applications can retry but may read from the HTTP cache and thus fail indefinitely.

The headers that IIS sets are:

HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 03 Dec 2014 23:22:14 GMT
Content-Length: 5367

My Global.asax.cs file is:

using System;

namespace EmptyAspNetApplication
{
	public class Global : System.Web.HttpApplication
	{
		protected void Application_Start(object sender, EventArgs e)
		{
			throw new InvalidProgramException("I am an invalid program");
		}
	}
}

Is there any way to disable or modify the caching headers on IIS's inbuilt error pages?

IIS App Pool cannot recycle when there is an open ASP.NET 4.5 Websocket

$
0
0

I have run into an issue which can be replicated in the following way (you need IIS8 so must be on Windows 8+ or Windows Server 2012 R2+):

Create a new website in IIS Manager, say TestWs on port 8881, pointing to a new folder, say C:\temp\testws, and add the following Web.config file in there

<?xml version="1.0"?><configuration><system.web><compilation targetFramework="4.5"/><httpRuntime targetFramework="4.5"/></system.web></configuration>

Now add the following WsHandler.ashx file in the same folder

<%@WebHandlerLanguage="C#"Class="WsHandler" %>

using System;
using System.Threading;
using System.Web;

public class WsHandler : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {
        context.AcceptWebSocketRequest(async webSocketContext =>
        {
            while (true)
            {
                await webSocketContext.WebSocket.ReceiveAsync(new ArraySegment<byte>(new byte[1024]), CancellationToken.None);
            }
        });
    }

    public bool IsReusable { get { return true; } }
}

Then create a websocket from within the developer toolbar in your browser like so

var ws =newWebSocket("ws://localhost:8881/wshandler.ashx");
ws.onclose =function(){ console.log('closed');};

In task manager you will see there is a w3wp.exe process for this application, if you kill it the client get the onclose event raised and the closed text will be printed.

However if you create a websocket as described above and go to IIS manager and recycle the application pool, the websocket will not be closed, and there will now be two w3wp.exe processes.

Closing the web socket 

ws.close();

 or refreshing the browser will cause the original w3wp.exe process to be shut down.

It seems the presence of the open websocket is causing IIS to be unable to recycle the app pool correctly.

Can anyone figure out what to change in my code or what to change in IIS to get this to work?


Catching and handling "Request entity is too large" error

$
0
0

Hi everybody,

I am new to IIS and ASP.NET so please bear with me and move this thread if it is in the wrong forum.

I am running a web server IIS 8.0 and using ASP.NET and C#.  

I have an upload box where the user can upload a file to the server and after a limit of about 50MB, a message appears on a white page:

"The page was not displayed because the request entity is too large."

I'd like to display a more user-friendly page with a notification in red that says "Error trying to upload your file, please contact us for help."  

In my codebehind (.aspx.cs) file when handling the upload button click event, I added:

try
{
    //try to save the file to server
}
catch(Exception ex)
{
    //otherwise, set the asp:Label tag text to display error
}


However, the code in the `catch` statement is not being run.  My guess is that the error may lie with IIS and can't be caught with that statement of code.  Is there any way to intercept that error and display a friendlier error page instead?  I already know about "uploadReadAheadSize" and it is at the limit that I want.  I just need to know how to handle times when the user uploads something bigger and instead of blowing up, the server can graciously handle it.

Thank you for your help.

GETTING 500 ERROR .NET 4.5.1 BUT NOT .NET 4.0

$
0
0

Okay I created a simple website in Visual Studio 2013 using .net 4.5.1 as the framework.

My web server is Windows Server 2008 R2 with IIS 7.5 and .net framework 4.5.1 installed.

My problem is that the website I created in VS2013 is returning a 500 error. To test that permissions, etc are correct I uploaded a website with .net 4.0 as the framework and it works fine (both websites are the same just different .net frameworks). Anyone have any suggestions would be helpful.

Edit: So I rebuilt the site in VS2013 with the .net framework of 4.5.1 instead of 4.5 and all is well.

How silly am I :)

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?

Enable remote access to ASP.NET 4.0 on Windows Server 2012

$
0
0

Hi there.

I have an application that tries to access a web.config file for a site that is hosted on a diffrent server but it wont work.
The server that is hosting the site is a windows server 2012 with IIS 8 and asp.net 4.0. The application that tries to read the web.config is using the methodSystem.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/", "sitename", string.Empty, "remoteserver", "user", "password"); and is also running on a Windows server 2012 machine. The application is running on framework 4.0 and the error i get is:
"Unable to access the configuration system on the remote server. Make sure that the remote server allows remote configuration."

I have tried to run aspnet_regiis -config+ on framework 4.0 but get this error:

"Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
This option is not supported on this version of the operating system."

If i build the application on asp.net framework 2.0 it works as excpected but not in 4.0 or 4.5.

So my question is:
How do i enable remote configuration on a windows server 2012 for framework4.0 and above?

Thanks in advance!

Regards Marcus



Authorization (401.3) Error - ASP.NET 3.5 IIS 8.1 Using Network Service Identity

$
0
0

I migrated an ASP.NET 3.5 application from a Windows XP / IIS 5.1 PC to a Windows 8.1 IIS 8.5 PC.

Created a new application pool with Process Model Identity Network Service.
On launching the app get the following error: HTTP Error 401.3 - Unauthorized. You do not have permission to view
this directory or page because of the access control list (ACL) configuration or encryption settings for this
resource on the Web server.

Process monitor shows the W3WP.exe process is using the Network Service user account to access the application 
folder, and it does have read permissions to that folder and all its contents.

After several hours of troubleshooting I was able to resolve the issue by giving the userIUSR read permission to the application folder, but do not understand why it was required.

Any insight into why the IUSR account was required would be appreciated. Although I have resolved the issue I am uncomfortable not understanding the logic.

503 for Application Initialization

$
0
0

hello,

we use Application Initialization and it works great.

however, it would be really nice if status code would have been 503 (instead of 200).

it is easier for load balancer to see "ok. it is 503 here, go to next IIS"

currently we use IIS URL Rewrite for status manipulation (based on APP_WARMING_UP), but we consider such manipulation as overkill.

asp.net LDAP query NOT Running as Logged on User with Impersonation and Windows Auth

$
0
0

Hi,

I'm really hoping that someone can help me with this as it's driving me crazy. I have a .net 4.5 "asp.net Web Application" which uses Windows Authentication and Impersonation and allows search for a computers extended attributes in an LDAP query when specifying the computer name.

It works fine in IIS Express/debug but not when loaded into IIS 7.5 on Sever 2008 R2. I do not see an error but the attribute I require is not returned from the LDAP query. If I grant the servers SYSTEM account (servername$) full control of the Computer object in active directory it works so I know it is because the LDAP query is using this account and not the windows identity as (I believe) it should.

I have also proven this outside of ISS by running the same query using DSQuery on a command line impersonating the server's local system account using PSEXEC and the results are the same.

The web.config has...

<identity impersonate="true" />
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
<allow users="*" />
</authorization>

...and the application pool is set to...

.net Framework: v4.0
Managed Pipleine: Classic
Identity: ApplicationPoolIdentity

I have also added some code the the page to retrieve the running user context information from lots of properties and the following all return the logged on user identity (Domain\Username)...

Context.User.Identity.Name
System.Security.Principal.WindowsIdentity.GetCurrent().Name
System.Threading.Thread.CurrentPrincipal.Identity.Name
Page.User.Identity.Name
System.Web.HttpContext.Current.User.Identity.Name

I'd really appreciate any help or advice anyone can give. I just can't seem to get the impersonation running all the way through the app.

Thanks in advance,

Shaun


Need help getting migrated ASP pages to run under IIS 8.5

$
0
0

To start off, I know next to nothing about modern web hosts.  I can build basic and effective pages, and got along with IIS6 pretty well.

But moving to IIS 8.5 has been like going from a Ford Fiesta to a Bugatti.  So I need some help.  We've got two ASP intranet pages that both exhibit the same behavior.  I've pasted in the web.config file below minus our company's particulars.  The error I get is:

"There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined"

I've seen a lot of comments around about removing these tags, but I don't know enough to know which are necessary and which are superfluous.  I'd appreciate any suggestions you may have on how to fix this, and any environment settings I may need to make in IIS.

<?xml version="1.0"?><configuration><configSections><sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/><section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections><appSettings><add key="AuthenticationDomain" value="xxx" /><add key="dbConnection" value="db/xxxxx_PDF_Distrib.mdb||" /><add key="DocumentPath" value="D:\webs\techinfo\documents" /><add key="EmailDomain" value="pmcsg.com" /><add key="SiteTitle" value="xxxxxxxxxx " /><add key="SMTPServer" value="xxxxxx.com" /></appSettings><location path="admin"><system.web><authorization><allow roles="Administrator"/><deny users="*"/></authorization></system.web></location><system.web><!--  DYNAMIC DEBUG COMPILATION
          Set compilation debug="true" to insert debugging symbols (.pdb information)
          into the compiled page. Because this creates a larger file that executes
          more slowly, you should set this value to true only when debugging and to
          false at all other times. For more information, refer to the documentation about
          debugging ASP.NET files.
    --><compilation defaultLanguage="vb" debug="true" strict="true"><assemblies><add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
          Add <error> tags for each of the errors you want to handle.
    --><customErrors mode="Off"/><!--  AUTHENTICATION 
          This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None"
    --><authentication mode="Windows"><!--forms loginUrl="logon.aspx" name="PDF_Distrib" / --></authentication><!--  AUTHORIZATION 
          This section sets the authorization policies of the application. You can allow or deny access
          to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
          (unauthenticated) users.
    --><identity impersonate="false"/><authorization><deny users="?"/><!-- Allow all users --><!--  <allow     users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/><deny      users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
            --></authorization><!--  APPLICATION-LEVEL TRACE LOGGING
          Application-level tracing enables trace log output for every page within an application. 
          Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
          trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
          application trace log by browsing the "trace.axd" page from your web application
          root. 
    --><trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/><!--  SESSION STATE SETTINGS
          By default ASP.NET uses cookies to identify which requests belong to a particular session. 
          If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
          To disable cookies, set sessionState cookieless="true".
    --><sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20"/><!--  GLOBALIZATION
          This section sets the globalization settings of the application. 
    --><globalization requestEncoding="utf-8" responseEncoding="utf-8"/><xhtmlConformance mode="Legacy"/><pages theme="PMCSG"><namespaces><add namespace="Microsoft.VisualBasic"/><add namespace="System.Data"/></namespaces><controls><add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages><httpHandlers><remove verb="*" path="*.asmx"/><add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers><httpModules><add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules></system.web><system.net><mailSettings><smtp><network password="matrix1c" userName="cmaster383"/></smtp></mailSettings></system.net><system.codedom><compilers><compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="WarnAsError" value="false"/></compiler><compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/define:Debug=True /define:Trace=True /imports:Microsoft.VisualBasic,System,System.Data,System.Web,System.Web.UI,System.Web.UI.HTMLControls,System.Web.UI.Webcontrols,System.Collections"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="OptionInfer" value="true"/><providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom><system.webServer><validation validateIntegratedModeConfiguration="false"/><modules><remove name="ScriptModule"/><add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules><handlers><remove name="WebServiceHandlerFactory-Integrated"/><remove name="ScriptHandlerFactory"/><remove name="ScriptHandlerFactoryAppServices"/><remove name="ScriptResource"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers></system.webServer><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>

IIS 8.5 SSL Links modified in Response

$
0
0

Problem is: If i place a text on an aspx page that matches the requested host, any link withhttps is automatically changed to http. It seems that anything in the output stream with https and hostname ist automatically changed to http.

default.aspx contains:

<p>https://crm.test.com</p>

If i request this page by http://crm.test.com, the output isautomatically modified to <p>http://crm.test.com</p>.

If i request this page by http://ccc.test.com, the text between <p></p> isnot modified.

If i change the text to <p>http://ccc.test.com</p> isnot modified, if i request this page byhttp://crm.test.com. If i request this page byhttp://ccc.test.com, the text is also changed.

I wanted to create a simple aspx page to redirect http to https. This page gets the url from the request and chages it to https. Then it creates a 301 permanent redirect:

Uri baseUri = HttpContext.Current.ApplicationInstance.Request.Url;

string url = baseUri.ToString().Replace(baseUri.Scheme, Uri.UriSchemeHttps);

But i always get an infinite loop, because the location in response is always http and not https.

I tried to use the rewrite module but same problem here.

What do i need to change to avoid this?

Thanks Martin

Enabling ASP.NET 4.0 in IIS 7.5

$
0
0

I am using Visual Studio 2010 Professional and ASP.NET 4 to create a local IIS web site under IIS 7.5. When I do that, a dialog is displayed with the following error message: “ASP.NET 4.0 Web extension is not enabled on the Web server.” Although the dialog gives me the option of enabling ASP.NET 4.0 on the server, I would prefer to know what it’s doing to enable it. Can someone tell me how to enable it manually?

Windows 8 update, IIS 8.5 sessions being lost

$
0
0

Since a windows 8.1 update last week, my local IIS 8.5 does not retain its sessions.

I know I can go in and change it to different session state management, I have done this as a workaround and am keeping session in the query string (Use URI Setting). The issue is, I shouldn't have to and haven't had to for the past year until that update. I would like to keep it at "in Process" and "Use Cookies".

Has anyone experienced the same issue?

Thanks

HTTP Error 400 : The request verb is invalid in IIS 8.5

$
0
0

I have hosted ASP NET 4.5 application in Windows Server 2012 R2 (IIS Version 8.5.9600.16384). But once in a while I am getting an error like Bad Request - Invalid Verb HTTP Error 400. The request verb is invalid while going from one page to another. There is no special sequence or specific page where I am getting this error.

httperr log file shows me an error like 

2015-01-21 04:48:18 MyIP 55452 ServerIP 80 - - - 400 - Verb -
2015-01-21 04:48:20 MYIP 55454 SerevrIP 80 - - - 400 - Verb -

I checked this post http://support.microsoft.com/kb/828726 but here it is applicable for Microsoft Internet Information Services (IIS) 6.0. Can I do this hotfix for iis 8.5 as well. I have searched about this issue over the net but could not get substantial information. So, can anyone help me resolve this issue.

EDIT : Using Fiddler I got the Raw Data of the request as

POST http://example.com/Project.aspx?prj=5566 HTTP/1.1
Host: example.com
Connection: keep-alive
Content-Length: 30634
Cache-Control: max-age=0
Authorization: Negotiate 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://example.com/Project.aspx?prj=5566
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: ASP.NET_SessionId=4oymd5odmcaluiuzc24tbx22; _gat=1; _ga=GA1.2.1888408676.1418017144



Any help would be appreciated.

Viewing all 589 articles
Browse latest View live


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