Link to home
Start Free TrialLog in
Avatar of Alex Mathiasen
Alex Mathiasen

asked on

IIS/Sharepoint new files returns 404

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

Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

How did those files get in there? Sharepoint would not normally service a .TXT file straight from its root.
Avatar of Alex Mathiasen
Alex Mathiasen

ASKER

I created them manually. I have also tried creating .html files - However they return 404 till the website have been reset.
ASKER CERTIFIED SOLUTION
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.