Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing Network share from within sharepoint event handler

6 views
Skip to first unread message

malhar

unread,
Jul 1, 2009, 9:39:26 PM7/1/09
to
Hi,

I have implemented am event handler that fires on item added and uses
the path entered by the user to retrieve number of files at that
path.

Now the problem is: When I give a local C: path it works perfectly
fine, but when I give a network share path, it says Unauthorized
access exception, I give the UNC path, I also tried impersonation with
my own credentials but it is not working.

Please help me.

Thanks

John Timney (MVP)

unread,
Jul 2, 2009, 8:13:47 AM7/2/09
to
This is an IIS issue, not a sharepoint issue. There is an old explanation
of theproblem here.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;810572

--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"malhar" <malhar...@gmail.com> wrote in message
news:2e34ce1a-9e1a-49d0...@a36g2000yqc.googlegroups.com...

malhar

unread,
Jul 10, 2009, 10:33:44 AM7/10/09
to
On Jul 2, 8:13 am, "John Timney \(MVP\)"

<xyz_j...@timney.eclipse.co.uk> wrote:
> This is an IIS issue, not a sharepoint issue.  There is an old explanation
> of theproblem here.
>
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;810572
>
> --
> Regards
>
> John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
>
> "malhar" <malhar.gu...@gmail.com> wrote in message

>
> news:2e34ce1a-9e1a-49d0...@a36g2000yqc.googlegroups.com...
>
> > Hi,
>
> > I have implemented am event handler that fires on item added and uses
> > the path entered by the user to retrieve number of files at that
> > path.
>
> > Now the problem is: When I give a local C: path it works perfectly
> > fine, but when I give a network share path, it says Unauthorized
> > access exception, I give the UNC path, I also tried impersonation with
> > my own credentials but it is not working.
>
> > Please help me.
>
> > Thanks


Hello,

Thanks for your response. My issue is resolved now. (if someone in the
future would like to see my solution you can visit: http://www.umich.edu/~malhar)

I have a new issue now :-(

I would like to ask, that does an eventhandler bound to a particular
list effect that list for all users in sharepoint or the user who
would be logged in.

Let me be more clear:

I have created a list and an event handler and bound them together
using code. The eventhandler dll is in GAC. Now a user logs in and
adds that list to his site and does some actions which triggers the
event handler and event handler does its job.

Now another user comes along and adds this list to his site and
performs some actions which triggers the event handler and the event
handler does its job.

The job done by event handler would be different in both the lists -
am I right, I mean changes done by eventhandler to one list would not
affect the other users list right?

Thanks

0 new messages