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

Question

Question

Build Errors in WebLink Project

asked on December 7, 2018

I am working on a WebLink customization and I am getting errors when building the project.  I opened the weblink.vbproj file in Visual Studio and built the solution.  I didn't make any code changes.  I am getting 10 errors saying "Value of type 'Exception' cannot be converted to 'String'" or "Value of type 'String' cannot be converted to 'Exception'" (see attached screenshot).  All errors are pointing to calls to WLConnection.LogError in various pages.  Is there a work around available for this?

 

WLConnection.LogError(LogLevel.LOGLEVEL_IMPORTANT, 0, ex2, Session.SessionID)

 

WebLink Version:  9.0.1.350

Visual Studio 2017

WebLinkErrors.JPG
0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on December 18, 2018

Michael,

In VS, open each of the referenced codebehind files and go to each line that has an error. From there, you'll see something like

WLConnection.LogError(LogLevel.LOGLEVEL_IMPORTANT, 0, ex, Session.SessionID)

The problem is that params passed into this function call don't match up orderwise with the actual class definition. The solution is to swap the order of the last two params so it resembles something like

WLConnection.LogError(LogLevel.LOGLEVEL_IMPORTANT, 0, Session.SessionID, ex)

Once that's done, then you should be able to build the project successfully.

Regards

0 0

Replies

replied on December 11, 2018

Are there any updates available on this issue?

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

Sign in to reply to this post.