Quantcast
Channel: General
Viewing all 7363 articles
Browse latest View live

IIS 8 "request.inputstream returns an empty string"

$
0
0

I have the following code in the Page_Load event handler of my ASPX webpage that reads a set of XML parameters using VB.NET:

  • Dim MyParameters As String = ""
                Request.InputStream.Position = 0
                Dim MyEncoding As System.Text.Encoding = Request.ContentEncoding
                Dim MyLength As Int64 = Request.ContentLength
                MyParameters = New StreamReader(Request.InputStream, MyEncoding).ReadToEnd()

Which works prefectly on Windows 7 and Windows 2008 R2 server and returns a string containing parameters as expected...

I have just migrated the application onto an Azure Windows 2012 R2 server and this code fails - the MyParameters string contains an empty string (using exactly the same request and data).

Why is IIS 8 emptying the request.inputstream before I can read the data?


URL rewriting clips the HTTP_HOST when the request id from IE 8

$
0
0

We have a sso system when the user logs in the client system he will automatically logged in and redirected to a different site. The system works fine but we observed that the system throws a 404 error when the user tries to log in from IE 8 for the first time. when the user click back button and tries login again it works fine.

After some more digging i noticed a difference between first http header which failed and the http header which passed. the http header which failed has an referrer attribute in the header like below

Accept-Encoding: gzip, deflate
Accept-Language: en-US
Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Cache-Control: no-cache
Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ggmsxtwpgfhsaz2501132jz3
GET https://example.com/home?s=ZXVuPXN0YWZmdXNyMDE7ZXVwPXN0QGZmdXNSMDE7b2ZmaWNlaWQ9O29mZmljZT07Y3VzdD1PSzt0cz03MzUyNjIwMTQ3O3ZlbmRvcj0xO3N1bj1zZWVrZXIwN0BkZW1vLmNvbTs= HTTP/1.1
Host: example.com
Referer: https://deployment.client/mn_loginstatistics_dsp.cfm
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

In our sso service source calling the method Response.RedirectPermanent(accessUrl, true);

accessURL="https://example.com/home?s=ZXVuPXN0YWZmdXNyMDE7ZXVwPXN0QGZmdXNSMDE7b2ZmaWNlaWQ9O29mZmljZT07Y3VzdD1PSzt0cz03MzUyNjIwNjMzO3ZlbmRvcj0xO3N1bj1zZWVrZXIwN0BkZW1vLmNvbTs=";

But in the response the url written is wrong

HTTP/1.1302FoundCache-Control:privateContent-Type: text/html; charset=utf-8Location:/home?s=ZXVuPXN0YWZmdXNyMDE7ZXVwPXN0QGZmdXNSMDE7b2ZmaWNlaWQ9O29mZmljZT07Y3VzdD1PSzt0cz03MzUyNjIwNDIwO3ZlbmRvcj0xO3N1bj1zZWVrZXIwN0BkZW1vLmNvbTs=Server:Microsoft-IIS/7.5
X-AspNet-Version:4.0.30319
X-Powered-By: ASP.NETDate:Mon,27Jan201409:20:36 GMTContent-Length:261<html><head><title>Object moved</title></head><body><h2>Object moved to <a href="/home?s=ZXVuPXN0YWZmdXNyMDE7ZXVwPXN0QGZmdXNSMDE7b2ZmaWNlaWQ9O29mZmljZT07Y3VzdD1PSzt0cz03MzUyNjIwNDIwO3ZlbmRvcj0xO3N1bj1zZWVrZXIwN0BkZW1vLmNvbTs=">here</a>.</h2></body></html>

In URL rewriting in web.config we have module to rewrite to https, Im not sure whether this has any issues. Can some one tell where the issue could be and how to resolve it?

<rewrite><rules><rulename="Redirect to HTTPS"stopProcessing="true"><matchurl="(.*)"/><conditions><addinput="{HTTPS}"pattern="^OFF$"/></conditions><actiontype="Redirect"url="https://{HTTP_HOST}{REQUEST_URI}"redirectType="SeeOther"/></rule></rules></rewrite>

.Net Version Upgrade issue

$
0
0

Hi All,

I am facing one issue.

My Website is on ASP.NET V 1.1

But by mistak somebody opened the solution file it with Visual Studio 2005.

