Skip to main content

SharePoint log error "Cannot find site lookup info for request Uri http://"

There are many reasons for which you can have this error in your SharePoint server logs.
One of the scenerio is explained below.

Main Reason:
One of the major reason for this error is; the SharePoint is not able to resolve the URL. There is something wrong with the alternate access mapping. Please make sure the alternate access mapping is configured properly.
For more details on alternate access mapping in SharePoint, please visit:


We had sharepoint 2016 and all website under that were https:// from the firewall.
When we tried to load the web site, error occured with a Correlation Id.
After checking the code I found the error message "Cannot find site lookup info for request Uri http://".

I URL was able to authenticate the user but on page load the error occurs.

My alternate access mapping was:

https://mysite                                         default                                               https://mysite

Reason:
This is all right unless the User gets authenticated, but after authentication the next default load url picked by the web is with https:// as it is configured from Firewall not SharePoint. And Alternate access mapping doesn't maps the http:// url to the https://.  That's why we have this error in the log.

Solution:

Add new internal url to alternate access mapping as following:
http://mysite                                          default                                                https://mysite


Hope this helps......

Comments

Popular posts from this blog

Visual Studio Build Issue : Build: 0 succeeded or up-to-date, 0 failed, 1 skipped

"Unable to build or clean the solution in Visual Studio (applicable to almost all versions), output window message is : Build: 0 succeeded or up-to-date, 0 failed, 1 skipped". If you are facing the above issue, you are at the right place. Perhaps following can help you. BTW, the above image is self explanatory, let me still brief if in case the image is not getting downloaded on your Internet connection. In VS menu, go to Tools -> Options. Select -> Projects and Solutions -> Build and Run. Uncheck - "Only build startup projects and dependencies on Run." Your problem shall be resolved. Thank you for visitng my blog.

Solved : 'WebApplication' does not contain a definition for 'UseKestrel' and the best extension method overload 'WebHostBuilder Kestrel Extensions.UseKestrel(IWebHostBuilder, Action)' requires a receiver of type 'IWebHostBuilder'

I had a requirement to upload files to .NET Core controller using Ajax call. Everything works well when the file size is < 30 Mb. When we try to upload larger files, the controller doesn't receive any files in the POST. Its always null. IList < IFormFile > files var file = Request.Form.Files[ 0 ]; All the values were null, I tried using Files as parameter to the post and also tried using " Request.Form ". After some research, I found that the upload limit of the Kestrel server need to be increased as it limits it by default set to 30 or 50 Mb(not very sure). When trying to add Kestrel  to the builder configuration, I was getting following error: "' WebApplication' does not contain a definition for 'UseKestrel' and the best extension method overload 'WebHostBuilder Kestrel Extensions.UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)' requires a receiver of type 'IWebHostBuilder '" SOLUTION: My .Net SDK vers...