Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Urgent Help for release...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 479012"] Can someone please tell me why I keep getting the following error for some of my web application users but not others??? Even though the application runs from a central webserver??? Thanks for any help... Error: ----- 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.] cpncms_v1.editor.GetDocument() +277 cpncms_v1.editor.Page_Load(Object sender, EventArgs e) +122 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731 Code: --------- Private Function GetDocument() As String Dim ds As DataSet If Request.ServerVariables("HTTP_REFERER") = "[URL]http://localhost/cpncms_v1/cms/viewpage.aspx[/URL]" Then ds = GetDataSet(("SELECT content FROM tblPageContent WHERE pageID=" + rowID.ToString())) Cache("iNews") = "False" ElseIf Request.ServerVariables("HTTP_REFERER") = "[URL]http://localhost/cpncms_v1/cms/news/pgeEditor.aspx[/URL]" Then ds = GetDataSet(("SELECT content FROM tblNewsArchive WHERE newsID=" + rowID.ToString())) Cache.Remove("iNews") End If Dim table As DataTable = ds.Tables(0) Dim row As DataRow = table.Rows(0) Dim doc As String = row("content").ToString() Return doc ds.Dispose() End Function 'GetDocument [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Urgent Help for release...
Top