So it is automatically upgraded to version 2. and now website is not working because of it.

Is it possible to downgrade it? or is there any way to restore it back to version 1.1?

Please help me on it.

Thanks and Regards,

Vivek Sodha

 

Connect ASP Classic Request to IIS Request

$
0
0

Dear All, 

I currently got a IIS profiler running on our system which uses the Microsoft.Web.Administration option, this works perfectly. But for better issue tracking I want to know who did the request, this I cannot solve currently, I can match with URL, but if possible I would not want this. 

So what I have now :

foreach (Request request in _currentRequests)
{
  Console.WriteLine(request.ConnectionId);
}

We have on the frontend a ASP Classic webapplication, and basically I see all the requests correctly in the system, but now I want to make a connection from the front-end with the back-end, so I can collect the username for it, but I cannot find a key which comes forwards in the IIS request and the frontend ASP Classic options.

Does anyone has any idea?

FTP 8.5 user groups start/stop FTP service

$
0
0

Hello,

Is it not possible to user groups in FTP Autohorization Rules without the need to start/stop the FTP service, when a new user is added to the group?

BR
René

following ç charset is recognized in IIS 7.0 server

$
0
0

Hi,

following ç charset is recognized in IIS 7.0 server, would any one tell how to fix this issue

hosting problem in iis 7.5 using diffirent port

$
0
0

 I have hosted web site with ipaddres and port number.

Now I want to access it using ip address .

On server it is fine with ipaddress:Port

But on another intranet it is not working .

 

Please help.

 

Maneesh katiyar

RNB Group

Maneesh.katiyar@rnbgroup.net

IIS 8 and its new loading behavior of ISAPI modules on Windows 2012 R2

$
0
0
<div class="body">

OS: Windows 2012 R2 x64 EN
Web server: IIS 8.5.9600.16384 (short IIS)

The IIS allows ISAPI modules to be loaded. If the extension of the module is different from ".dll" the new loading behavior is quite problematic.

Let us assume the name of the module is "module.dll". Let us further assume for compatibility reasons customers do not call "module.dll" but "module.isa". For this to work a mapping will do the translation from the call to the module. In the handler mapping any call to "module.isa" will be mapped to the module "module.dll". In Windows 2008 this mapping works fine.

However with Windows 2012 R2 the call to "module.isa" will not take the mapping 1:1 and load "module.dll". Instead it just takes the module name from the mapping without the extension like "module". Then it adds ".isa" from the call and finally it loads "module.isa". This bizarre behavior forces us to provide two modules to our customers. One with the name "module.dll" and the other with the name "module.isa". The first is necessary to configure the mapping (as the Wizard in IIS only accepts .dll files). The second is necessary to satisfy the load operation.

Please fix the mapping in R2 so that the mapping is executed as intended and exactly the configured module will be loaded.

Thanks for your support.

</div>

IIS 8 and its new restrictions on default documents on Windows 2012 R2

$
0
0

OS: Windows 2012 R2 x64 EN
Web server: IIS 8.5.9600.16384 (short IIS)

The IIS allows the configuration of standard documents. However with R2 specific characters in the name of the standard document are not allowed anymore. As a result the character ? (question mark) can not be used.

For ISAPI modules this new restriction is not helpful. These modules are not just files but their call can be an URL as well. Sometimes our site is under maintenance and this is signaled to our users by changing the ISAPI call from: module.dll to module.dll?maintenance. With R2 this approach is not possible anymore. This just because of come characters that are now considered as being invalid. Please remove this limitation in R2. It is too restrictive and has no benefits.

Thanks for your support.

Problems deploying

$
0
0

Hi,

I had a website on IIS6 and needed to put a version of it on a new IIS8 server. I managed to do this on a local test 2012 server and from there I used MSdeploy to create the server settings and website on a live IIS8 server. This deployment works fine.

Now I need a new version of the website so want to create a new website on the live server. Using MSDeploy I export the current website then create a new site and imported. This all works well except for one part of the application. 

This one part of the application is used to download files from a filestore and I cannot get it to work. It's definately something in the IIS site because I've tested the same files in my original site and they work.

The error I get is a 404.0 saying the file doesn't exist, but it does exist as it works from my original site. 

Detailed Error Information:

Module

IIS Web Core

Notification
MapRequestHandler

Handler
StaticFile

