Access Fileserver Data via SharePoint

Access Fileserver Data via SharePoint

Update:
The Webpart is not (yet) working as expected. Ajax only works for postbacks. The initial load will take longer, if you have many directories. I am working on this…

Update2:
Almost done! Ajax is working fine. Ajax is registered, so you don’t need to modify the web.config yourself.
Todo: Performance.
Hang on just a little more.

Update3:
Done. I have worked on my Webpart. It will now be faster and it is working 🙂
If you have previously installed the Webpart, please uninstall it, and reinstall again. You can use the setup program.

Update3:
A new version has been released. Take a look at Major Update to the Fileserveraccess Web Part.

I guess everybody knows this scenario. You are with a customer or at home, and need a file from your company’s fileserver very badly. What can you do? VPN is not possible, and you can’t phone a colleague who can then send you the file via email because nobody is in the office. Don’t bother any more. The solution is here J

With my Webpart you can access files from e.g. your fileserver via SharePoint / Browser.

All you have to do is install the solution, activate and deploy it. When you drag the Webpart onto a SharePoint page, you configure the root path from which you want to share data, and your users are able to download the files through the Webpart.

All files and folders are security trimmed. Meaning you can only download files and see folders, which you would see on the directory itself.

Of course this Webpart is translated to English and German. If you want it in your language, contact me.

Sorting the four columns allows your users to find the files they are searching more quickly. The paging size can be configured in the Webpart properties.

This Webpart requires the .Net Framework 3.5 on your WFE (Web Front End) Servers and you have to modify your web.config files to use AJAX. There is an Installation guide here. Be careful to change the version number from Version=1.0.61025.0 to Version=3.5.0.0!

Installation:

After you have added the solution via stsadm, you have to activate the feature on your webapplication and site collection.

Update:

The Webpart can now be installed with a setup program. It will automatically adjust your web.config, so you don’t have to manually put in all AJAX configuration elements.

Before you activate the feature on your sitecollection, activate the feature for the web application in the central administration. This will do all steps for you.

Update 5.6.08:

A small update. Added danish language support (thx to Anja!) and a small performance tuning.

Update 19.6.08:

A small update. Installing the solution via installer does not work as expected. So I will have removed the installer, and uploaded a plain old wsp.

Update 29.9.09

If you are running your SharePoint Farm on a Windows Server 2008, you might want to read this KB article. I is titled "You cannot upload files that are larger than 28 MB on a Windows Server 2008-based computer that is running Windows SharePoint Services 3.0"

Update 12.01.12

Major Update to the Fileserveraccess Web Part

Download the solution here

Technorati Tags: ,,
178 Comments

AW: Access Fileserver Data via SharePoint

Reply

Hi, I tried to use your web part but I cannot get it to show any files. I get an error if I put a UNC for “Path to directory on fileserver:” such as \? The error message I get starts with “The specified Path does not exist!Error creating files table…” Plus, if I just put “C:” for “Path to directory on fileserver:”, I get the following error message: “An unexpected error has occurred.” How do I use your web part?
Thank you.

 

AW: Access Fileserver Data via SharePoint

Reply

Hi,
please try the new version.

 

One or more features must be turned on before this feature can be activated.

Reply

I have tried enabling this web part through the site collection features on the Central Administration and the team site. I also tried the web application features in Central Admin. I still get

“One or more features must be turned on before this feature can be activated. ”

Any suggestions? Thanks

 

re: One or more features must be turned on before this feature can be activated.

Reply

Hi,
first you have to go to the “Central Administration”, “Application Management”, “Manage Web application features”, check if you have the right web application!, and activate the feature “Fileserver Access – Webapplication”.
Then go to the rootWeb of your Site Collection, and activate the “Fileserver Access” feature.

René

 

AW: Access Fileserver Data via SharePoint

Reply

Hi i tried that but no luck, it obviously is a sharepoint problem. Can you tell me do I need to do anything with RH.FileserverAccess.wsp. I just ran the set-up exe file on the web server.

 

AW: Access Fileserver Data via SharePoint

Reply

Hi, I wonder does the site collection have to be a publishing site?

 

please wait …

Reply

hello Rene,
thx for this webpart – but ….
i installed like you wrote, but the only effect is: “please wait … there are no files in this directory”.
Any idea?

Regards, Anja

 

AW: Access Fileserver Data via SharePoint

Reply

Hi,
what exactly is your problem?

 

AW: Access Fileserver Data via SharePoint

Reply

Quote:
Hi, I wonder does the site collection have to be a publishing site?
——————————————
Nope. It works with plain WSS.

 

re: Please wait…

Reply

Hi Anja,
do you want to access a local share, or a remote one?
Do you have Kerberos enabled? You’ll need Kerberos when you want to access a remote share.

René

 

.net Framework

Reply

Please be aware that the webpart installation application does not care about the available .Net framework version on the front end server.

When you try to install it accidentally on a webserver without .Net framework 3.5 your sharepoint server will become inaccessible (“Server Error in ‘/’ Application.”)

 

Bitte warten … Es sind keine Daten im verzeichnis

Reply

Hallo,

I want use FileServer Access WebPart. But I get the following message “Bitte warten … Es sind keine Daten im Verzeichnis”.

It’s totally unclear why. I tried it with a local directory

Gruß Andreas

 

re: re: Please wait…

Reply

Hi Rene,

thx for the quick answer, i’ll try out (a little afraid of Kerberos :-)) and give a response.

Anja

 

Where to find the webpart…?

Reply

Hi I installed, .NET Framework and the AJAX installation. Afterwards I installed the setup.exe and activated the “” under Application Management > Web Applications

But I can’t find the webpart ¿? When i edit the page…

Any advice would be appreciated…

Dave

 

re: Where to find the webpart…?

Reply

Hi Dave,
You have to active the second feature, which you will find withing the sitecollection features. Meaning, go to your root web, and activate the feature there, too.

René

 

re: re: re: Please wait…

Reply

Hi Rene,

after configuring kerberos on our Sharepoint (with help from your tutorial) i got it working! (Yes, remote access on a filserver was the goal).

Kind regards, Anja

 

AW: Access Fileserver Data via SharePoint

Reply

Hi Anja,
glad to here it is working for you!

SharePoint is great after all 🙂

Regards
René

 

Unstable behaviour

Reply

Hallo Rene,
I have installed the web part and its working but not consistently, some times it accesses the local file server and sometimes not. I have not configured kerbros because its a local share. Any clue? Other than that great job and awaited since long.
mit freundlichen Grüßen
Zahir

 

re: Unstable behaviour

Reply

Hi Zahir,
could you describe the situation some more? What exactly is “not working”. Navigation? Downloading files?

René

 

Unstable behaviour

Reply

Hi Rene
downloading is working, but problem is with navigation. When I try reload the site, and access the first folder, I am able to acess files in that folder and then I can not navigate to other folders. I can also not access the page editing mode.
Thanks
Zahir

 

Unstable Behaviour

Reply

Hi Rene
One more thing, I have to refresh the page in order to navigate to other folders.
Gruß
Zahir

 

Need Help!

Reply

Hi René,

ich hab da mein ein kleines Problem und vielleicht kannst du mir dabei helfen. Ich habe ich Webpart geschrieben welches auch auf die File ebene zugreift. Nun möchte ich das der User über ein im SPGridView liegenden Button (Command) die Datei downloaden kann. Da liegt auch das Problem. Mit normaler APSX würde ich das mit einem IO Stream und response machen. Da dies “response zumindestest” im Webpart nicht funktioniert stehe ich auf dem Trockenen. Hast Du mir einen Tip?

Danke und Grüße
Markus

 

re: Need Help!

Reply

