Quantcast
Channel: All Forums
Viewing all 27852 articles
Browse latest View live

solutions

$
0
0

whenever i trying to visit any sites,,, lots of problem are being created. please solve it as soon as possible.


Rewrite part of url for legacy urls

$
0
0

I have a project which has been migrated. Problem is content url's have a part of the url changed. This is creating a nightmare for 404's internally and also externally (links made on other sites). I'm forced to appriciate these url's so I'd like to create a rewrite that accomodates this. 

http://www.fake.ca/oldfolder/oldlibrary/file.mp4?version=1

and i'd like it to be now

http://www.fake.ca/newfolder/library/file.mp4?version=1

it sounds easy,.. but like some of the threads I've been browsing, each answers but not quite what I need. Usually it's what the problem is that then causes a simple example of how to do this. 

I tried wildcard but I see some recommend regex. Could this be the problem?

<rewrite>
<rules>
<rule name="Partial Path ReWrite" patternSyntax="Wildcard" stopProcessing="true">
<match url="*/libraries/default-video-library/*" />
<action type="Redirect" url="{R:1}/videos/default-source/{R:2}" />
<conditions logicalGrouping="MatchAny">
</conditions>
</rule>
</rules>
</rewrite>

How to secure the application pages in SharePoint 2013 with Claims authentication?

$
0
0

I want to secure the application pages in SharePoint 2013, web-application is based on the Claims authentication.  It does not seem to be working with AD Groups, have tried with the following combinations.

  

<location path="_layouts/15/viewlsts.aspx"><system.web><authorization><allow users="Group1" /><allow users="Domain\Group1" /><allow users="0#.w|Domain\Group1" /><allow users="c:0+.w|Domain\Group1" /><allow users="s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><allow users="0+.w|s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><allow users="c:0+.w|s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><allow roles="Group1" /><allow roles="Domain\Group1" /><allow roles="0#.w|Domain\Group1" /><allow roles="c:0+.w|Domain\Group1" /><allow roles="s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><allow roles="0+.w|s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><allow roles="c:0+.w|s-1-5-21-1971354296-1767978563-xxxxxxx-yyyyyy" /><deny users="*" /></authorization></system.web></location>

Howto Configure http2 with Windows Server 10 Technical preview 2

about self-defined error page 404

$
0
0

i defined 404 page as URL and the value is '/404.asp';

when i received a 'GET' request, i got a value 'GET' with Request.ServerVariables("REQUEST_METHOD");

but when i received a 'POST' request, i also got a value 'GET';

should it be 'POST'?

IIS 8.5 and Ftp

$
0
0

Hi all. I have Server 2012 R2, I installed IIS, and was able to access default website straight away. Just added several web application (also worked) and FTP publishing. Added User isolation and ssl certificate. FTP is configured to Allow SSL. Only one user is allowed for now to enter.

Strangely now when I log in from my PC - I can access to the isolated folder. 

All others are not able to do that. They receive "Error : 530 User cannot log in." after user credential.

Can you please help.

Error when accessing Active directory - Asp.Net web application

$
0
0

Hi All,

I'm trying to pull user details/validating credentials against active directory and getting the below error when i run the code in Web application and i'm good with console application.I've verified the active directory team and they conveyed that service ID has read only access...Do i need to modify anything with the code/IIS settings to get out from the error.Please help

System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindOne()

 

Intermittent Page Cannot Be Displayed Error

$
0
0

We are currently experiencing an odd issue that we believe is being caused by IIS 7 but are completely unsure how. The issue we are having is that the server will serve pages just fine for a random amount of time (it could be a day, or it could be an hour) and then for a brief amount of time (maybe 10 minutes) intermittently you'll start getting "Page Cannot Be Displayed" errors in your browser. This happens most often in Internet Explorer but we have seen it happen on Google Chrome as well.

We started looking at the Network tab under the developer tools in IE and Chrome and waited for it to happen again. We started seeing odd behavior when it began to happen. You could make a request to the site and it would load most of the page and then the last 4-5 items needed to load would just abort out (the Result section of the network Tab on IE literally says Aborted, Google Chrome will say Failed) and then the next attempt to have a request fulfilled immediately after would Abort once, and then attempt again and Abort with a (Pending...) initiator in IE. So we started looking at logs on IIS and when we were able to isolate traffic to a specific machine at a specific time at which it occurred we saw that there were no errors or anything, it just served up a few of the required files and then no others, so it would seem that it just stops fulfilling the request.