Error Code
0x80070002

Requested URL
http://localhost:81/filestoresecurity/5/jftest.txt?k=cviD2KXCCHIn5jMgPmCircBnsp1q%2fFDcbMURV0sUd7o5%2bH%2bA6nNgNivfCIM0LYluOui3todkSW2anK2EItU6PA%3d%3d

Logon Method

Anonymous

Logon User
Anonymous

The log file shows - 2014-01-21 16:36:15 W3SVC3 ::1 GET /filestoresecurity/5/jftest.txt k=cviD2KXCCHIn5jMgPmCircBnsp1q%2fFDcbMURV0sUd7o5%2bH%2bA6nNgNivfCIM0LYluOui3todkSW2anK2EItU6PA%3d%3d 81 - ::1 Mozilla/5.0+(compatible;+MSIE+10.0;+Windows+NT+6.2;+WOW64;+Trident/6.0) 404 0 2

I've checked that there are the same amount of modules listed for both site and all the handler mappings appear to be the same.

How can I tell which handler mapping the working application is using? Is there a way to compare the differences between the two sites in IIS? Why doesn't the export\import function in MSDeploy produce a carbon copy?

Can anyone help?

Thanks in advance

Log saving trouble

$
0
0

I'm in a situation where graceful shutdowns are not allwoing enough time to upload logs to our storage location. My thought was to have the logs be written directly to an intermediary network share and have a service process those each night.

I am able to successfuly create the network share location and copy/edit files frmo the IIS server to to that new location, but when I set Advanced Logging to point to that mapped drive to create logs, no logs appear. Any help would be greatly appriciated!

Monitoring application pool & alert

$
0
0

Hi everybody.

I'd like to know if it's possible to monitor Application Pool inside the IIS?

Currently I have a critical server that host IIS and one of the application pool inside it is having issue.

While we still troubleshooting the issue, I'd like to know if there's any monitoring tool that can alert me that this particular application pool is having issue (stop, warning etc).

Thank you.

Jquery not working when deployed on iis7

$
0
0

I am using simple Jquery statements just to show a modal popup, here #infomsgbackground works as modal background and #infomsg works as a modal popup, all these codes works fine in visual studio 2010 with ie and in firefox but when i try to deploy it on iis 7 ..this code not working

JQuery

<script type="text/javascript" src="jScripts/jquery-1.4.1.min.js"></script><script type="text/javascript">$(".updatephone").live('click', function () {$("#infomsgbackground").fadeIn("slow");$("#infomsg").fadeIn("slow");
        });$(".close_label").live('click', function () {$("#infomsgbackground").fadeOut("slow");$("#infomsg").fadeOut("slow");
        });</script>

CSS

#infomsgbackground {
    position:fixed;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
    overflow:hidden;
    padding:0;
    margin:0;
    background-color: Black;
    filter: alpha(opacity=80);
    opacity:0.5;
    z-index:99;
    -moz-opacity: 0.8;
    opacity: 0.8;
    min-height: 100%;
    display:none;
}

#infomsg {
    position:fixed;
    top:25%;
    left:25%;
    width: 50%;
    height: 50%;
    z-index: 1001;
    background-color: White;
    text-align:center;
    border: 5px solid #67CFF5;
    font-family: Arial;
    font-size: 10pt;
    vertical-align:middle;
    display:none;
}

The trust relationship between this workstation and the primary domain failed.

$
0
0

HI All,

We configured ASP.net application in IIS 7.5 in windows authentication mode.  Some interval of time desktop user get windows authentication prompt asking frequently. At the time below error as occurred in IIS server (application error).  ( Same domain in India as well as manila).

  • We Made it Re-join for this IIS server after that also it occurred.    
  • Around 30 to 35 applications are running
  • Only two applications are running different app Pool others are running APPlicationPoolIdentity.

The following exception was thrown by the web event provider 'EventLogProvider' in the application '/applicationName' (in an application lifetime a maximum of one exception will be logged per provider instance):

System.SystemException: The trust relationship between this workstation and the primary domain failed.

