Solved

IIS/Sharepoint new files returns 404

Posted on 2014-10-30
4
369 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now