3 Replies - 2393 Views - Last Post: 08 September 2012 - 01:42 PM Rate Topic: -----

#1 CasiOo  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1372
  • View blog
  • Posts: 3,022
  • Joined: 05-April 11

Sharepoint2010 module file upload

Posted 22 August 2012 - 01:13 AM

Hi

I am experiencing problems when making a new module and putting a file in the module.
The file gets uploaded to the Shared Documents library (on my team site), but when I click the link to try and view the file, I get an unknown error.

This is the xml code for the module and file. I am able to see Sample.txt in the Shared Documents library
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Path="Module1" Url="Shared Documents">
    <File Path="Sample.txt" Url="Sample.txt" IgnoreIfAlreadyExists="FALSE" Type="GhostableInLibrary" />
  </Module>
</Elements>



What internet explorer tells me when trying to view the file
This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.



And finally the error log from sharepoint.
Unknown SPRequest ??
Entering monitored scope (Request (GET:http://win2008r2-steph:17191/Shared%20Documents/Sample.txt))	 
Name=Request (GET:http://win2008r2-steph:17191/Shared%20Documents/Sample.txt)	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
HTTP Request method: GET	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
Overridden HTTP request method: GET	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
HTTP request URL: /Shared%20Documents/Sample.txt	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
Unknown SPRequest error occurred. More information: 0x8007007b	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
<nativehr>0x8007007b</nativehr><nativestack></nativestack>	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d
<nativehr>0x8007007b</nativehr><nativestack></nativestack>	b5c30c1f-f5bb-40c7-8b5c-91933c0cd27d	


This post has been edited by CasiOo: 22 August 2012 - 01:17 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Sharepoint2010 module file upload

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3457
  • View blog
  • Posts: 10,665
  • Joined: 05-May 12

Re: Sharepoint2010 module file upload

Posted 22 August 2012 - 11:01 AM

I'm failing to see how this is C# question. The looks more like a SharePoint configuration issue.
Was This Post Helpful? 0
  • +
  • -

#3 CasiOo  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1372
  • View blog
  • Posts: 3,022
  • Joined: 05-April 11

Re: Sharepoint2010 module file upload

Posted 08 September 2012 - 01:26 PM

View PostSkydiver, on 22 August 2012 - 06:01 PM, said:

I'm failing to see how this is C# question. The looks more like a SharePoint configuration issue.


Since most people develop sharepoint in C# and there is no sharepoint section I thought the best place would be here :)

Just to close the topic, I have found the solution.
I saved the file using the wrong encoding. It should have been saved using ASCII and not utf-8 :)
Was This Post Helpful? 0
  • +
  • -

#4 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3457
  • View blog
  • Posts: 10,665
  • Joined: 05-May 12

Re: Sharepoint2010 module file upload

Posted 08 September 2012 - 01:42 PM

Yet another reason why Sharepoint must die...
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1