Hallo Markus,
ich habe es über einen httphandler realisiert.
Beim erstellen des Grids für die Anzeige schreibe ich Daten in page.Application (page.Application[_FileGuid.ToString()] = string.Format(“{0};{1}”, _FilePath, _FileName);). Diese Daten lese ich im Handler aus, welchem ich die Guid übergeben habe. Dann kann ich dort den Pfad und den Dateinamen herausbekommen.

Gruß
René

 

Need Help!

Reply

Hi René

Danke für die schnelle Antwort 🙂 Bin leider nicht ganz so der “Held” in dem Thema. Aber damit übergibst Du ja das File nicht dem Client?! Das File bzw den Pfad erhalte ich aus dem Grid recht einfach herraus. Blos der “Download” also die Übergabe beim click weiss ich nicht so recht in sharepoint umzusetzten.

Danke
Markus

 

AW: Access Fileserver Data via SharePoint

Reply

HttpResponse response = context.Response;
response.Clear();
response.CacheControl = “Private”;
response.AddHeader(“Content-Disposition”, “attachment; filename=” + fileName);
response.AddHeader(“Content-Length”, file.Length.ToString());
response.ContentType = “application/octet-stream”;
response.BinaryWrite(file);
response.End();

 

Navigation Problem

Reply

Hi Rene
Do you have any tip for my problem regarding navigation??
I would appreciate your help.
Regards,
Zahir

 

re: Navigation Problem

Reply

Hi Zahir,
no, not yet. I will look into this.

René

 

Need Help :-)

Reply

Hi René,

UHAA – ich stand auf dem Schlauch – klar ! so gehts 🙂 AAABER – ein sehr kommisches Problem habe ich da noch – dies ist mir auch schon einmal bei einer Customer Page aufgefallen. Vielleicht kennst Du das Problem auch.

UUNND zwaaaaar :-):
Klapt der Download jetzt wunderbar – Danke nochmals – aber wenn ich im Grid auf ein anderen Button drücke – passiert hier gar nichts. Es geht immer nur einmal. Hm, ich hab dir hier mal den Code – aber er ist identisch mit deinem..

string path = “C:\hase.pdf”;

MyFileStream = new FileStream(path, FileMode.Open);
long FileSize;
FileSize = MyFileStream.Length;
byte[] Buffer = new byte[(int)FileSize];
MyFileStream.Read(Buffer, 0, (int)MyFileStream.Length);
MyFileStream.Close();

HttpResponse Response = Context.Response;
Response.Clear();
Response.CacheControl = “Private”;
Response.AddHeader(“Content-Disposition”, “attachment; filename=hase.pdf”);
Response.AddHeader(“Content-Length”, MyFileStream.Length.ToString());
Response.ContentType = “application/octet-stream”;
Response.BinaryWrite(Buffer);
Response.End();

Eine Idee warum das ganze immer nur einmal geht?!

Danke und Grüße
Markus

 

AW: Access Fileserver Data via SharePoint

Reply

Hallo Markus,
bitte poste nur ein mal. Ich muss immer die doppelten Einträge löschen.

Bei einem Grid kommt es auf die Reihenfolge an, in der du das Grid erstellt, die Buttons erstellst und sorting.. aktivierst. Google mal ein bisschen. Dann bekommst du die richtige Reihenfolge schon raus.

Gruß
René

 

There are no files in the directory

Reply

Hello René,

I installed this feature and got it running for a share on the local server the website is running on, but for some reason it won’t work for shares on different servers. Are there any specific permission settings that need to be set for this to work?
I granted the application pool-account rights on the share as well as adding it to the local administrators group on the servers. But all this doesn’t work. I keep getting the message that there are no files in the directory, but browsing to it with Windos Explorer it shows several files and folders.

I hope you have an answer to this so we can put this web part to good use in our organization.

Regards,
Bart

 

sys.webforms.pagerequestmanagerserverrorexception

Reply

Hello René,

My other issue regarding this feature has been resolved by enabling Kerberos (accidentally stumbled upon it when reading through your other blogs). So, sorry for that post.

But now I’m facing another issue. Whenever I try to expand or collapse a folder I get a Javascript error the first time. Clicking again makes it expand or collapse, but why doesn’t it work the first time?

The error returned is:

Line: 6
Char: 9278
Error: sys.WebForms.PageRequestManagerServerErrorException: An unknown error occured while processing the request on the server. The status code returned from the server was: 403
Code: 0
URL:

Also on some computers I occassionally get the following error:

Error creating the FileserverData Object for the path ”: System.UnauthorizedAccessException: Access to the path ” is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) at System.IO.DirectoryInfo.GetDirectories(String searchPattern, SearchOption searchOption) at System.IO.DirectoryInfo.GetDirectories() at RH.FileServerData.Create(String path, Boolean getSubDirectories)

Any ideas why this error is occuring? The user does have access to that share and sometimes it works for the user on that computer, but then all of a sudden it stops working and generates this error.

When it does work, it works great and I’m positive we can put it to good use, though we are also looking for the same feature but with also the possibility to upload or edit a document on a file share (depending of the given rights of the user). Do you have any idea of the possibilities regarding this?

 

excellent….

Reply

I have a question for you will sharepoint index the remote sites as well. I mean will it scan all the documents so I can use the search function.

How about each users remote share. I mean each user would see their remote home drive.

We would have 14 remote sites with many remote servers

Michael

 

re: excellent….

Reply

Hi Michael,
no. You will need MOSS and configure the search to crawl your fileserver.
Each users only “sees” directories, which he may access. So if you have a share \serverhomeuser1…2$, there will be only one directory in the treeview.

René

 

MOSS

Reply

I am still a little be confused with all the types of sharepoint but we would be going with MOSS.

We have not implemented anything as of this point.
I work for a public school and was just thrown the idea but distinct administrators.

Right now we have two separate product one for collaboration and than plain jane file servers. I would like to see moss run on top of the file servers and index all files on the files servers including users home drives and the common shares we use.

So when a teacher logged in they would see their home drive,
teacher common (just another file share), student common, and the root of each students home drives (the root of student home drives) as well as any district shares migrageate from the docushare (xerox portable)

Student on the other hand would see there home drive, and student common.

I know this is a long post and thanks for the quick response.

 

re: MOSS

Reply

And what do you expect from me? Maybe the comments for this blog post is not the best communication method for your question…

René

 

AW: Access Fileserver Data via SharePoint

Reply

I’m trying to get this working on ours, it says it installed successfully and I’ve activated it through Application Management -> Manage Web Application Features for our Sharepoint site.

I read a comment somewhere that you need to activate this somewhere else, could you tell me specifically where I need to go?

Thanks in advance.

 

re: AW: Access Fileserver Data via SharePoint

Reply

If you post the same question multiple times, it will not get answered sooner! It is just more work for me…

Quote:
Before you activate the feature on your sitecollection, activate the feature for the web application in the central administration.

 

RE: Moss

Reply

I guess I was asking is if you know is this is possible in MOSS.

I do not know a lot about MOSS and I thought that you might be able to answer my question.

Basically do you know is MOSS can index a file server

 

MOSS?

Reply

Hi Michael and Rene,

to crawl a fileserver and let users search contents you must not install MOSS, take the free edition of MS SearchServer 2005. We use it additional to out WSS3.0, and it works great.
Tip: try out in a virtual machine ….

Regards, Anja

 

RE: Navigation Problem

Reply

Hi Rene,

I am having the same issues that Zahir experienced and was curious to see if you have found a fix for it. To reiterate, the problem is that I can only expand or navigate to a single folder and then I can no longer navigate to other folders, expand a folder or even collapse any of the folders. Also, after I navigate to the first folder or expand one I can no longer edit the page without first refreshing.

Thanks,

Jesse

 

AW: Access Fileserver Data via SharePoint

Reply

Hi Jesse,
I noticed that if you click a second time on a node, while the first click event has not been finished, you will experience this problem.
So just let the Webpart finish the first click, and then click on another node.