Any ideas on why this is happening or what could be causing it? It seems to start happening after Windows Updates, but it's not every time.


"Application pool 'XXXXXXXXXX' is being automatically disabled due to a series of failures in the process(es) serving that application pool."

$
0
0


Operating System: Windows Server 2012 Standard R2
IIS Version: 8.5
ASP.NET version: 4.0
.NET Framework: 4.5

We have developed a ASP.NET/WCF application using basicHTTPBinding. This ASP.NET/WCF application exposes two methods
- to receive messages.
- to transfer/download files (max 1MB)
The above WCF application is hosted in Server2 (shown in diagram below).

To consume the exposed method by WCF application, we have developed a ASP.NET application that is hosted in Server 1. This ASP.NET application receive messages from client in the form of querystring in .aspx and send the querystring content to Server2 using the receive message exposed method. The querystring is loaded into the ASP.NET application by using Page class provided by .NET.This ASP.NET application consumes the WCF exposed method by constructing it's own SOAP envelope. Constructing a SOAP envelope involves creating a request header with SOAPAction that needs to be called and of course with correct parameters. Then a http request is sent to Server2 via HttpWebRequest. The responses from Server2 are captured using Webresponse. For our case the response that we receive is in the XML format. Thus, we parse in the XML into XmlTextReader and read to the descendent inorder to get the response value.

The overall architecture shown below:

Communication Architecture
--------------------------------------

Client <------M1-----> Server1 <-----M2----> Server2

whereby,
Client: sends a querystring message using .aspx
M1: http://Server1/msg.aspx?querystringcontent
Server1: receives M1 and send to Server2 through exposed methods.
M2: http://Server1/Service1.svc
Server2: receives M2 from Server 2 on ASP.NET/WCF application.

Sample request header :

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.Headers.Add("SOAPAction", @"http://tempuri.org/IService1/" + SOAPAction);
req.Accept = "text/plain";
req.ContentType = "text/xml;charset=utf-8";

Sample SOAP Envelope created :

"<?xml version=""1.0"" encoding=""utf-8""?>"
+ @"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"
+ " <soap:Header></soap:Header>"
+ "<soap:Body>"
+ " <" + SOAPAction + @" xmlns=""http://tempuri.org/"">"
+ " <message>" + Message + "</message>"
+ @" </" + SOAPAction + ">"
+ @" </soap:Body>"
+ @" </soap:Envelope>");


The above communication works fine for a few hours until errors and warning start to appear in Windows Event Logs. Also, the Web Service throws the following error code "HTTP Error 503 - Service unavailable".

Warning #1
Event ID: 5011
Source: Microsoft-Windows-WAS
Description:
"A process serving application pool 'x' suffered a fatal communication error with the Windows Process Activation Service. The process id was 'xx'. The data field contains the error number."

Error #1
Event ID: 5002
Source: Microsoft-Windows-WAS
Description:
"Application pool 'XXXXXXXXXX' is being automatically disabled due to a series of failures in the process(es) serving that application pool."

Could you please shine some light regarding this issue that we are facing. Below are list of questions that would help us understand better on the issue.

1) Do we need to change the IIS configuration or remain as default settings?
2) Does the type of binding we use affects the performance of our application?
3) Is WCF technology feasible for high amount of requests at a short time interval?
4) What are the limitation of WCF?

Thank you so much. We really appreciate any thoughts and help you guys can offer.

Mp4 video not playing/streaming

$
0
0

Hi, I have a H264/AAC video in mp4 file on our web (IIS 7.5 - windows server 2008 R2), but I'm not able to play/stream it - all I see is only an empty black space.

- I'm able to download the mp4 file, so no problems with access rights

- MIME type video/mp4 is present in IIS

- Patch KB2483177-x64 installed

- Video is playable on all other IIS servers (test servers), except this one

- All browsers the same result...

Any ideas?

HTTP 503 Server cannot reply due to maintenance or overload.AGAIN

Rewrite Rules with query string

$
0
0

Hi to everyone
I have already posted a question and I found some very important solutions for the url rewrite process like the following
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

Now I'm asking myself if is possible to set a Rewrite Rules for the URL Rewrite Module with a query string inserting as link the content of the cell.

For example

from
http://www.mywebsite.it/italian/page.asp?id=205

to
http://www.mywebsite.it/italian/CONTENT-DATABASE-CELL-ID-205

Thank you in advance for your help
A

Disabling native WebDAV

$
0
0

Hi!

