InterwebsGuy Posted September 27, 2011 Posted September 27, 2011 Hi everyone, We have just installed the latest version of hap. All seems to be running well until we attempt to download a file from one of the mapped drives or upload a file to one of the drives. Firstly, we get the following server exception on file download: Server Error in '/HAP' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.routing.Downloader.ProcessRequest(HttpContext context) +97 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +624 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +269 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237 We can browse mapped drives/folders fine, see image thumbnails etc. I can create new folders fine. I cannot however upload to these mapped drives.. the Silverlight upload sits there and does nothing other than saying it is 'Checking'. If you try to use the basic HTML uploader we get the following server exception: Server Error in '/HAP' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.UploadH.Page_Load(Object sender, EventArgs e) +108 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237 Any help would be greatly appreciated. Like I say, we are using the latest version, on Server 2008 IIS 7.5. TIA
InterwebsGuy Posted September 28, 2011 Author Posted September 28, 2011 Morning, We are still suffering this error. We managed to get the extended version working, incidentally I didn't realise it required SSL which I hadn't turned on yet, which I have now. We cannot download a file using HAP however - using basic or extended modes. We just get the above error in the OP. I still cannot upload a file using HAP. I have attached these screenshots below to show you what I mean. It seems to work fine until you attempt to download a file. We have HAP running on one of our member Server 2008 servers, so I shouldn't think Interactive Logins should be causing this - it looks more like a code issue? Any help would be greatly appreciated. Adam
InterwebsGuy Posted September 29, 2011 Author Posted September 29, 2011 I have installed HAP on a second member server this afternoon - also running Server 2008, and we still suffer the above problem. Please.. does anyone have any ideas? It is so close to being usable for us but we just can't get that little but important bit of functionality to work. It would be great if Nick or anyone who has worked on developing HAP could perhaps confirm that this is an application code/syntax error and not a server configuration error or vice versa. I would really like to get HAP working, it looks great! Thanks Adam
nickbro Posted September 30, 2011 Posted September 30, 2011 I've looked at the code reference, and it's pointing to an empty line of code. So that doesn't make sense. Can you try another browser and see if the problem persists
InterwebsGuy Posted September 30, 2011 Author Posted September 30, 2011 Hi Nick Thanks for your response, I really appreciate you taking the time to try help me out! I have tried it in Firefox, Chrome and IE9 - they all do the same. Thanks
InterwebsGuy Posted October 4, 2011 Author Posted October 4, 2011 Nick, I have installed an older build (7.1) this morning and I still get this error - again in all browsers. If you say this error is pointing to a blank line in the source I guess it's a little confusing. Do you suppose a newer build might fix it?
InterwebsGuy Posted October 10, 2011 Author Posted October 10, 2011 Hi Nick I have installed your latest version this morning and I STILL get the same error. I am assuming you have absolutely no idea what is causing this, on two different member servers, in all browsers? I am pulling my hair out with this. Adam
InterwebsGuy Posted October 10, 2011 Author Posted October 10, 2011 Also, when trying to use the simple html uploader we are getting this error - I see that it points to different lines? Server Error in '/HAP' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.UploadH.Page_Load(Object sender, EventArgs e) +108 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
nickbro Posted October 10, 2011 Posted October 10, 2011 The whole MSCB is due to be replaced in v8, although at this point it may be coming sooner
nickbro Posted October 12, 2011 Posted October 12, 2011 What's the URL of the file it's trying to download? Check the drives, making sure the drive letter is in UPPERCASE!
InterwebsGuy Posted October 13, 2011 Author Posted October 13, 2011 Hi Nick The URL's are like this: https://domain.com/HAP/Download/W/CD_edited.jpg So the drive letters are in uppercase if you are meaning the ones in the URL? If we are unable to get it to work, I will eagerly await the replacement MSCB in the future build in hope that it might solve my problems! Adam
nickbro Posted October 13, 2011 Posted October 13, 2011 Are the drive letters in uppercase in the hapConfig.xml file?
InterwebsGuy Posted October 14, 2011 Author Posted October 14, 2011 Hi Nick Yes - they are. \\dc1\studentareas\%username%\My Documents \\dc1\staffareas\%username%\My Documents \\dc1\sharedarea
InterwebsGuy Posted October 17, 2011 Author Posted October 17, 2011 Hi Nick I have installed 7.5 and had a look at your new preview of my files. Again in a similar way to above, we can see all drives and files but get the exact same error when we try to access a file. Adam
nickbro Posted October 17, 2011 Posted October 17, 2011 Can you try the attached hap.web.dll for me and see if it fixes the problem,, if it doesn't please report the error message you get
InterwebsGuy Posted October 18, 2011 Author Posted October 18, 2011 (edited) Hi Nick, Thanks for this - some good news, with this DLL we can now download files - from both the old MSCB and the preview one in 7.5. However using basic view in the old MSCB, we cannot upload files by either using the HTML uploader or the Silverlight uploader. We get the error below. When we use the Extended version, uploads are fine. Edit: Actually, seems they are not when you try to upload multiple files - it certainly worked with a single jpg. Server Error in '/HAP' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.UploadH.Page_Load(Object sender, EventArgs e) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\UploadH.aspx.cs:76 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24 System.Web.UI.Control.LoadRecursive() +70 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237 Edited October 18, 2011 by InterwebsGuy
nickbro Posted October 18, 2011 Posted October 18, 2011 (edited) I think I've figured out why you are getting this error. You don't seem to use Home Directories as in setting H: to \\uncpath\user\homedir in the user properties. Can you try the attached dll see if you can now upload using the HTML uploader? Edited October 18, 2011 by nickbro
InterwebsGuy Posted October 18, 2011 Author Posted October 18, 2011 (edited) Hi Nick, I think I've figured out why you are getting this error. You don't seem to use Home Directories as in setting H: to \\uncpath\user\homedir in the user properties. Can you try the attached dll see if you can now upload using the HTML uploader? Correct, we don't use the Home Directories setting (though I am not sure why!). More good news, the basic HTML uploader now works. The Silverlight one is still a bit icky, but I guess I won't worry about that as it is being deprecated soon? We really appreciate all your help. Adam Edited October 18, 2011 by InterwebsGuy
nickbro Posted October 18, 2011 Posted October 18, 2011 Good to hear that it is now working, I'll have an update release v7.6 this weekend which will formalize the fix 1
InterwebsGuy Posted October 18, 2011 Author Posted October 18, 2011 Good to hear that it is now working, I'll have an update release v7.6 this weekend which will formalize the fix Perfecto - like I said before, I can't begin to explain how much we appreciate it!
InterwebsGuy Posted October 19, 2011 Author Posted October 19, 2011 Hi Nick I was playing with this last night, and when uploading many bigish files I received a Maximum Request Length Exceeded message. I thought, OK cool I have seen this before as I know IIS limits POST or file uploads to about 30MB. So I added the following as I have before to the web.config file to increase this limit. It doesn't seem to make any difference though, as I still get the same error on large file uploads. Is this limit something that is hard coded into HAP+ or needs changing some place else, or should this have worked in Request Filtering? Adam Server Error in '/HAP' Application. Maximum request length exceeded. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Maximum request length exceeded. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Maximum request length exceeded.] System.Web.HttpRequest.GetEntireRawContent() +11472119 System.Web.HttpRequest.GetMultipartContent() +232 System.Web.HttpRequest.FillInFormCollection() +345 System.Web.HttpRequest.get_Form() +157 System.Web.HttpRequest.get_HasForm() +11474132 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141 System.Web.UI.Page.DeterminePostBackMode() +100 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +259 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
nickbro Posted October 19, 2011 Posted October 19, 2011 See PRB: Cannot Upload Large Files When You Use the HtmlInputFile Server Control 8192 = 8mb 1
InterwebsGuy Posted October 19, 2011 Author Posted October 19, 2011 See PRB: Cannot Upload Large Files When You Use the HtmlInputFile Server Control 8192 = 8mb Cheers - knew I should have Googled it!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now