Please let me know if this was your problem.

René

 

RE: Navigation Problem

Reply

Nope, it does it no matter how long I wait after the first click.

Jesse

 

viewing problem

Reply

when i try to open the webpart under the webpart gallery, it display “unknown error”…

i have activated the service in
“Central Administration > Application Management > Manage Web Application Features”

but i when activate it in the service under
“Central Administration > Site Settings > Site Features” , it

says
“One or more features must be turned on before this feature can be activated.

Fileserver Access – Webapplication
This feature modifies the web.config to support the Fileserver Access Webpart ”

pls help me out with this…………

 

re: viewing problem

Reply

Are you certain that you have activated the webapplication feature on the same webapplication where the sitecollection is?

The dependencies between the features usually works smoothly.

René

 

re : viewing problem

Reply

i have done them all, but still it does not work…

 

Unknown Error

Reply

Hi René,
the feature is installed in the central administration and at the webapplikation. The installation and activation works fine but… if I try to install the webpart or view this in preview mode I get the MOSS error site with the description “Unknown Error”. Have you any ideas?
Thanks in advance
Andreas

 

re: Unknown Error

Reply

Hi Andreas,
could you please deinstall the Webpart, and reinstall it via stsadm -o addsolution -filename RH.FileserverAccess.wsp?
Maybe the installer does not handle the two features right.

René

 

re: Unknown Error

Reply

Hi René,
thanks for help but… its the same ;-( any more ideas?
I think I’ll try to install your feature at another MOSS 2007 server. Hope the problem of this is the server, not the feature 😉
Kind regards
Andreas

 

Easy way to connect to the fileserver

Reply

Hi people i found a way to access the fileserver.. it is so simple..
these are few steps you should do:

1) go to any desired page
2) select site actions -> edit page
3) select Add a Webpart -> Page viewer webpart and Add
4) click “open the tool pane”
5) in that pane, select “Folder” option and
under link type the address eg: \fileservernamefoldername
6) select Apply then OK

it worked for me..
hope it does for evryone 🙂

razz

 

Error in LoadViewState

Reply

Installing and activating FileServerAccess works fine.
When i put on a page it says : Please specify the path in the Webpart properties. So far so good !
When i try to set the path text changes to :
Error in LoadViewState: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei RH.FileserverAccess.LoadViewState(Object savedState)Please specify the path in the Webpart properties. (Image on the right is not shown)

Any ideas ?

 

re: Error in LoadViewState

Reply

I have uploaded a new version. Could you please try this one?

René

 

re: re: Error in LoadViewState

Reply

I tried it, and it works better ! The icon is shown but i cannot see any file. Looks like the webpart vanishes. If i change the path to an undefined location, same thing happenes. But when i go to edit mode, the webpart says “undefined path”. With a correct local path looks like it is working but then disappears …

I tried to install manually and with setup. Same result on both ways !

Any suggestions ?

Thanks in advance !

 

re2: re: Error in LoadViewState

Reply

Appendix :

I can insert the webpart on a page, but i cannot see the feature within rootWeb -> webseitefeature !!

Anything to do with this ?

 

re: re: re: Error in LoadViewState

Reply

I’ve uploaded a new version. The problem might be, that you don’t have sessionState activated in your web.config (see my blog post).

René

 

re: re2: re: Error in LoadViewState

Reply

You have to be sitecollection admin to be able to see the features from the sitecollection.

René

 

re: Error in LoadViewState

Reply

Thanks ! Initial directory works now !

But there is an error message within the webpart :

Error in Files: System.InvalidOperationException: Unerwarteter Methodenfehler 32. bei System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext) bei System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory) bei System.Security.AccessControl.FileSecurity..ctor(String fileName, AccessControlSections includeSections) bei System.IO.FileInfo.GetAccessControl() bei RH.FileServerData.get_Files()Error in Files: System.InvalidOperationException: Unerwarteter Methodenfehler 32. bei System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext) bei System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory) bei System.Security.AccessControl.FileSecurity..ctor(String fileName, AccessControlSections includeSections) bei System.IO.FileInfo.GetAccessControl() bei RH.FileServerData.get_Files()

 

“Please Wait” einziger Komentar

Reply

Hallo René,
ich hoffe Du kannst mir helfen.
Ich habe das .wsp File installiert, Kerberos aktiviert und Webpart auf der Seite installiert. Funktioniert soweit prima. Nur bekomme ich leider nur, nach Angabe des Shares, die Flashanimation mit Kommentar “Please Wait” zu sehen ohne das irgendwann eine Fehlermeldung oder ähnliches kommt. Es geht einfach nicht weiter. Habe ich etwas vergessen? Auf dem Share habe ich Rechte und er ist local, eingebunden wie \ServerShare . Fällt Dir etwas dazu ein? Würde mich freuen von Dir zu hören.
Danke im voraus!!
Andreas

 

re: re: Error in LoadViewState

Reply

Quote:
Thanks ! Initial directory works now !

But there is an error message within the webpart :

————————————————–
Sry. Mein Fehler. ups. sry. my fault. I uploaded another version.
René

 

re: “Please Wait” einziger Komentar

Reply

Hallo Andreas,
schau mal bitte ins SharePoint Log (C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12LOGS). Dort könnten weiter Informationen stehen. Ansonsten kannst du aber auch die Seite mal über die Navigation neu laden. Nach dem konfigurieren der Einstellungen bekommt das Webpart nicht immer die Änderungen mit.

Gruß
René

 

re: re: “Please Wait” einziger Komentar

Reply

Hallo René,
danke für Deinen Tipp. Ich habe mir das Log File angesehen und Probleme bei “GetCultureInfo()” entdeckt. Daraufhin habe ich das Webpart in einer anderen Master Page getestet und es funktioniert jetzt, denke ich habe nach der Modifikation an der Page etwas nicht berücksichtigt ;-).
Danke noch mal für das Feature!
Viele Grüße
Andreas

 

Any problems left?

Reply