at System.Security.Principal.SecurityIdentifier.TranslateToNTAccounts(IdentityReferenceCollection sourceSids, Boolean& someFailed)
at System.Security.Principal.SecurityIdentifier.Translate(IdentityReferenceCollection sourceSids, Type targetType, Boolean forceSuccess)
at System.Security.Principal.SecurityIdentifier.Translate(Type targetType)
at System.Security.Principal.WindowsIdentity.GetName()
at System.Security.Principal.WindowsIdentity.get_Name()
at System.Web.Management.EventLogWebEventProvider.AddWebRequestInformationDataFields(ArrayList dataFields, WebRequestInformation reqInfo)
at System.Web.Management.EventLogWebEventProvider.ProcessEvent(WebBaseEvent eventRaised)

Using localhost

$
0
0

I want to upload my web page using local host but I don't know what port to us. For example when I was in school we uploaded our web files to the school's server and I think the port was something like 80. That was two years ago and I forgot the whole proceedure. Presently, in my case I'm using iis 7 server. I have a Toshiba PC. What exactly do I need to do to  upload a web page to the server so that I can test it and the javascript in it? Somebody, please. 


WCF Service or an aspx page on IIS 7.5 only works when w3wp.exe is elevated

$
0
0

Sorry if this is not the right place to post this.

I'm encountering a problem where upon I am loading up a WCF service into IIS. Contained within this service is a reference to a DLL that wraps around a native static Lib file. This lib launches an exe and allows api access into the exe. When I run the service using Visual Studio's debugger, everything runs properly. However, when I load it up onto IIS and make a call to the service, it crashes claiming heap corruption. I have tried using asp.net impersonation, changing the identity of the w3wp.exe worker to a user that has executable right to the exe. I even went so far as to use an administrator account as the impersonation and identity, still no joy. When the exception occurs, it tells me that the user doesn't have adequate permission to execute the JIT and will need to be elevated to an Administrator.

Now, this is where it gets peculiar. After being elevated, the service may then execute as expected as long as the w3wp.exe continues to run. If the w3wp.exe is stopped and restarted then it will throw the exception again. I've done a stack trace of the issue and have given IIS permission to access the files that the service is dependent upon as well as the DLL's dependencies. I have verified that the values in the DLL are being properly handled and that it doesn't corrupt before making a call into the Lib file.

IIS 8 "request.inputstream returns an empty string"

$
0
0

I have the following code in the Page_Load event handler of my ASPX webpage that reads a set of XML parameters using VB.NET:

  • Dim MyParameters As String = ""
                Request.InputStream.Position = 0
                Dim MyEncoding As System.Text.Encoding = Request.ContentEncoding
                Dim MyLength As Int64 = Request.ContentLength
                MyParameters = New StreamReader(Request.InputStream, MyEncoding).ReadToEnd()

Which works prefectly on Windows 7 and Windows 2008 R2 server and returns a string containing parameters as expected...

I have just migrated the application onto an Azure Windows 2012 R2 server and this code fails - the MyParameters string contains an empty string (using exactly the same request and data).

Why is IIS 8 emptying the request.inputstream before I can read the data?

403 - Forbidden: Access is denied

$
0
0

Hi..I have installed renewed SSL certificate on web server IIS7. After installation I applied website binding to port 443. My application uses client certifcates also, so i have changed SSL setting to Require 'client certificate'. Both client and SSL server certificates are valid but still I am not able to access my application. Error i get is - '403 - Forbidden: Access is denied.'. I have enabled client certificate mapping in IIS role settings also but still not getting rid of this 403 error. I guess client certificate is not ablt to handshake with server certificate. Please help!!

CSHTML forbidden handler

$
0
0

I've read a few posts about .cshtml pages not serving up due to being forbidden and various ways to fix that.  I fixed mine by simply removing the .CSHTML handler mapping that was listed as a forbidden handler while leaving the other handlers (ISAPI ).    Now I just need you fine experts to tell me if there is a reason I shouldn't do that and why.  Any input is much appreciated....thanks.

IIS 7 Host Header not working

$
0
0

Hi There,

I have IIS 7 running a website on the "default website" - The binding for this site are any IP on port 80 with no host header specified. 

I want to run another site along side the default website. On this site I have specified a host head of "hr.domain.com" - I have pointed my DNS for this name to this webserver but when I brose to this name in IE I just get the IIS 7 page. To me this means that it is picking up the default website and not the new one I have created. I have tried an IIS reset but not asure what to do next?

Thanks

Dave

Viewing all 7363 articles
Browse latest View live


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