﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums » Old Forums » InstantForum.NET 4.x » Bug Reports  » InsertAttachments.aspx Error on PM 4.1.4</title><generator>InstantForum.NET 2010 RC2</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>InstantASP Community Forums</webMaster><lastBuildDate>Thu, 11 Mar 2010 22:50:16 GMT</lastBuildDate><ttl>20</ttl><item><title>InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>Getting a null reference exception on the initialize method of InsertAttachemnts.vb. It happens on the following method call...&lt;/P&gt;&lt;P&gt; InstantASP.InstantForum.Security.Handler.HasPermission(CurrentContext.CurrentRequest.Task, _&lt;/P&gt;&lt;P&gt;CurrentContext.CurrentPermissions, CurrentContext.CurrentForum.Moderators.SelectModerator( _&lt;/P&gt;&lt;P&gt;CurrentContext.CurrentUser.UserID), CurrentContext.CurrentForum)&lt;/P&gt;&lt;P&gt;It happens because in a pm there isn't a currentforum object. Therefore I modified the code to the following which resolved the issue:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;  CurrentContext.CurrentForum &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Is&lt;/FONT&gt;  &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt;  &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt; &lt;P&gt;  InstantASP.InstantForum.Security.Handler.HasPermission(CurrentContext.CurrentRequest.Task, _&lt;/P&gt;&lt;P&gt;  CurrentContext.CurrentPermissions, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt; , &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Nothing&lt;/FONT&gt; )&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Else&lt;/P&gt;&lt;/FONT&gt; &lt;P&gt;  InstantASP.InstantForum.Security.Handler.HasPermission(CurrentContext.CurrentRequest.Task, _&lt;/P&gt;&lt;P&gt;  CurrentContext.CurrentPermissions, CurrentContext.CurrentForum.Moderators.SelectModerator( _&lt;/P&gt;&lt;P&gt;  CurrentContext.CurrentUser.UserID), CurrentContext.CurrentForum)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;  &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Sun, 21 Jan 2007 13:06:13 GMT</pubDate><dc:creator>mscales</dc:creator></item><item><title>RE: InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>k, I downlaoded the latest 414 to make sure and resolved the error.&lt;/P&gt;&lt;P&gt;It now sends the attachement.  But when the pm is received, opened, clicked on the attachement...a new browser opens and redirect to the forum homepage. Tried attaching both gif and zip at two different PMs.    Help.</description><pubDate>Sun, 21 Jan 2007 13:06:13 GMT</pubDate><dc:creator>MartialWeb</dc:creator></item><item><title>RE: InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>was this resolved? I have the problem. help</description><pubDate>Fri, 19 Jan 2007 02:06:10 GMT</pubDate><dc:creator>MartialWeb</dc:creator></item><item><title>RE: InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>Any update on this - I now have found the same issue - I think ...</description><pubDate>Wed, 27 Sep 2006 06:21:57 GMT</pubDate><dc:creator>DavidMiles</dc:creator></item><item><title>RE: InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>Received a reply from Carlos Muniz regarding this issue.&lt;/P&gt;&lt;P&gt;They will be providing a new 4.1.4 installation file &lt;EM&gt;(to replace that posted September 5th 2006),&lt;/EM&gt; as well as a specific file fix for this issue as it would be affecting everyone's Edit Attachment when attempting to add attachments via Private Messages.</description><pubDate>Thu, 07 Sep 2006 16:23:55 GMT</pubDate><dc:creator>Joyce</dc:creator></item><item><title>RE: InsertAttachments.aspx Error on PM 4.1.4</title><link>http://community.instantasp.co.uk/FindPost0.aspx</link><description>&lt;STRONG&gt;This is a huge bug:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Myself and none of my forum users can use the Edit Attachments&lt;/P&gt;&lt;P&gt;Get the following error:&lt;/P&gt;&lt;P&gt;The application encountered an unexpected problem. &lt;BR&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Unexpected Problem Occurred! &lt;BR&gt;This error has been logged. If this problem persists please contact the web master. &lt;BR&gt;More Information... &lt;BR&gt;Detailed error information follows:&lt;/P&gt;&lt;P&gt;Date and Time:         9/7/2006 9:19:29 AM&lt;BR&gt;Machine Name:          AYANOVAFORUM&lt;BR&gt;Process User:          NT AUTHORITY\NETWORK SERVICE&lt;BR&gt;Remote User:           xxxxxxx&lt;BR&gt;Remote Address:        192.168.1.1&lt;BR&gt;Remote Host:           192.168.1.1&lt;BR&gt;URL:                   &lt;a target="_blank" href="http://forum.ayanova.com/InstantForum412/Skins/Classic/Dialogs/InsertAttachments.aspx?Hash=9d0b45d9-7d70-412f-b31a-2c0612d877c9&amp;amp;EditID=0&amp;amp;Task=20&amp;amp;MaximumLength=104857600"&gt;http://forum.ayanova.com/InstantForum412/Skins/Classic/Dialogs/InsertAttachments.aspx?Hash=9d0b45d9-7d70-412f-b31a-2c0612d877c9&amp;amp;EditID=0&amp;amp;Task=20&amp;amp;MaximumLength=104857600&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NET Runtime version:   1.1.4322.2300&lt;BR&gt;Application Domain:    /LM/W3SVC/1/Root/InstantForum412-1-128020905942137500&lt;BR&gt;Assembly Codebase:     c:/inetpub/wwwroot/InstantForum412/bin/InstantASP.InstantForum.UI.DLL&lt;BR&gt;Assembly Full Name:    InstantASP.InstantForum.UI, Version=4.1.4.0, Culture=neutral, PublicKeyToken=null&lt;BR&gt;Assembly Version:      4.1.4.0&lt;BR&gt;Assembly Build Date:   8/30/2006 9:32:40 AM&lt;/P&gt;&lt;P&gt;Exception Type:        System.NullReferenceException&lt;BR&gt;Exception Message:     Object reference not set to an instance of an object.&lt;BR&gt;Exception Source:      InstantASP.InstantForum.UI&lt;BR&gt;Exception Target Site: Initialize&lt;/P&gt;&lt;P&gt;---- Stack Trace ----&lt;BR&gt;   InstantASP.InstantForum.UI.WebControls.Dialogs.InsertAttachments.Initialize()&lt;BR&gt;       (unknown file): N 00115&lt;BR&gt;   InstantASP.InstantForum.UI.WebControls.Dialogs.InsertAttachments.Page_Load(sender As Object, e As EventArgs)&lt;BR&gt;       (unknown file): N 00012&lt;BR&gt;   System.Web.UI.Control.OnLoad(e As EventArgs)&lt;BR&gt;       (unknown file): N 00067&lt;BR&gt;   System.Web.UI.Control.LoadRecursive()&lt;BR&gt;       (unknown file): N 00035&lt;BR&gt;   System.Web.UI.Page.ProcessRequestMain()&lt;BR&gt;       (unknown file): N 00750&lt;/P&gt;&lt;P&gt;&lt;BR&gt;---- Collections ----&lt;/P&gt;&lt;P&gt;QueryString&lt;/P&gt;&lt;P&gt;    Hash                          9d0b45d9-7d70-412f-b31a-2c0612d877c9&lt;BR&gt;    EditID                        0&lt;BR&gt;    Task                          20&lt;BR&gt;    MaximumLength                 104857600&lt;/P&gt;&lt;P&gt;Cookies&lt;/P&gt;&lt;P&gt;    IF_LastVisit                  9%2f7%2f2006+9%3a18%3a45+AM&lt;BR&gt;    IF_ForumsRead90               90%7c9%2f6%2f2006+8%3a48%3a04+AM&lt;BR&gt;    IF_ForumsRead65               65%7c9%2f7%2f2006+9%3a09%3a29+AM&lt;BR&gt;    IF_ForumsRead100              100%7c9%2f6%2f2006+8%3a26%3a11+AM&lt;BR&gt;    IF_ForumsRead96               96%7c9%2f7%2f2006+8%3a01%3a32+AM&lt;BR&gt;    IF_ForumsRead86               86%7c9%2f6%2f2006+9%3a11%3a57+AM&lt;BR&gt;    IF_TopicsRead1237             1237%7c9%2f5%2f2006+4%3a22%3a35+PM&lt;BR&gt;    IF_ForumsRead91               91%7c9%2f6%2f2006+7%3a58%3a32+AM&lt;BR&gt;    IF_TopicsRead1990             1990%7c9%2f6%2f2006+7%3a58%3a32+AM&lt;BR&gt;    IF_TopicsRead1298             1298%7c9%2f6%2f2006+8%3a26%3a11+AM&lt;BR&gt;    IF_TopicsRead917              917%7c9%2f6%2f2006+8%3a48%3a04+AM&lt;BR&gt;    IF_ForumsRead101              101%7c9%2f6%2f2006+9%3a37%3a31+AM&lt;BR&gt;    IF_ForumsRead31               31%7c9%2f6%2f2006+4%3a05%3a31+PM&lt;BR&gt;    IF_TopicsRead1947             1947%7c9%2f6%2f2006+4%3a05%3a31+PM&lt;BR&gt;    ASP.NET_SessionId             kuvuxj45yaxut055xbvdnj45&lt;BR&gt;    IF_TopicsRead230              230%7c9%2f7%2f2006+9%3a07%3a39+AM&lt;BR&gt;    IF_TopicsRead204              204%7c9%2f7%2f2006+9%3a07%3a51+AM&lt;BR&gt;    IF_TopicsRead322              322%7c9%2f7%2f2006+9%3a09%3a29+AM&lt;BR&gt;    InstantASP                    5EAA857D33035DB16D28BCE91A4827B67721865E319D6684AF2A4FE735AC0751A7670EAB646242E7641941ADE1A4984CD34044E99B508A6DD9F2F7ED7054DFA68EC45D59E89F396B52E9BDB7F6E56EE02BB4EBBD249FA3B42F167FA3739DE8F988E90AD81F1125826232AB9C44B272FDA6474B71C0D73964E03AA8256E623DACE9AE0AAA35F6A90CAE02396A7C421EFCD6B72D1FA9761532E9CE624314D92B7DE646DC307273BCAADA6FFE04F1BFE752&lt;BR&gt;    IASP_IsActive                 True&lt;/P&gt;&lt;P&gt;ServerVariables&lt;/P&gt;&lt;P&gt;    APPL_MD_PATH                  /LM/W3SVC/1/Root/InstantForum412&lt;BR&gt;    APPL_PHYSICAL_PATH            c:\inetpub\wwwroot\InstantForum412\&lt;BR&gt;    AUTH_TYPE                     InstantASP&lt;BR&gt;    AUTH_USER                     xxxx&lt;BR&gt;    REMOTE_USER                   xxxx&lt;BR&gt;    CONTENT_LENGTH                0&lt;BR&gt;    GATEWAY_INTERFACE             CGI/1.1&lt;BR&gt;    HTTPS                         off&lt;BR&gt;    INSTANCE_ID                   1&lt;BR&gt;    INSTANCE_META_PATH            /LM/W3SVC/1&lt;BR&gt;    LOCAL_ADDR                    xx.xx.xx.xx    PATH_INFO                     /InstantForum412/Skins/Classic/Dialogs/InsertAttachments.aspx&lt;BR&gt;    PATH_TRANSLATED               c:\inetpub\wwwroot\InstantForum412\Skins\Classic\Dialogs\InsertAttachments.aspx&lt;BR&gt;    QUERY_STRING                  Hash=9d0b45d9-7d70-412f-b31a-2c0612d877c9&amp;amp;EditID=0&amp;amp;Task=20&amp;amp;MaximumLength=104857600&lt;BR&gt;    REMOTE_ADDR                   192.168.1.1&lt;BR&gt;    REMOTE_HOST                   192.168.1.1&lt;BR&gt;    REMOTE_PORT                   4049&lt;BR&gt;    REQUEST_METHOD                GET&lt;BR&gt;    SCRIPT_NAME                   /InstantForum412/Skins/Classic/Dialogs/InsertAttachments.aspx&lt;BR&gt;    SERVER_NAME                   forum.ayanova.com&lt;BR&gt;    SERVER_PORT                   80&lt;BR&gt;    SERVER_PORT_SECURE            0&lt;BR&gt;    SERVER_PROTOCOL               HTTP/1.1&lt;BR&gt;    SERVER_SOFTWARE               Microsoft-IIS/6.0&lt;BR&gt;    URL                           /InstantForum412/Skins/Classic/Dialogs/InsertAttachments.aspx&lt;BR&gt;    HTTP_CONNECTION               Keep-Alive&lt;BR&gt;    HTTP_ACCEPT                   */*&lt;BR&gt;    HTTP_ACCEPT_ENCODING          gzip, deflate&lt;BR&gt;    HTTP_ACCEPT_LANGUAGE          en-us&lt;BR&gt;    HTTP_COOKIE                   IF_LastVisit=9%2f7%2f2006+9%3a18%3a45+AM; IF_ForumsRead90=90%7c9%2f6%2f2006+8%3a48%3a04+AM; IF_ForumsRead65=65%7c9%2f7%2f2006+9%3a09%3a29+AM; IF_ForumsRead100=100%7c9%2f6%2f2006+8%3a26%3a11+AM; IF_ForumsRead96=96%7c9%2f7%2f2006+8%3a01%3a32+AM; IF_ForumsRead86=86%7c9%2f6%2f2006+9%3a11%3a57+AM; IF_TopicsRead1237=1237%7c9%2f5%2f2006+4%3a22%3a35+PM; IF_ForumsRead91=91%7c9%2f6%2f2006+7%3a58%3a32+AM; IF_TopicsRead1990=1990%7c9%2f6%2f2006+7%3a58%3a32+AM; IF_TopicsRead1298=1298%7c9%2f6%2f2006+8%3a26%3a11+AM; IF_TopicsRead917=917%7c9%2f6%2f2006+8%3a48%3a04+AM; IF_ForumsRead101=101%7c9%2f6%2f2006+9%3a37%3a31+AM; IF_ForumsRead31=31%7c9%2f6%2f2006+4%3a05%3a31+PM; IF_TopicsRead1947=1947%7c9%2f6%2f2006+4%3a05%3a31+PM; ASP.NET_SessionId=kuvuxj45yaxut055xbvdnj45; IF_TopicsRead230=230%7c9%2f7%2f2006+9%3a07%3a39+AM; IF_TopicsRead204=204%7c9%2f7%2f2006+9%3a07%3a51+AM; IF_TopicsRead322=322%7c9%2f7%2f2006+9%3a09%3a29+AM; InstantASP=5EAA857D33035DB16D28BCE91A4827B67721865E319D6684AF2A4FE735AC0751A7670EAB646242E7641941ADE1A4984CD34044E99B508A6DD9F2F7ED7054DFA68EC45D59E89F396B52E9BDB7F6E56EE02BB4EBBD249FA3B42F167FA3739DE8F988E90AD81F1125826232AB9C44B272FDA6474B71C0D73964E03AA8256E623DACE9AE0AAA35F6A90CAE02396A7C421EFCD6B72D1FA9761532E9CE624314D92B7DE646DC307273BCAADA6FFE04F1BFE752; IASP_IsActive=True&lt;BR&gt;    HTTP_HOST                     forum.ayanova.com&lt;BR&gt;    HTTP_USER_AGENT               Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)&lt;/P&gt;&lt;P&gt;&lt;BR&gt;  &lt;BR&gt; &lt;BR&gt;</description><pubDate>Thu, 07 Sep 2006 10:36:02 GMT</pubDate><dc:creator>Joyce</dc:creator></item></channel></rss>