If you still have problems with my Webpart, please try the current version, and contact me through the contact form (http://www.hezser.de/Lists/Contact/NewForm.aspx?Source=http://www.hezser.de).

thx
René

 

The file does not exist.

Reply

Hi René,
ich habe folgendes Problem festgestellt. Bei größeren Dateien, die zwar im Webparttree angezeigt werden, erscheint die im Titel stehende Fehlermeldung auf einer seperaten Seite. Der Download klappt bei Datein von ca. 200MB problemlos, bei 300MB und größer nicht mehr. Gibt es da eine Limitation und wenn ja, kann man diese aufheben, da wir Videodateien bereitstellen wollen, die auch gern mal die GB Grenze sprengen können.
Vielen Dank im voraus, Marco

 

re: The file does not exist

Reply

Hallo Marco,
es spricht erst einmal nichts dagegen auch grosse Datein herunterzuladen. Ich vermute es ist evtl. ein Timeout Problem. Denn die Fehlermeldung kommt dann, wenn keine Bytes empfangen wurden.

Gruß
René

 

Install WSP

Reply

Hi René,
I tried to install your webpart but, no luck. I finished the Ajax part and installed then the webpart by stsadm.exe. Installation was successful but, I cn not find the Application in “Manage Web application features” or somewhere else. I’m realy new in SharePoint and hope you’ll help me to find my File Server data in SharePoint 😉

Thanks in advanced

Rocco

 

re: Install WSP

Reply

Hi Rocco,
please read my latest post at http://www.hezser.de/blog/Lists/Beitraege/Post.aspx?ID=118

René

 

MultiSelect

Reply

Hi René,
Erstmal super Arbeit. Bin schon lange auf der Suche nach so einem Webpart. Funktioniert prima.

Jetzt meine Frage. Ist es möglich mehrere Dateien oder einen ganzen Ordner auf einmal runterzuladen? Das wäre toll, da ich oft ganze Ordner runterladen muss.

Gruß Torsten

 

re: MultiSelect

Reply

Hallo Torsten (ohne h 🙂 ),
das steht als ein Punkt auf meiner Featureerweiterung. Wann ich jedoch Zeit habe dies zu implementieren, weiss ich noch nicht.
Meine Idee ist mehrere Dateien zu markieren, und gezippt auf einen Schlag herunterzuladen.

Gruß
René

 

re: re: MultiSelect

Reply

Nein, es ist kein Schreibfehler. wirklich ohne “h” 🙂

Oh super, als Zip wäre natürlich perfekt!
Zum Markieren fände ich Checkboxes für Ordner und Dateien sehr praktich…aber mach wie du denkst, will Dir da nicht reinreden 😉

Gruß Torsten

 

Works like a charm

Reply

I also figured out a way to get it working with NTLM. I have a question/request. Is it possible to add a view option that will show pictures as thumbnails?

David D

 

re: Works like a charm

Reply

Hi David,
how do you use the Webpart with NTLM? Is your fileserver on the same server?

It is possible to have a thumbnail for images. But I would have to implement it. And right now, I do not have the time for it. But it is a good idea for a new feature.

René

 

re: Works like a charm

Reply

Rene
I am using 4 servers. 1 sharepoint and 3 file servers. I have installed Reasoft’s Network drive app on the sharepoint server to map network shares from the remote machines as local drives (not network drives) on my sharepoint server. I then enabled sharing on the local drives on the sharepoint server. I put the local disk share in the reference in your web part and get the file display without issue. I am using it to display thousands of photos and audio files. The thumbnails would be a great addition for the users to have, thanks.

David D

 

re: Works like a charm

Reply

Hi David,
thx for sharing the information. That is a great idea. I will evaluate the software 🙂

René

 

Problem when downloading files with FileServerAccess WebPart

Reply

I got the web part to work on Sharepoint 64-bit with widnows 2008. When users download a text file (or any other file) the following text is appended to it:

System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)Error:
System.Threading.ThreadAbortException: Thread was being aborted.
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)
at RH.FileserverAccessHandler.ProcessRequest(HttpContext context)

 

re: Problem when downloading files with FileServerAccess WebPart

Reply

Hi,
how big is the file you are trying to download?
The IIS7 is more restrictive.
http://www.cyprich.com/2008/06/19/fixing-file-upload-size-limit-in-iis-7/

René

 

Downloading FIles with FileServer Access WebPart

Reply

Hello,

Thank you for your response. The size of the file is 2k. It is a text file. Let me be clear. The web part is working and all files are visible and can be successfullly downloaded. The problem is that when the file is opened the follwing text is appended to the file. (every file regardless of size or type):

System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)Error:
System.Threading.ThreadAbortException: Thread was being aborted.
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)
at RH.FileserverAccessHandler.ProcessRequest(HttpContext context)

I was wondering if anyone else has had this issue.

David

 

File upload possible?

Reply

Hi,
Is it possible to upload files with this webpart?
Im looking for a solution to handle large files via sharepoint.

greetings schtoni

 

AW: Access Fileserver Data via SharePoint

Reply

Recommend checking the web.config for the sectionGroup name=”system.web.extensions” before writing it. Some of us already have this in our web.config, and activating your feature duplicates it which errors out the portal.

 

WSS 3.0?

Reply

Does this work on WSS 3.0?

I got the thing to install and I put it on my site but when I point it to a local or UNC path ir just shows a progress meter over and over. then I click out of edit mode and it says it could not find path.

Any ideas?

 

Using this webpart in asp.net application

Reply

Hello,
Would it be possible to use this web part in an asp.net application of course in a webpart page ?

Thanks

Regards
Srini

 

re: File upload possible?

Reply

Not yet. This is one of many TODOs…

René

 

re: WSS 3.0?

Reply

Maybe the path is wrong? For remote folders, you have to configure Kerberos.

For troubleshooting you can look into the SharePoint ULS Logs.

René

 

re: Using this webpart in asp.net application

Reply

You don’t want to use SharePoint?
Kidding 🙂

Not with the current version. If I release the source code, you could rewrite it.

René

 

Help in downloading files

Reply

Hello, I have installed de web part, but it’s not working properly.
When I try to download or save a file, the follow error ocurr:

Exception Details: System.Runtime.InteropServices.COMException: Cannot complete this action

Stack Trace:

[COMException (0x80004005): Cannot complete this action.

Please try again.]
Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String bstrUrl, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags) +0
etc…

I wonder if you can help me on this problem.

Daniel Vieira

 

re: Help in downloading files

Reply

Hi Daniel,
I think the problem is not related to my Webpart. Did you google the problem?
http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!1348.entry?wa=wsignin1.0&sa=123533995

René

 

AW: Access Fileserver Data via SharePoint

Reply

Hi again,
i remove the webpart and add it again in hope that it would work. But after deployng the webpart again, when I try to activate the file server in sharepoint manage web application features i get this error:

Failed to apply a web.config modification to file ‘configuration/system.web/pages’. The specified node “C:InetpubwwwrootwssVirtualDirectoriesxxxxxweb.config” was not found in the web.config file.

I have never installed the webpart in the xxxxx directory, so I don’t know why this error occurs. I’m looking in google but i still can’t find yhe answer. Can you help me?

Thank’s again

Daniel Vieira

 

AW: Access Fileserver Data via SharePoint

Reply

I have re-installed sharepoint and now it’s working.
Thanks for the webpart.

Daniel Vieira

 

Umgebungsvariablen

Reply

Könntest du evtl. die Funktion einbauen, dass auch Umgebungsvariablen funktionieren?

 

MultiSelect

Reply

Hallo René,

Ich hatte schonmal nach einer MultiSelect-Funktion gefragt. Die stand damals bei dir wohl schon auf der Todo-Liste, aber es hat sich jetzt länger nichts mehr an dem Webpart getan. Wollt jetzt einfach mal fragen ob du an dem Webpart noch was machst? Oder gibt es vielleicht ne Möglichkeit den Quellcode zu bekommen? Bin selber .NET-Entwickler, zwar noch nix mit Webparts, aber das wäre ja vielleicht ein ganz guter Einstieg.

gruß Torsten

P.S. immer noch ohne ‘h’ 😉

 

René Hézser

Reply

Am Webpart wird noch gearbeitet. Ich habe schon eine neue Version in der Hinterhand. Diese muss jedoch noch getestet werden…
René

 

Thomas

Reply

Hallo,

ich finde das Webpart sehr interessant. Allerdings kann ich es bei unserem Sharepointserver nicht auswählen. Ich habe das ganze mit stsadmin -addsolution und -deploysolution installiert. In der Lösungsverwaltung taucht der Webpart auch auf. Aber wenn ich zu meiner Intranet Seite wechsle kann ich diesen Webpart nicht auswählen. Kann mir bitte jemand helfen? Vielen Dank!

 

René Hézser

Reply

Hallo Thomas,
nachdem du die solution mit stsadm installiert hast, musst du auf der Webanwendung und der Site Collection die entsprechenden Features aktivieren.

Gruß
René

 

Thomas

Reply

Danke René,

ich bin genau nach deinem Blockeintrag vorgegangen:
http://www.hezser.de/blog/Lists/Beitraege/Post.aspx?ID=118

Allerdings kann ich den Webpart weder auf meiner Intranet-Hauptseite noch auf einer Unter-Seite in den Websiteeinstellungen unter Intranet-Portal->Webseiteinstellungen->Websitefeatures aktivieren, da er hier nicht aufgelistet wird. Es wäre nett wenn Sie mir trotz bereist der viel gestellten Fragen zur Installation weiter helfen könnten. Danke!

 

René Hézser

Reply

