Generate Production ID for VB.NET Error

Generate Production ID for VB.NET Error

Imagen de gary-beulah
Hello Team, I have generated Production GUID from my dashboard. It is 32 bit ID e.x "0x51FC7329,0x1ECD4FF0,0xB7952BAB,0x82B74A26" but when I integrate it on my project, developed on VB.NET after changing the format "&H51FC7329, &H1ECD4FF0, &HB7952BAB, &H82B74A26" , it shows "Constant Expression not representable in type UInteger" in VS2008 IDE. Why it Shows this message after changing it? Or can I generate Production GUID for VB.NET directly from my dashboard? Thanks & Regards
Gary Beulah
publicaciones de 8 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de BrianDevArch

Gary,

Please post your VB.NET authorization code section so we can review.

Imagen de gary-beulah

Hello Brian

Here is the detailed Authorizing code.
The first one workimg well
1.
---------------------------------------------------------------------------------------------------------------------------------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try

Dim app As New AdpApplication(New AdpApplicationId(&H11111111, &H11111111, &H11111111, &H11111111))
' Note: replace "&H11111111, &H11111111, &H11111111, &H11111111" with the actual application ID
' once you obtain it from Intel AppUp(SM) Developer Program web portal
' To test Expired ID, use AdpConstants.ADP_EXPIRED_APPLICATIONID

Catch ex As AdpException
If TypeOf ex Is AdpErrorException Then
' TO DO: add your logic to handle the errors during initialization
'MsgBox(ex.Message)
'System.Environment.Exit(1)

If TypeOf ex Is InitializationException Then

'TO DO: add your logic to handle the errors during initialization
'MsgBox(ex.Message)

MessageBox.Show(ex.Message, "Initialization Error")
System.Environment.Exit(1)

ElseIf TypeOf ex Is UnauthorizedException Then

' TO DO: add your logic to handle the errors during authorization

MessageBox.Show(ex.Message, "Authorization Error")
System.Environment.Exit(1)

ElseIf TypeOf ex Is AdpRuntimeException Then

' TO DO: add your logic to handle the errors during runtime

MessageBox.Show(ex.Message, "Initialization Error")
System.Environment.Exit(1)

End If

ElseIf TypeOf ex Is AdpWarningException Then
' TO DO: add your logic to handle the warnings
'MsgBox(ex.Message)
MessageBox.Show(ex.Message, "Warning")
End If
End Try

End Sub
----------------------------------------------------------------------------------------------------

second one with Production GUID, It gives error....
Error 1 Constant expression not representable in type 'UInteger'.
2.
---------------------------------------------------------------------------------------------------

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try

Dim app As New AdpApplication(New AdpApplicationId(&H2EEF7803, &H4D1C49A2, &H8AC79DE2, &H43FD6C38))
' Note: replace "&H11111111, &H11111111, &H11111111, &H11111111" with the actual application ID
' once you obtain it from Intel AppUp(SM) Developer Program web portal
' To test Expired ID, use AdpConstants.ADP_EXPIRED_APPLICATIONID

Catch ex As AdpException
If TypeOf ex Is AdpErrorException Then
' TO DO: add your logic to handle the errors during initialization
'MsgBox(ex.Message)
'System.Environment.Exit(1)

If TypeOf ex Is InitializationException Then

'TO DO: add your logic to handle the errors during initialization
'MsgBox(ex.Message)

MessageBox.Show(ex.Message, "Initialization Error")
System.Environment.Exit(1)

ElseIf TypeOf ex Is UnauthorizedException Then

' TO DO: add your logic to handle the errors during authorization

MessageBox.Show(ex.Message, "Authorization Error")
System.Environment.Exit(1)

ElseIf TypeOf ex Is AdpRuntimeException Then

' TO DO: add your logic to handle the errors during runtime

MessageBox.Show(ex.Message, "Initialization Error")
System.Environment.Exit(1)

End If

ElseIf TypeOf ex Is AdpWarningException Then
' TO DO: add your logic to handle the warnings
'MsgBox(ex.Message)
MessageBox.Show(ex.Message, "Warning")
End If
End Try

End Sub

-----------------------------------------------------------------------------------------------------------------------------------

Thanks

Gary Beulah
Imagen de BrianDevArch

Gary,

I went ahead and reproduced the error on my local machine. It looks like "&H8AC79DE2" is not a valid UInteger, while the other three are. Please paste your original GUID value (before converted for use in VB.NET.

Imagen de gary-beulah

The same error is to be found in my own machine on this "&H8AC79DE2" is not a valid UInteger. The other three is valid UInteger.

But this one generated on Intel site in my Dashboard.

"0x2EEF7803,0x4D1C49A2,0x8AC79DE2,0x43FD6C38"

I have only change it to below format,

"&H2EEF7803, &H4D1C49A2, &H8AC79DE2, &H43FD6C38"

Thanks,

Gary Beulah
Imagen de BrianDevArch

Gary,

I performed a quick test in VB.NET by replacing the existing AdpApplication declaration with this:

Dim app As New AdpApplication(New AdpApplicationId(Convert.ToUInt32("0x2EEF7803", 16), Convert.ToUInt32("0x4D1C49A2", 16), Convert.ToUInt32("0x8AC79DE2", 16), Convert.ToUInt32("0x43FD6C38", 16)))

The resulting output in the AppUp Debugger window:

Started Listening...
Application Service Status Request: SDK Version= 1.0; API Level=2
Application Service Status Response: Compatible
Application Authorization Request: SDK Version= 1.0; ApplicationUUID =2EEF7803-4D1C-49A2-8AC7-9DE243FD6C38
Authorizing...
Application Authorization Response: Not Authorized

This resulted in a valid GUID matching the example given. Please let me know if I can be of further assistance.

Imagen de gary-beulah

Hello Brian,

Thanks,
I have implement the conversion code in my project.
Now the authorization code is running.

The resulting output in the AppUp Debugger window:
------------------------------------------------------------------------------------------------------------------------------------------------------------
Started Listening...
Application Service Status Request: SDK Version= 1.0; API Level=2
Application Service Status Response: Compatible
Application Authorization Request: SDK Version= 1.0; ApplicationUUID =2EEF7803-4D1C-49A2-8AC7-9DE243FD6C38
Authorizing...
Application Authorization Response: Not Authorized

----------------------------------------------------------------------------------------------------------------------------------------------------------------

I have include only the authorization code in my first Initialization page of my project.

Will it be require to include this code in every page?
What is the use of BeginEvent() and EndEvent() functionality?
What is crash report? Will it be require to include in my project?

In sample application of C# and VB.NET, only the authorization code is used.

My application is ready.
Only authorization code in my Initialization page fulfill all the criteria!
or,
I have to Include extra code in my application!
What I have to do in next phase?

Please reply me as soon as possible.

Thanks,

Gary Beulah
Imagen de BrianDevArch

You are most welcome. Please see my reply to you post here: http://appdeveloper.intel.com/en-us/node/2245#comment-6219

Inicie sesión para dejar un comentario.