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

Unicode '%C3%B4' (ô) chararacter in URL let request fails

$
0
0

Hi,

we are hosting an ASP.NET WebForms application on an IIS 8.5. If we send a request to

https://{base}/map/Detail/Country;C%C3%B4te%20d'Ivoire;1/CI?_=1472228654202

a "403 Forbidden" is returned.

The %C3%B4 (ô) unicode character seems to be the problem. If we remove it from the URL the request works well.

The ASP.NET WebForms routing configuration within the Global.asax file is:

routes.Add( "MyRouteName",
	new Route("map/Detail/{DetailType};{Title};{ShowBackButton}/{Id}",
	new RouteValueDictionary
	{
		{ "DetailType", "Unknown" },
		{ "Title", "Unknown" },
		{ "ShowBackButton", "0" },
		{ "Id", "-1" }
	},
	new RouteValueDictionary
	{
		{ "DetailType", @"Country|City" },
		{ "Title", ".*" },
		{ "ShowBackButton", "0|1" },
		{ "Id", "[A-Z0-9]{2,3}" }
	},
	new RouteHandler("~/MyPage.aspx")
	)
	);

Does anyone have an idea?

Kind regards,
Christian


Proxy server Issue doesn't retrieve the data

$
0
0

I have 3 tier application (reverse Proxy server, application server, Db Server) now when I load huge data directly from the application server it loads up fine and the grid gets populated. Also when I try to run same data from the proxy server it keep loading and it doesn't generate any data or give any errors, any ideas?

Implementing State Server

$
0
0

Hi,

What is the difference between enabling State server from 'session state' module in ASP NET (IIS) and using <sessionState>element  in web config.

Do we need to enable it in both the places to use fully featured state server?

STATE SERVER on 2012 Windows on VEGETATE STATE after working so far

$
0
0

Hello,

Two of our production servers running on windows 2012 Servers with framework 4.5.2 were unexpectedly quitted the service from today morning. We found below warning messages in Event Log. We are using State server for the session handling. All Servers have multiple web sites and many virtual directories beneath each of them. Majorities are configured to state server and all are doing well for quite SOME MONTHS. Restart of State server doesn’t yield any impact; but done multiple times. Restarts of IIS have little impact and served two or three requests before enter VEGETATE STATE.

Restart of entire server makes everything back to normalcy. But can trust it as same has been occurred on one of our server on 14th and 15th and we were forced to switch session to IN PROC.

Session in web.config is configured like this. State Server is in auto start mode. Any help is appreciated.

<sessionState cookieless="UseCookies" mode="StateServer" stateConnectionString="tcpip=loopback:42424" stateNetworkTimeout="60" timeout="120" />

=============================================================================================

Event code: 3009

Event message: Unable to make the session state request to the session state server. Details: last phase='Sending request to the state server', error code=0x80072749, size of outgoing data=0

Event time: 8/31/2016 8:41:11 AM

Event time (UTC): 8/31/2016 8:41:11 AM

Event ID: 01d70364db994082a59213a589666626

Event sequence: 266

Event occurrence: 133

Event detail code: 50016

 Application information:

    Application domain: /LM/W3SVC/6/ROOT/Main-2-131171051828682492

    Trust level: Full

    Application Virtual Path: /<Virtual Directory>

    Application Path: <Application Path>

    Machine name: <Machine Name>

 Process information:

    Process ID: 77988

    Process name: w3wp.exe

    Account name: IIS APPPOOL\<Application Pool Name>

 

Exception information:

    Exception type: HttpException

    Exception message: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.

 Request information:

    Request URL: <Page URL>

    Request path: <Actual Page>

    User host address: <Request IP>

    User: 

    Is authenticated: False

    Authentication Type: 

    Thread account name: IIS APPPOOL\<Application Pool Name>

 Thread information:

    Thread ID: 65

    Thread account name: IIS APPPOOL\<Application Pool Name>

    Is impersonating: False

    Stack trace:

localdb error

$
0
0

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot get a local application data path. Most probably a user profile is not loaded. If LocalDB is executed under IIS, make sure that profile loading is enabled for the current user

I am using visual studio 2012 using the the Default Appdata folder users account and passwords.

Even if i have MSSql server on the machine its using localdb by default.

when i upload the project to the windows 2008 server and IIs I am getting the above error 

Cannot upload files - getting 405 Method Not Allowed

$
0
0

I'm trying to upload images to a website on my local machine but keep getting "The remote server returned an error: (405) Method Not Allowed."

I'm using IIS 7.5. I have created a website site1 containing a folder and given "Full Control" on the folder to users System, Users, IIS_IUSRS, Administrators and with the final user TrustedInstaller having "Special Permissions". I have a very simple console application that uploads a file to the folder using http but I keep getting the 405 error. Any advice would be appreciated.

Thanks

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?

Tr;ying to send email from ASP.Net : 5.7.1 Client was not authenticated

$
0
0

I'm moving an old VB.Net 2.0 website from server 2003 to 2012. It's a support requisition form that gets the user information from AD, let's them pick a problem type and enter a description, and then sends an email to the support center. It took a few days to get the user authentication to work but that's been solved. Now trying to get the email sent is the problem. I'm getting the 5.7.1 error using this code:

    Dim mail As New MailMessage()
    mail.From = New MailAddress(txtEmail.Text)
    mail.Subject = lstRequest.SelectedValue
    mail.Body = "Contact=" & txtEmail.Text & vbCrLf & "Problem Type=" & Problem & vbCrLf & vbCrLf & "Category=" & Category & vbCrLf & vbCrLf & _
      "Status=escalated" & vbCrLf & "Site=" & lstSite.SelectedValue & vbCrLf & vbCrLf & txtProblem.Text & " Room " & txtRoom.Text & vbCrLf & "Name: " & txtFirstName.Text & "  Phone: " & txtPhone.Text
     mail.To.Add("JAXXX@OurDomain.org")
    Dim smtp As New SmtpClient("OurServer.OurDomain.org")
    smtp.UseDefaultCredentials = False
    smtp.Credentials = New System.Net.NetworkCredential("User", "PWord")
    smtp.EnableSsl = True
    Try
      smtp.Send(mail)
    Catch exx As Exception
      'MessageBox.Show("Error: " & exx.Message)
      lblStatus.Text = "Unable to send email: " & exx.Message
    End Try

My IT guy says that the can send an email using the same username and password, so the problem must be in the code. Could be, but it's pretty simple and I don't really see what needs to be changed. Any suggestions greatly appreciated.

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

Viewing all 392 articles
Browse latest View live


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