Hallo Thomas,
In den “Websiteauflistungsfeatures” wird das Webpart aktiviert. Nicht in den “Websitefeatures”.
Wenn du weiterhin Problem hast, deaktiviere bitte alle Features und deinstalliere die solution über die Zentraladministration.
Danach bitte neu installieren, und jeden Schritt dokumentieren. Die Doku bitte per Mail an mich.

Gruß
René

 

venkat

Reply

I liked the webpart.. Is it possible to upload the files too? when you click on image, can it display the preview??

any guidance will be greatly appreciated..

 

René Hézser

Reply

Hi,
not yet. This is one of the TODOs.
I don’t think a preview will be implemented.

René

 

Thomas

Reply

Vielen Dank René. Jetzt kann ich es auswählen. Super!!!!

 

Juan

Reply

where do I get the setup program setup program to install your solution, also my network is not in kerberos, I know where to activate this on MOSS, but do I have to have also my network under kerberos??

 

René Hézser

Reply

Hi Juan,
http://www.hezser.de/Downloads/RH.FileserverAccess.wsp
If you SharePoint is running with kerberos, you should be fine.

René

 

Alex

Reply

Hi René,

I’m trying to use your web part to point to shares on a Samba server, but it either tells me “The specified Path does not exist!” or “Please Wait…” is stuck in a loop. Any ideas?

I’m using IIS 7 on Win2008, WSS 3 freshly deployed, Kerberos option enabled, Application Pool running as Network Service.

Thanks!

… Alex …

 

JACK

Reply

Hi,Rene

I have installed and deployed the solution successfully in the Central Admin site. When I try to activate site collection feature in my site collection. After click the activate button, it turns to a page and showed something like “before activate this feature, you must activate one or more features”. I am using Chinese tranditional version. Do you know how to solve it?
thanks for your help.

 

René Hézser

Reply

Hi Jack,
[Quote]
After you have added the solution via stsadm, you have to activate the feature on your webapplication and site collection.
[/Quote]

 

JACK

Reply

Hi, Rene

thanks for your help. After activation in the web application features. I have successfully added the web part in the page. another question is that someone who uses the machine not joining the domain results in not seeing the content. the progress bar keeps running all the way.

 

Ray

Reply

When I Try to Activate this in my Web Application Features I get the following Error.

A web configuration modification operation is already running. at Microsoft.SharePoint.Administration.SPWebService.ApplyWebConfigModifications()
at RH.WebConfigModification.Save()
at RH.AjaxSupport.AddAjaxSupport(SPWebApplication webApplication)
at RH.FileserverAccessActivation.FileserverAccessHandler(Boolean add, SPFeatureReceiverProperties properties)
at RH.FileserverAccessActivation.FeatureActivated(SPFeatureReceiverProperties properties)
at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
at Microsoft.SharePoint.SPAdminFeatureCollection.Add(Guid featid, SPFeaturePropertyCollection props, Boolean fForce)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId)
at Microsoft.SharePoint.WebControls.FeatureActivator.BtnActivateFeature_Click(Object objSender, EventArgs evtargs)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

Wolfgang

Reply

Hallo,

I have successfully installed and deployed the module. After configuring the path I always get the information path not existing.
Is this tool not supporting unvisible shareings like \servernamepath$ ?
I want to have access for specials files on our fileserver wich is of course different to the shaerpointserver.

Thanks for a short answer,
reagrds
Wolfgang

 

René Hézser

Reply

Hi Wolfgang,
please make sure you have configured your SharePoint to use Kerberos.

René

 

Bjorn

Reply

Hallo,

nachdem ich FileserverAccess soweit installiert und aktiviert habe, erscheint folgende FM:

Serverfehler in der Anwendung /.
——————————————————————————–

Laufzeitfehler
Beschreibung: Anwendungsfehler auf dem Server. Aufgrund der aktuellen benutzerdefinierten Fehlereinstellungen für diese Anwendung können die Details des Anwendungsfehlers (aus Sicherheitsgründen) nicht remote angezeigt werden. Sie können jedoch von Browsern angezeigt werden, die auf dem lokalen Server ausgeführt werden.

Details: Sie können die Details dieser Fehlermeldung auf dem lokalen Computer anzeigen, indem Sie ein -Tag in der Konfigurationsdatei web.config erstellen, die sich im Stammverzeichnis der aktuellen Webanwendung befindet. Das mode-Attribut dieses -Tags sollte dann auf “Off” festgelegt werden.

Hinweise: Die aktuelle Seite kann durch eine benutzerdefinierte Fehlerseite ersetzt werden, indem Sie das defaultRedirect-Attribut des -Konfigurationstags dieser Anwendung so setzen, das es auf einen benutzerdefinierten Fehlerseiten-URL zeigt.

Die Zentraladmin geht und ich konnte das Webpart auch wieder entfernen, der Fehler beim aufrufen der Website allerdings bleibt.

Könnt iht mir weiterhelfen?

Vielen Dank und Gruß
Bjorn

 

René Hézser

Reply

Hallo Björn,
in der Fehlermeldung steht was zu tun ist.
Entweder vom Server aus versuchen, oder den Error Mode umstellen.
Alternativ hilft auch meist ein Blick ins Eventlog des Servers.

René

 

Wanxin

Reply

Hello, Rene

I am trying to deploy your solution to my WSS3.0 SharePoint site. I am facing two issues and would like to ask your idea:

1.Could you tell me if your web part has any file size limitation when we use it to download file from file server (in my case, it’s just a local drive on my sharepoint server)? I installed it on my DEV environment and zip files large than about 200MB, when I click it, instead of getting the open/save window, I got the ‘The file does not exist’ message. File under 200MB is fine with downloading. Any idea?

2. Even in my case, DEV environment has size limitation, at least it works. So I process your solution and deploy it to TEST environment which cause the web.config errors. The situation is as below:
a)I can use stsadm to add solution successfully.
b)I can go to central admin to deploy the solution to my sharepoint portal successfully.
c)After then,i use manage web application to active your web part. But after i active the web part in central admin, I couldn’t access my root sharepoint portal anymore. It gives the web.config error as below:

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a tag within a “web.config” configuration file located in the root directory of the current web application. This tag should then have its “mode” attribute set to “RemoteOnly”. To enable the details to be viewable on remote machines, please set “mode” to “Off”.

Even I did what it asked to do, still couldn’t access the root sharepoint portal.

Any suggestion?

 

Wanxin

Reply

Rene,

Just one more update for second issue I reported a couple of hours earlier….I finally went through the most of errors in web.config after I active your web part and reached the error as below:

Server Error in ‘/’ Application.
——————————————————————————–

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly ‘System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 139:
Line 140:
Line 141:
Line 142:
Line 143:

Source File: C:InetpubwwwrootwssVirtualDirectories80web.config Line: 141

Assembly Load Trace: The following information can be helpful to determine why the assembly ‘System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

The error mentioned on line 141:
Line 141:
doesn’t exist in the web.config before I install your webpart…so I assume it’s something your web part brought?

Please advise…

Thanks,
Wanxin

 

René Hézser

Reply

Hi Wanxin,
please install the .NET framework 3.5 SP1 on all of your SharePoint servers. Then the error will not occure.

René

 

Wanxin

Reply

Rene,

Thanks for the instruction. I did install it successfully. But still have a couple of questions need to ask you before I can put it into for real.

I replied the email you sent to me yesterday with my questions there….can you please read the email when you have time and give me a reply?
If you didn’t get the email I sent with questions, please let me know and I will email you again or post my questions over this blog.

Really appreciate all of your help!

Thanks,
Wanxin

 

René Hézser

Reply

Hi Wanxin,
I think all your questions have been answered in my email.

René

 

Waxnin

Reply

Thanks, Rene. I got your email and I am all set now.
Really appreciate all of your help and thanks again!

Wanxin

 

Riki

Reply

Hi Rene,

