Solved

IIS/Sharepoint new files returns 404

Posted on 2014-10-30
4
372 Views
Last Modified: 2014-11-05
Hello Experts,

I have some odd issues with a Windows Server 2008 R2 install with IIS7 with a Sharepoint site.

The sharepoint website is acting weird, as new files returns 404 - until the website have been reset in IIS.

This is the entry from logfile - Same result both from localhost or another host trying to access the file:

2014-10-14 12:26:47 10.23.83.142 GET /test.html - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/37.0.2062.124+Safari/537.36 - www.domain.tld 404 0 0 438 367 78​

Anyone with a guess as of why this is happening? When the website is restarted, I can access the file without issues.

No caching enabled in IIS web.config.

Sharepoint log, when it returns 404
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x1714	SharePoint Foundation         	Monitoring                    	nasq	Medium  	Entering monitored scope (Request (GET:http://localhost:80/testam4.txt))	 
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x1714	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Name=Request (GET:http://localhost:80/testam4.txt)	5a2f0eeb-33e2-4dab-8f18-bca4a6873689
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x11C0	SharePoint Foundation         	General                       	af71	Medium  	HTTP Request method: GET	5a2f0eeb-33e2-4dab-8f18-bca4a6873689
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x11C0	SharePoint Foundation         	General                       	af75	Medium  	Overridden HTTP request method: GET	5a2f0eeb-33e2-4dab-8f18-bca4a6873689
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x11C0	SharePoint Foundation         	General                       	af74	Medium  	HTTP request URL: /testam4.txt	5a2f0eeb-33e2-4dab-8f18-bca4a6873689
10/27/2014 15:51:49.48 	w3wp.exe (0x1728)                       	0x12F4	SharePoint Foundation         	Monitoring                    	b4ly	Medium  	Leaving Monitored Scope (Request (GET:http://localhost:80/testam4.txt)). Execution Time=5,75876263603335	5a2f0eeb-33e2-4dab-8f18-bca4a6873689

Open in new window


Sharepoint log after resetting the website:
10/27/2014 15:55:49.75 	w3wp.exe (0x1728)                       	0x1594	SharePoint Foundation         	Monitoring                    	nasq	Medium  	Entering monitored scope (Request (GET:http://localhost:80/testam4.txt))	 
10/27/2014 15:55:49.75 	w3wp.exe (0x1728)                       	0x1594	SharePoint Foundation         	Logging Correlation Data      	xmnv	Medium  	Name=Request (GET:http://localhost:80/testam4.txt)	fba52a32-e548-4ece-9801-36d47c4feeeb
10/27/2014 15:55:49.75 	w3wp.exe (0x1728)                       	0x1594	SharePoint Foundation         	Monitoring                    	b4ly	Medium  	Leaving Monitored Scope (Request (GET:http://localhost:80/testam4.txt)). Execution Time=1,6762605303188	fba52a32-e548-4ece-9801-36d47c4feeeb

Open in new window

0
Comment
Question by:Alex Mathiasen
  • 3
4 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40414159
How did those files get in there? Sharepoint would not normally service a .TXT file straight from its root.
0
 

Author Comment

by:Alex Mathiasen
ID: 40414201
I created them manually. I have also tried creating .html files - However they return 404 till the website have been reset.
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 40414212
Where did you create them manually? And how?

Sharepoint is NOT a html development environment.  If you want to add files to a sharepoint site then you NEED to use either the sharepoint GUI or use SharePoint Designer and/or Visual studio.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40414218
if you are creating .txt files and storing them manually in the root of the sharepoint site then I am afraid to say that you are not understanding just what sharepoint is or how to develop a site with it.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question