Pages

Showing posts with label HTMLInputFile - Error Returns NULL. Show all posts
Showing posts with label HTMLInputFile - Error Returns NULL. Show all posts

Wednesday, September 15, 2010

AJAX and HTMLInputFile - Patch Found

Hello Friends

I want to let you know one result that I found during my development work may be it saves someone's hours and days work.

I was trying to integrate write a webpart where HTMLInputFile control was inside AJAX Update Panel.

But when I was trying to access file which I have uploaded by HTMLInputFile , It always returns "NULL" as HTMLInputFile.PostedFile.

For try,when I deleted AJAX UpdatePanel and run it works fine. So that is bug/error/patch that we can not use HTMLInputFile under AJAX Update Panel.

Disha Shah

Friday, November 13, 2009

Double Hop Problem in SharePoint

Hello Friends,

I have faced problem when I built a web part which takes a main file and from that file I need to access all files of respective directory by directory.getfiles method and every time I got error “Could not find a part of this path (path)” .

I tried so many other solutions like I used windows Identity but didn’t get success. It seems that if SharePoint web application hosts on another server and if we try to access file from another local system then it’s not working.


At the last I have found out that it’s related to Double Hop Problem.

According to Microsoft KB article:


The double-hop issue is when the ASPX page tries to use resources that are located on a server that is different from the IIS server.


I read about Double Hob problem into SharePoint, and solved by using Kerberos authentication.

I have followed this link to solved my problem:


http://technet.microsoft.com/en-us/library/cc263449.aspx


Enjoy Debugging!
Disha Shah