What version of Visual Studio are you developing on? You'll have to post more code for troubleshooting. Haven't seen such an error before.
Regards,
Ockert
Page 1 / 1
Hi,
Within VB.Net, I've been developing .aspx without any problems. Then I created a SPS Portal and things fell apart - I couldn't compile my aspx - so I deleted the SPS portal. My VB.Net aspx code is still working but when I create a new SmartForm, I loose any reference to my Solutions, Projects, Processes. So my fix has been to copy an existing working .aspx and modify it.
That is the background.... Now I'm writing K2ROM.DLL code within my aspx. I included the reference and get the following error message....
I've removed and added the reference without any success to fixing the problem.
HELP
Within VB.Net, I've been developing .aspx without any problems. Then I created a SPS Portal and things fell apart - I couldn't compile my aspx - so I deleted the SPS portal. My VB.Net aspx code is still working but when I create a new SmartForm, I loose any reference to my Solutions, Projects, Processes. So my fix has been to copy an existing working .aspx and modify it.
That is the background.... Now I'm writing K2ROM.DLL code within my aspx. I included the reference and get the following error message....
Compiler Error Message: BC30002: Type 'K2ROM.Connection' is not defined.
Source Error:
Line 3:
Line 4: Dim txtUserName
Line 5: Dim myConn As New K2ROM.Connection
I've removed and added the reference without any success to fixing the problem.
HELP
here is the top lines. It's just basically trying to connect and that's all. I was going to build upon that.
The version of VB.Net is 7.1.3088. I believe that once I created the SPS portal I lost some sort of reference to K2 within VB.Net because when I add a SmartForm item I have no reference to a solution, project or process. These pick lists are blank. I have a feeling that is also why VB.Net is not recognizing my reference to K2ROM.dll and giving the error message I posted.
HELP/IDEAS
;Authentication=Windows;Domain=k2mega.local;User=duncanj;Password=k2pass"
Dim myWList As K2ROM.Worklist
Dim myWLItem As K2ROM.WorklistItem
Session("K2ConnectionString") = connstr
myConn.Open("k2megasrv", Session("K2ConnectionString"))
txtUserName = myConn.User.Name
The version of VB.Net is 7.1.3088. I believe that once I created the SPS portal I lost some sort of reference to K2 within VB.Net because when I add a SmartForm item I have no reference to a solution, project or process. These pick lists are blank. I have a feeling that is also why VB.Net is not recognizing my reference to K2ROM.dll and giving the error message I posted.
HELP/IDEAS
OK -- I've switched some things around and am getting a different error
within my .aspx.vb code I have
I am getting the error
any help greatly appreciated.....
within my .aspx.vb code I have
Imports SourceCode.K2ROM
Public Class SchedulerMain
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim WorklistConn As New Connection
Dim WorkListObj As Worklist
Dim WorkListItem As WorklistItem
WorkListObj = WorklistConn.OpenWorklist("ASP")
For Each WorkListItem In WorkListObj
Next
End Sub
End Class
I am getting the error
Communication error with server
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.Exception: Communication error with server
Source Error:
Line 29: Dim WorkListItem As WorklistItem
Line 30:
Line 31: WorkListObj = WorklistConn.OpenWorklist("ASP")
Line 32:
Line 33: For Each WorkListItem In WorkListObj
Source File: c:inetpubwwwrootFacilityWorkRequestSchedulerMain.aspx.vb Line: 31
any help greatly appreciated.....
You should open the connection to the Server first i.e. make a call to:
WorklistConn.Open("k2megasrv")
Regards,
Ockert
WorklistConn.Open("k2megasrv")
Regards,
Ockert
that did it -----thanks bunches and bunches
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.