I have a problem with this FileserverAccess webpart.
when I enter the “path to directory on fileserver”
and click ok it’s stuck on “please wait”…
can you tell me how to fix it?

Thanks,
Riki.

 

Wanxin

Reply

Sorry to bother you again, Rene. But it has problems with downloading files from Internet in my case. I sent the email to you with screenshots and details. Could you please review and let me know if you have any idea when you have time?

Thanks again,
Wanxin

 

René Hézser

Reply

Hi Riki,
are you using a remote path? In that case you need Kerberos.
Try a local path such as c:temp to see if the Webpart works.

René

 

Andrea

Reply

Hi René,

it is a nice tool that you’ve written. Thanks.

You mentioned that an upload is on the todo-list.
Would it mean: If one opens a file e.g. with your WebPart it would not be openend in a “Temporary Internet Files”-Folder but the Save-Location would be the same as the one I opened the file from?
Though I know this ain’t due to the rules of a check-in-check-out-process: is there any webpart that reproduces the filesystem-access in a way as it works within the Windows filesystem?

Thanks for any information on that.

Best regards, Andrea

 

René Hézser

Reply

Hi Andrea,
the upload will allow you to upload new documents. Not opening one, and saving it back to the original location.
René

 

Darren

Reply

Hi René
First off, I would like to say, well done on all your hard work in the creation of and supporting of this web part and the many other web parts you have provided the community.

Unfortunately, I’am having a problem with the File sever web part, which I hope you can assist with. I have .Net 3.5 SP1 installed. The Web App Feature and Site Collection feature activitated. I’ve added the web part to my page and have entered a local server location to it, but it just loops with please wait.

Perhaps indeed have I done something wrong, so I will try to provide as much information as I can:-

ServerName:ABC
Web Part Property path to directory on file server is set to F:TestFolder
Where F is on Server ABC and Testfolder is just a folder.

I have given the SharepointMainAccount (account that runs Sharepoint), Local Server Admins, Local Users, IWAM and IUSER accounts access to the folder, full rights. And completed with an IIS reset, but all to no avail.

The web part I believe is the latest one (but I may be wrong) downloaded from here 16th September 2009.

In addition I have unactivated and reactivated all features.

Any help or assistance you can proivde would be great.

Once again many thanks for the web parts and support you have/are providing.

Kind regards
Darren

 

Ralph

Reply

Hi René,

I’m having the same problem as Darren above. Even when I use the local file system as a “Path to directory on fileserver” I get a progress bar and please wait and then it just gets in a loop. Please help I’ve tried all I can think of and read on your site.

Thank You
Ralph

 

René Hézser

Reply

I am working on this issue.
A new version of the webpart will be released shortly.
The SharePoint logs will show you more information about the error.

René

 

uttam

Reply

this one is cool. I am looking for a sitecolumn that can be added in sharepoint list as a fileupload control through which i can upload the file to file server and save the link in sharepoint. Can it be happen

 

Mike

Reply

Ist es möglich dieses FileServer Webpart auch auf einer WSS 3.0 ohne SharePoint 2007 zu Nutzen?

Ich habe hier einen Windows 2003 Server mit WSS 3.0, Ich Versuche nun das FileServer Webpart zum laufen zu bringen.
Bis jetzt ohne erfolg.
Aktivieren kann ich es, aber es wird mir nicht angezeigt wenn ich das Webpart hinzufügen möchte.

Danke und Gruß

Mike

 

René Hézser

Reply

Hallo Mike,
WSS reicht. Du musst Features auf der Webanwendung, und auf der Webseitensammlung einschalten.

Gruß
René

 

Vince M

Reply

Hi Mike –

I installed your webpart on our SBS2008 server. I have the UNC path pointed to a share on a different server. I have kerberos enabled and I experience the following:

1. If I login via http://companyweb I can view the webpart just fine.

2. If I login remotely or even internally via https://remote.domain.com:987/ it does not work. When I click on the Modify Shared Web Part, it says that The specified Path does not exist!

Any help would be appreciated!

 

Domi

Reply

Hi Rene,

bei mir läuft dein Webpart aufm dem Server eigentlich ganz gut 🙂 ist auch super cool!

Allerdings wird nichts auf den Clients angezeigt… habe nur einen Rahmen.. keinen Inhalt…
wie gesagt.. auf dem Server funktioniert das allerdings einwandfrei!

Was mach ich falsch?

 

Domi

Reply

Hi Rene,

sorry dass ich jetzt nen doppelpost mache, aber ich hätte noch eine andere Frage… zudem, dass ich den webpart nur bedingt von den clients aus sehe, kann ich auch die files gar nicht runterladen! ich denke, ich mache noch irgendwas größeres falsch?!

 

René Hézser

Reply

Hi Vince,
it sounds like you internally access your farm with kerberos.
And if you come from the Internet, the authentication against another (file)server fails because kerberos does not work here.

René

 

René Hézser

Reply

Hi Domi,
auch das hört sich erst mal nach einem Kerberos/Authentifizierungsproblem an.

Gruß
René

 

Vince M

Reply

Hi Rene,

I am a little confused. I am trying to access the same file server both internally/externally using sharepoint. I thought the point of sharepoint was to access internal data from the outside as long as you login. Is there a way I can accomplish this?

 

Tobias

Reply

Hallo René,
gibt es auch irgendwo den Quellcode zu Deinem Webpart? Habe den Code weder hier noch auf der Codeplex-Seite gefunden…
Gruß
Tobias

 

Mattias

Reply

Hallo René,

wie kann ich das ULS-Logging für das WebPart ausschalten?

 

Daniel

Reply

Hi René,

i have the problem, that i configured the path to \……. and nathing is shown in the WebPart. If i use a local directory it works perfect.

Greatings
Daniel

 

sheldi

Reply

From Central Administration > Application Management > Manage Web Application Features, click on activate (Fileserver Access – Webapplication).

Error: A web configuration modification operation is already running

Enviornment: include 2 wfe servers, 1 index server, 1 query server. Also ajax is install on WFE server.

 

Willy

Reply

@sheldi i had the same error. try activating the feature with stsadm and the option -force.

Since installing the FileServerAccess WebPart though there is a problem with another plugin of yours. The Upload and Inser one. For every list containing this column it’s not possible to create new entries. I tried retracting and reinstalling the solution but it’s not working. I get unexpected error when trying to create new entries on lists with the UploadAndInsertField column enabled. Any ideas on that? Regards Willy

 

tom daly

Reply

I’m having an issue turning on the feature in the web application.

A web configuration modification operation is already running.

Pretty sure not a problem with environment, I recylced Timer and Adminsration services, then rebooted.

Can I just edit the web.config manually? is this all that this feature does.

 

Dave C

Reply

Hi,

When activating I get the error “A web configuration modification operation is already running”

So I activated using the -force switch and installed AJAX and updated the web.config manually.

Everything looks ok however when I open a file from my share a simple text file containing the text “hello here is some content” it contains the following!

“hello here is some contentError fetching the file for Download:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)Error:
System.Threading.ThreadAbortException: Thread was being aborted.
at RH.FileserverAccessHandler.DownloadFile(String path, String fileName, HttpContext context)
at RH.FileserverAccessHandler.ProcessRequest(HttpContext context)”

No error is displayed by the browser the error is appended onto the file!!

Cheers Dave

 

Pablo

Reply

Hello guys.
I installed the webpart in a Spanish version.
The instalation was correct (after the instalation of Framework 3.5) but I don’t see the webpart in the list.
I must do something more?
The webpart work in a Spanish version?

Sorry for my english, I’m from Argentina.

 

MrJstin

Reply

Hello!

Have you tried this out on SharePoint 2010 yet? I ran stsadm -o addsolution -filename RH.serverAccess.wsp but cannot figure out how to add the solution from there as there is no longer an “Operations” section in Central Admin.

 

