You are viewing limited content. For full access, please sign in.

Question

Question

WebLink & Visual Studio 2012 - Object Reference not set to an instance of an Object

asked on February 9, 2015

Hello,

I am attempting to make some modifications to WebLink, but I get the following error on an aspx file in Design view.

What am I missing?

I am have WebLink 8.2.2 (Build 145)

0 0

Replies

replied on February 9, 2015

Have you already updated the references according to KB:1012912?

0 0
replied on February 9, 2015

Yes I have

0 0
replied on February 11, 2015

Any help?  do I need an sdk to get the project to work?

0 0
replied on February 11, 2015

My apologies; in my original response, it didn't register that you were referring to the Visual Studio feature "Design View", as it is not a feature I commonly use.

Visual Studio Design View is not supported for editing the WebLink project; the edits must be performed using the Code View. We will update our help materials to reflect this fact.

If you are having issues making edits in the code view, go ahead and try asking here on Answers! If you do ask questions about code customizations, please be specific, and include current code snippets using the code style that Answers provides:

0 0
replied on February 13, 2015

Hi Brianna,

I have made the modification and set the start page as Login.aspx within the project.

Now I get the following error when I run the program.

 

Server Error in '/' 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.]
   WebLinkControls.LoginInterface8.OnPreRender(EventArgs e) +996
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

 


Version Information: Microsoft .NET Framework Version:2.0.50727.5477; ASP.NET Version:2.0.50727.5479 

0 0
replied on February 13, 2015

I'm unclear as to what change you made to the project, but if you are trying to change the default landing page for WebLink, this Answers post covers how to do that by changing settings in IIS (no code modification).

0 0
replied on February 17, 2015

Hi Brianna,

I am not trying top change the default document.  I need to modify the what is displayed on the document.

I need to have the Folder Tree place on the Browse page.  When I make the changes according to the documentation, I get the above errors after compile.

Avri

 

0 0
replied on February 26, 2015

Can anyone help??  I need to get the Folder Tree back onto the Browse.aspx just like version 7.2.

Avri

0 0
replied on February 27, 2015

Hi Justin,

I have followed the documentation and had the following errors.  I assumed that I needed to recompile compile WebLink.

Here are the errors without compiling.

 

This one is if I am already logged in.

 

This is what is in the Browse.aspx file :

0 0
replied on February 27, 2015

Right now, you have this:

<!-- <weblink:FolderTree ID="TheFolderTree" runat="server" /> -->
<weblink:FolderTree ID="TheFolderTree" runat="server" /> -->

You need to have this:

<weblink:FolderTree ID="TheFolderTree" runat="server" />

the <!-- and --> are comments, but there are an unequal number.

0 0
replied on February 27, 2015 Show version history

I'm still unclear what you meant by "I have made the modification and set the start page as Login.aspx within the project" , so I'm not sure if this is the only issue.

0 0
replied on February 27, 2015

My requirement is that I need the Folder Tree back on the Browse page instead of the Folder Metadata.

When I follow WebLink's documentation I get the error Object Reference Not Set.  As seen on my post earlier today.

This made me beleive that I needed to recompile WebLink.  That gave me the errors that I initially posted on this thread.

Am I missing something?

Avri

 

0 0
replied on February 27, 2015

Does the suggestion Brianna mentioned above address the issue? 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.