We have the Asp.NET web application where we have implemented the webdav protocol to access to files stored in the database.  To disable the native WebDAV module we added to the web.config the following code:

  <system.webServer>

    <modules>

      <remove name="WebDAVModule" />

    </modules>

    <handlers>

      <remove name="WebDAV" />

    </handlers>

  </system.webServer>

It turned out that this is not sufficient. In order to the all webdav verbs reach the web application we have to use the IIS Manager (the WebDAV Authoring Rules page) to disable the WebDAV feature.

My question is the following: Is it possible to configure the web application entirely in web.config at the application level to disable the WebDAV feature without using the IIS Manager? Or it can be done programmatically in the Application_Start event?

Best regards,

Igor Ilin

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

IIS 7.5, Windows 7, Windows Server 2008

WEBDAV System error 1920 has occurred

$
0
0

I am not able to map Website -> Folder->SubFolder1 as a network drive on my Windows 8 desktop. Authoring Rule is already in place.

i have used "net use * https://Website_name/Folder/SubFolder1" command to map as network drive. It gives "System Error 1920 has occurred".

Web client service is also started and Also Windows Firewall is disabled.

Request help

IIS 8.5 Authentication

$
0
0

I had a question about authentication with IIS 8.5. Let's say I have a website named example.com, and in the website I have two pages...one that is example.com/page1 and example.com/page2. I want the website to be fully private, so it requires a username and password. If I put Basic authentication on example.com, it will require a login, but anyone could just type in the address bar example.com/page1 or example.com/page2 and fully bypass that logon. I want to know how I can fully lock the site so that it requires a login if you type example.com or example.com/page1. Let me know what I could do. Thanks.


WebDAV iis8.5 UNC File Share Pass-Thru Authentication

$
0
0

Here is the play - Provide File Access for iPad Users to Home & Public Shares

  • WebDAV Publishing of UNC File Shares located on Windows 2012 R2 File Server
  • Basic Authentication w/SSL

Here is the issue

  • Application Identity 'Network Service'
  • Network Service added with Read Access to remote File Shares

User connects to WebDAV with AD credentials but these credentials are not being passed-thru to the backend Server which appears to be using the Network Service credential - And as we have an access controlled structure this is annoying - We have also tested with a AD account as the application identity with the same result.

Over to the professionals.

Many thanks in advance.

Location header with IDN characters broken

$
0
0

For some POST calls in our API we point the response Location header to the created resource.

The Location header can contain a URL with IDN characters (e.g. 

http://résponse.com
)

When hosting the API in IIS, IIS changes the Location header to 

http://résponse.com/

There is definitely something wrong in the encoding there. When we make our API self-hosted, the Location header isn't touched. Is there some setting I'm missing in IIS that causes this behavior? The content type charset is set to utf-8, but this is already the default in IIS I guess.

Version of IIS is 8.5+ We use Web API, but using NancyFx causes the same behavior.

URL Rewrite 2.0 and REMOTE_ADDR

$
0
0

I'm trying to find a solution to allow the client IP to be preserved using an X-Forwarded-For header from our hardware load balancer.  I would like to get this working with URL Rewrite 2.0 as this will be the most supportable option once v2.0 is released, but I'm having trouble getting the REMOTE_ADDR variable to be overwritten.

 I can successfully write the X-Forwarded-For value to a new HTTP_variable:

<set name="HTTP_Test" value="{HTTP_X_Forwarded_For}" replace="true" />

But when I try to set the REMOTE_ADDR variable, nothing happens:

<set name="REMOTE_ADDR" value="{HTTP_X_Forwarded_For}" replace="true" />

What am I missing here?

403 - Forbidden: Access is denied

$
0
0

Hi all,

We have the following error, when setting up new website :

403 - Forbidden: Access is denied

You do not have permission to view this directory or page using the credentials that you supplied.

We tried to resolve whatever the possible solution that provided by websites.

anyone help me to solve this error?

(I am using IIS 8, Windows Server 2012 )

 

How to Remove the IIS 8 Welcome PAge

$
0
0

HI ,

I want to remove the IIS Default Welcome Page

Tried the Below:

1. Renamed the C:\Intepub\wwwroot\iisstart.htm - Eventhough Page is loading Welcome Page

2. Disabled the Default Website  - Eventhough Page is loading Welcome Page

3. Deleted the Default Website   - Eventhough Page is loading Welcome Page

Please Help.

Environment

Windows Server 2008

IIS8

Viewing all 27852 articles
Browse latest View live




Latest Images