MrJstin

Reply

I was able to get the web part to show up successfully after some digging.

When configured for either a \remoteshare or a c:localshare, I get the following:

The current session is null. Please contact your Administrator.

My web.config is a little different in this version but is as follows:

Thank you in advance.

 

Sascha

Reply

Hallo und vielen Dank für das tolle Webpart!

Mittlerweile habe ich es hinbekommen, dass es als root-Verzeichnis läuft. Leider möchte ich es für einen separaten Fileserver nutzen. Und dieses funktioniert leidernoch nicht. Ich habe auch schon WSS 3.0 in Kerberos unterwandelt. Grundlage bildete das Tutorial, jedoch benutze ich Netzwerkdienst als Anwendunspool, sodass das Umwandeln leichter war. Auch den Authorizierungsprovider habe ich in der Zentralverwaltung umgestellt.

Wie gesagt, wenn ich \192.168.115.102temp als Pfad angebe (ist ein freigegebenes Root-Verzeichnis) funktioniert es wunderbar. Ändere ich den Pfad auf remote \192.168.115.105temp (freigegebener Ordner) erhalte ich nur die Überschrift das Wepparts z.B. FileServerAccess.

Leider weiß nicht, woran es noch liegen kann. In der Log-Datei stehen für beide Fälle nur: RH.FilServerAcces.dll (0x03CC).

Hast Du bitte noch eine Idee?

Vielen Dank

Gruß Sascha

 

Robert

Reply

Hallo,
habe versucht das Webpart zu Installieren ich bin bisher soweit gekommen das ich das Feature auf der Seite Websiteauflistungsfeatures sehen kann wenn ich es allerdings aktivieren möchte bekomme ich eine Meldung: Erforderliche Features Fileserver Access – Webapplication.
Ich arbeite auf einem Server 2008 auf dem WSS 3.0 und ein MSSQL2005 Installiert ist.
Was muss ich tun um das Webpart nutzen zu können?
Danke im vorraus

Robert

 

Robert

Reply

Hallo,
ich würde das Webpart wircklich gerne nutzen leider habe ich es bisher nicht geschaft es so zu Installieren das es funktioniert.
Meine Umgebung ist ein Windows Server 2008 mit WSS 3.0 und einer MSSQL 2005 Datenbank.
Meine bisherige vorgehensweise war folgende:
1.Kerberos Authentifizierung nach Anleitung aktiviert.
2.Sessionstate aktiviert.

3.Donwload RH.FileserverAccess.wsp, kopiert ins BIN Verzeichniss der WSS.
4.Installieren mit:
stsadm -addsolution -filename RH.FileserverAccess.wsp

5.aktivieren mit:

stsadm -deploysolution -name RH.FileserverAccess.wsp -immediate -allowgacdeployment -url http://dev-shp

6.In der Zentralverwaltung das Feature Fileserver Access – Webanwendung aktiviert

7.In der Websiteeinstellung das Feature Fileserver Access aktiviert.

8.Konnte das Webpart auf einer Webpartseite hinzufügen und Konfigurieren.
Nach dem Konfigurieren kommt ein laufbalken als wenn das Verzeichniss durchsucht wird.
Danach wird aber nichts angezeigt.

Dieses Webpart ist so ziehmlich genau das was wir für unser Intranet noch brauchen, schön währe wenn es eine Upload Funktion geben würde über die man Files direkt auf den Fileserver speichern kann.

Wenn jemand eine Komerzielle Lösung kennt bin ich für jeden Hinweiss dankbar ich habe noch keine dieser Art gefunden.

mit freundlichen Grüßen

Robert

 

René Hézser

Reply

Moin Robert,
hast du .NET 3.5 SP1 auf deinem Server installiert?
Ins bin Verzeichnis kommt die wsp nicht. Für die Installation ist es egal wo sie liegt. Deshalb lösche sie mal aus dem bin Verzeichnis raus.

Eine Upload Funktionalität ist in der nächsten Version enthalten. Mir fehlt momentan nur die Zeit alles für ein Release zusammenzupacken.

Gruß
René

 

Robert

Reply

Hallo,

das .NET 3.5 SP1 ist Installiert, leider wird das Verzeichniss nicht angezeigt sondern nur die Meldung das der Pfad nicht existiert. Wenn ich aber ein Seiten-Viewer-Webpart in die Seite einfüge kann ich mir das Verzeichniss anzeigen lassen.

Eine Funktion zum Upload wäre für uns Perfekt um den Zugriff auf den Fileserver komplett zu ersetzten.

Danke und Gruß

Robert

 

Robert

Reply

Hallo,

habe es geschaft das Webpart zum laufen zu bringen.
Lösung bei mir war das fehlende .NET Framework 3.5 auf dem Client jetzt gehts.

Danke Gruß Robert

 

René Hézser

Reply

Hi Robert,
danke für das Feedback.

René

 

Jörg Schurig

Reply

Hallo,
ich würde das Webpart gerne nutzen, bekomme es aber nicht zum laufen.
1.Kerberos Authentifizierung nach Anleitung aktiviert ???
2.Sessionstate aktiviert???
Wie mache ich das?

mit freundlichen Grüßen
Jörg Schurig

 

Julian

Reply

Hi Rene,

Please excuse what might be a simple question but we are relatively new to sharepoint.

We are trying to use this webpart on our Sharepoint server and although we thought that we had .Net 3.5 installed it turns out that we may not as we have lost access to our sharepoint site after running stsadm -o addsolution command. When we try to acceess the site we get page not found which we suspect is the same as people have described here in your blog.

Rookie mistake by us I’m afraid but please can you tell us whether it is easy to fix this and get our site back up and running again.

If you are able to help please can you describe step by step instructions as we will not intuitively know how to fill in any gaps.

Thanks very much in advance for any help.

Julian

 

Geo

Reply

Hi Rene,

i need your help, i installed the fileserver webpart on my sharepoint and i have a succefully installation, i can see the file server through the webpart on my server but when i try to browse the portal from any desktop the web part doesn’t work and nothing appear, you have any idea,

thanks
Geo

 

James Cates

Reply

I can’t get the web part to take any sort of path either. UNC, drive letter, neither works. Any ideas?

 

LexiB

Reply

Hello and first of all a very warm thank you for this solution.
As a technical noob to WSS i found out how to install (yes i didn´t know about that “complexity” about sharepoint) and deploy the solution as well as making it work. for those noobs like me here are the stsdm commands. remember to make stsdm.exe available by setting the correct path to the path environment variable. The command is executed from the path where the wsp package is stored:
stsadm.exe -o addsolution -filename RH.FileserverAccess.w
sp
stsadm.exe -o deploysolution -name RH.FileserverAccess.ws
p -local -force -allowGacDeployment -url http://yourserver:yourportnumber
Additionally i had to modify the WSS´s web.config file as described (de-comment the SessionState part and set it to “enabled”).
cheers, LX.

 

uschmi

Reply

Habe das Teil mal auf SP2010 Foundation installiert. Dort erhalte ich folgenden Fehler, obwohl ich in der web.config den SessionState auf “true” geändert habe:

The current session is null. Please modify your web.config to enable the sessionState. (see http://www.hezser.de/blog/Lists/Beitraege/Post.aspx?ID=102)Der angegebene Pfad existiert nicht!

 

Horus

Reply

Hello,

I was wondering if the source code was available. I would like to implement in a support application with some changes.

Thanks!
Horus

 

jesbit

Reply

Rene, I have the same problem as Vince M. I have installed your webpart in a SBS2008 network. When I access the webpart locally using http://companyweb it comes up perfectly. But when I access it (locally) securely using https://remote.XXXX.com:987 the webpart shows the path as invalid (but the rest of the sharepoint site is fine). Was there any resolution to Vince’s issue?

Thanks
JB

 

Catalin

Reply

Hi Rene,

I want to congratulate you for this webpart. It works like a charm in WSS 3.0.
On SharePoint 2010 I’ve encountered a problem with blocked file type. The error came from the fact that the handler was not registered in section. Below is the modification required to make it work under SharePoint 2010:


FileServerAccess” path=”FileserverAccessHandler.ashx” verb=”*” type=”RH.FileserverAccessHandler, RH.FileserverAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c155a2f8a8432f00″ resourceType=”Unspecified” preCondition=”integratedMode” />

Keep up the good work!

 

Alexey

Reply

Sharepoint 2010 windows 2008 R2 and russian file name codepage cp1251… in download menu(((

example:

Анкета_для_понимания_партнёра_по_POS_и_ФР_и_общие.xls

Help please….

 

Anvar

Reply

Hi Rene,

Thank you for sharing this important webpart. I deployed it to web app. and site collection in MOSS 2007 without any problem.
when I enter the “path to directory on fileserver”
and click ok it’s stuck on “please wait …” . Thanks very much in advance for your help.
Thanks!
Anvar

 

Christoph

Reply

Hallo,

ich habe das Webpart nach Anleitung installiert, und der Verzeichnisbaaum wird auch angezeigt. Nur wenn ich auf eine Datei klicke kommt eine Seite mit der Fehlermeldung “Die Datei, die Sie zu speichern oder wiederherstellen versuchen, wurde von den Webserveradministratoren auf dieser Website gesperrt. ”
Hat jemand eine Idee, was da los sein könnte?
Danke und Gruß
Christoph

 

harmless

Reply

Hi, how do i get this working on sharepoint 2010, i have uploaded it but am unable to activate it?

ive read up a few about adding handlers but im not sure where that is or wht i need to do!

 

King-Moe

Reply

Hi René,
this webpart sounds great, but I’m not able to find it when I edit the page and try to select a webpart. It’s not in the list… What’s wrong?
I use Sharepoint 2007, after deployment on my WFE and activating the Feature, … what else do I have to do?

Thanks 4 help, René L.

 

Brad

Reply

Thanks for the webpart Rene!
I installed it and did the Session changes as in your post modifying the sessionState.
I have tried both a local folder and an external file share but It continously says please wait on the webpart and the sessionstate error is still showing – I have reset IIS and rebooted the server several times as well as deactivating and reactivating it with a reboot in between. Any ideas?
Thanks again!

 

Thomas Johannes

Reply

Hallo,

Super Tool, aber wie kann man die Ordnerstruktur alphabetisch sortieren?

 

casino spellen

Reply

thanks!
This info halped me greatly!

 

Paul Swain

Reply

I have downloaded the file and can not see an setup.exe it is just a wsp file. How do I install this?

Many thanks

Paul Swain

 

Reynaldo

Reply

Hello René,
I just install your web part and works great. I have few questions about this web part.
First – My fileserver have almost 1Tb and when I try to access this server with your web part and I think he took a long time to view the files, and sometimes the web part crash needs to be restarted. Do you know anything about this?
Secound – There is anyway to upload files to fileserver using your web part?

Thnx so much.
Best regards

 

Harald

Reply

Hallo René,
Ich bin derzeit damit beauftragt eine Lösung zu finden, um über Sharepoint Foundation 2010 auf einen FileServer zuzugereifen.
Nach Allem, was ich hier gelesen habe scheint dein Weppart genau das richtige zu sein, jedoch kriege ich es unter SPF einfach nicht zum laufen.
Ich sehe auf der Seite nur den Ladebalken mit der Meldung “Bitte warten…” und die Fehlermeldung “The current session is null. Please contact your Administrator.”

Ich habe bereits die WebConfig, wie von MrJustin weiter oben erklärt geändert, jedoch verändert sich bei mir dadurch überhaupt nichts.

Ich wäre froh, wenn mir jemand erklären könnte, wie ich das Weppart unter SPF zum laufen bringen kann, wenn das überhaupt möglich ist, oder mir zumindest auch eine alternative vorschlagen könnte.

Mit Freundlichen Grüßen,
Harald

 

Joachim

Reply

…ich schaffs beim foundation 2010 leider auch nicht….der komentar von Catalin hilft mir leider auch nicht so richtig:

The error came from the fact that the handler was not registered in section. Below is the modification required to make it work under SharePoint 2010:


FileServerAccess” path=”FileserverAccessHandler.ashx” verb=”*” type=”RH.FileserverAccessHandler, RH.FileserverAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c155a2f8a8432f00″ resourceType=”Unspecified” preCondition=”integratedMode” />

 

Harald

Reply

Habe jetzt zumindest SessionState zum laufen bekommen. Ich nutze Momentan anstatt SPF den Microsoft SearchServer Express (SPF integriert + bessere Suche) und konnte dort das cmdlet “Enable-SPSessionStateService” nutzen (das ist aber scheinbar unter standart SPF 2010 nicht verfügbar). SOllte das nicht funktionieren kann ich auch noch den Folgenden Blogeintrag empfehlen: http://netwoobie.com/blog/?p=22

Jetzt stehe ich aber leider vor dem nächsten Problem, ich kann weder auf Shares anderer Server, noch auf lokale Shares zugreifen. Bekomme nur die Fehlermeldung, dass der angegebene Pfad nicht existiert.
Hat dazu jemand evtl eine Idee?

 

Joachim

Reply

now the webpart is running on sharepoint foundation, but it don`t work with unc path or other file servers…only with the local path c:

??? thanks

 

Jesus33

Reply

hello, I can not see the pdf posted on this page.

—————————-

Hola, no puedo ver el pdf publicado en esta pagina.

 

Anu

Reply

Hey Rene,

Congratulations on yo successfull accomplishment.
I am facing the same problem – ” Even when I use the local file system as a “Path to directory on fileserver” I get a progress bar and please wait and then it just gets in a loop. Please help I’ve tried all I can think of and read on your site.”

Do you have any latest updates with this? Please help me out

 

Ernie

Reply

Hi Rene,
I have installed your web part and ran into a error.
Which is.
Error generating Object from path ‘file://net-file-09/priavete/eanderson’: System.ArgumentException: URI formats are not supported. at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.DirectoryInfo..ctor(String path) at RH.FileServerData..ctor(String path, Boolean getSubDirectories, String rootPath)Error generating Object from path ‘file://net-file-09/priavete/eanderson’: System.ArgumentException: URI formats are not supported. at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.DirectoryInfo..ctor(String path) at RH.FileServerData..ctor(String path, Boolean getSubDirectories, String rootPath)
Sorry, but at this point I’m not sure where to go from here.
Thanks
Ernie

 

J. Rubinstein

Reply

First of all thank you for producing an excellent web part, I’m particularly impressed with the fact that its security trimmed. However I’m hoping you can help with this. Your web part works really well within our domain but externally I’m getting access denied. Kerberos is set for both intranet and default zones. Could you suggest where I should look to allow me to go forwards?

thanks

Jay

 

Ernie

Reply

Hi Rene;
First off I do like your web part and I’m looking forword to using it. Great job.
I have upgraded to SharePoint 2010 Foundation and have installed your webpart, The problem that I have ran into is this. It works great inside my network as long as I do not have the .XXX on the end of my http://website. If I log in from the out side with http://website.XXX I can not get SharefileAccess to work all I’m getting is (the soecified path does not exist!) Is there a way that you can give me a hand in getting this last step fix?
Thank you
Ernie

 

victor

Reply

WSS 3.0 ERROR

Fileserver Access – Webapplication
This feature modifies the web.config to support the Fileserver Access Webpart

?????

 

George

Reply

We are looking for a web part that can access file shares from inside of SharePoint. I sounds like you application is spot on. Are you selling it commercially? We would need it for SharePoint 2013.

 

Leave a Reply