Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
gchq  
#1 Posted : Sunday, July 22, 2012 1:11:07 PM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
We have a web vb.net app that requires the user to login via forms authentication.

Once logged in they can select a number of options and upload an image file - all this works fine with anything that supports standard Windows applications, but of course iPhone is the pain.

There is no problem installing the Aurigma app and the upload procedure starts, but then blows out with 'unable to contact server' - please bear in mind we are US based and the only person we know with an iPhone is UK based.

I am guessing that the issue relates to Aurigma trying to 'hand over' the uploaded image to our server but unable to authenticate as they are coming in with different credentials to the user?

I'm sure this is an issue you are aware of - but how do we overcome it?

Thanks

=========== UPDATE==============

I have added another UploadURL page to a non-secure section of the application but it would appear that the variables (UploadURL | RedirectURL) are not being passed to the Aurigma app (see screenshot below)

If the user types them in we can upload an image but redirect fails - I am guessing because the authentication cookies are lost (there are a host of other session variables that I'm guessing will be lost as well).

UserPostedImage

Edited by user Monday, July 23, 2012 10:46:05 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#2 Posted : Tuesday, July 24, 2012 12:37:21 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

You will need to add authentication cookies and sessions through cookie property. Please use Aurigma Up code designer to add cookies.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#3 Posted : Tuesday, July 24, 2012 5:54:00 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
If I read you correctly we need to build a variable into the string for given cookies - as an example we have one that determines which customer is logged in so that the correct DB is updated (it lasts for two hours so if the twenty minute session ends they can be redirected to the correct login page

Is this the general idea?

Code:


If Request.Cookies("CurrentCustomer") Is Nothing then

'Cookies have been lost or two hours has elapsed

Else

Dim CurrentCustomerValues as String = Request.Cookies("CurrentCustomer").Value

Response.Redirect("aurup:?uploadUrl=mysite.com?cookies=CurrentCustomer%3D" & CurrentCustomerValues & "other variables, False)

Quote:
but it would appear that the variables (UploadURL | RedirectURL) are not being passed to the Aurigma app

What would be the issue here?

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#4 Posted : Wednesday, July 25, 2012 8:50:42 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
You will need to send cookies setting them like it is shown in this code snippet:

Code:
<a href="aurup:?uploadUrl=domainName/upload.aspx
&redirectUrl=domainName/redirect.aspx
&returnUrl=domainName/return.aspx
&cookies=ASPNET_SessionId=<%Session.Value%>">Upload Images</a>

Quote:
but it would appear that the variables (UploadURL | RedirectURL) are not being passed to the Aurigma app

Could you please provide me with a direct page to Aurigma Up (login/password) so that I will be able to test it myself?

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#5 Posted : Thursday, July 26, 2012 5:16:55 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Quote:
You will need to send cookies setting them like it is shown in this code snippet:

All pages are built dynamically from code behind generated by the backend DB, but I believe the above example should have the same effect as your code ( http://forums.aurigma.co..._ASP-NET--VB-Basics.aspx number seven )

We can get the session ID like this:-

Code:

            Dim vSession As HttpSessionState = HttpContext.Current.Session
            Dim vSessionID As String = vSession.SessionID

Do we have to do anything with the posted cookie data, or does Aurigma handle that?

Quote:
Could you please provide me with a direct page to Aurigma Up (login/password) so that I will be able to test it myself?

What email address should I use?

Edited by user Thursday, July 26, 2012 10:03:13 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#6 Posted : Thursday, July 26, 2012 8:53:25 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Quote:
Do we have to do anything with the posted cookie data, or does Aurigma handle that?

Aurigma Up allows sending cookies only to keep them while uploading. If the project logic needs some actions with cookies further, you will should implement it yourself.

Quote:
What email address should I use?

Please submit new support ticket.

Edited by user Sunday, July 29, 2012 11:53:24 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#7 Posted : Friday, July 27, 2012 5:09:58 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Quote:
Aurigma Up allows sending cookies only to keep them while uploading. If the project logic needs some actions with cookies further, you will should implement it yourself.

I assume that Aurigma posts this as the variable ASPNET_SessionId?

Quote:
Quote:
What email address should I use?

Please submit new support ticket.

CAS-9109

We need a valid email address to register you as a user

Edited by moderator Sunday, July 29, 2012 11:53:34 PM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#8 Posted : Sunday, July 29, 2012 11:57:39 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Quote:
I assume that Aurigma posts this as the variable ASPNET_SessionId?

Yes.

Quote:
We need a valid email address to register you as a user

I gave you email.

Edited by user Sunday, July 29, 2012 11:58:17 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#9 Posted : Wednesday, August 1, 2012 6:53:55 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Any idea when you will be able to look at this?

Thanks

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#10 Posted : Wednesday, August 1, 2012 11:42:36 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Sorry for the delay.

I checked my emails. I did not get a password to access your site. Could you please send it me?

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#11 Posted : Thursday, August 2, 2012 4:14:30 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
I have reset the password - you should have that in your inbox now
Qui me amat, amet et canem meum
Dmitry.Obukhov  
#12 Posted : Friday, August 3, 2012 2:39:31 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
I got login/password. I logged in your site and went the steps to get Aurigma Up. However, I did not get it. I was on https://hasoftsales.com/...re/SmartPhone_Image.aspx. There were three buttons: Logout, Save and Choose a file only. I did not find a link to Aurigma Up.
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#13 Posted : Friday, August 3, 2012 3:49:33 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
1. Do you have a screen shot?

2. Were you using an iPhone? (Other phones use a direct to DB method)

3. If AurigmaUp is already installed you will only get the upload button.

From your description it looks like you used a phone other than iPhone.

===============UPDATE=================

According to the log it was not an iPhone

HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.1+(KHTML,+like+Gecko)+Chrome/21.0.1180.60+Safari/537.1

Edited by user Friday, August 3, 2012 3:52:47 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#14 Posted : Sunday, August 5, 2012 11:13:46 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

Yes you are right - I opened your page from my iPad. I thought that it would work on iPads too. I assume that you have set user agent so that it works on iPhones.

So, today I tested it on iPhone. I get the page with the "Upload images" button only. I clicked it, and I was redirected to AppStore. Then I installed the latest version of Aurigma Up (v1.5) and went back to the page with the "Upload images" button. I clicked it again hoping to get Aurigma Up, but I was redirected to AppStore again, where it said that Aurigma Up is installed.

Please post here a complete code of a page where Aurigma Up is hosted.

Sorry that resolving the problem takes so long time.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#15 Posted : Monday, August 6, 2012 5:43:15 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Quote:
I thought that it would work on iPads too

Tablets are not really practical for this application.

Quote:
I clicked it again hoping to get Aurigma Up, but I was redirected to AppStore again, where it said that Aurigma Up is installed.

I can see where that went wrong! I had set a cookie to the wrong name and this error was emailed to me..

Code:
Message = System.NullReferenceException: Object reference not set to an instance of an object.

As a result you were getting "Error" returned instead of the AurigmaUp link - clearly the status code did not return "OK" and you were sent back to the apple store!

I have now included validation in the Page_Load event to check the value of the returned link and display an error message if it's not not valid.

In addition, as a temporary measure, it will display the AurigmaUp link on the page just below the button when it is loaded and will email me with the status code.

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#16 Posted : Tuesday, August 7, 2012 1:40:19 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
I got the same behavior - I was redirected to AppStore again.
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#17 Posted : Tuesday, August 7, 2012 7:09:38 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
New tactic

This line

Code:
Dim vRequest As System.Net.WebRequest = CType(System.Net.WebRequest.Create(UploadLink), System.Net.WebRequest)

Was blowing out with "System.UriFormatException: Invalid URI: The format of the URI could not be determined."

So I am now seeing if we can catch the error (the iPhone doesn't recognise aurigma). In theory if the application exists it should load it without throwing an error, otherwise off to the apple store!

Code:
Private Sub ApplePhone_Image_Error(sender As Object, e As System.EventArgs) Handles Me.Error
        Dim exc As Exception = Server.GetLastError
        Dim httpException As HttpException = CType(exc, HttpException)
        Dim httpCode As Integer = httpException.GetHttpCode()
        EmailError(httpCode.ToString, "Test")
        Response.Redirect("http://itunes.apple.com/us/app/aurigma-up/id432611633", False)
        Server.ClearError()
    End Sub

When your app loads does it advise the user if a new version is available?

====================== EDIT====================

Try this link and see that happens

Edited by user Tuesday, August 7, 2012 9:44:06 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#18 Posted : Wednesday, August 8, 2012 7:12:17 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Dave,

I am sorry that the resolving takes so long time.

I could not get Aurigma Up loginning on this page: http://northlake-bp.com/hoa3/mobilelanding.aspx I was still redirected to AppStore instead of Aurigma Up.

I had luck to run it on your other link you provided. However, the license key is incorrect. You set 79FF1-000AD-EB680-00008-96C6B-7E390, but the correct key is 79FF1-000AD-EB680-00008-96C6B-7E390A.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

gchq  
#19 Posted : Thursday, August 9, 2012 3:53:11 AM(UTC)
gchq

Rank: Member

Groups: Member
Joined: 7/16/2012(UTC)
Posts: 18

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: " Go to Quoted Post
However, the license key is incorrect

Copy and paste issue! Have now rectified that! This method is based on some javascript that seems to only work on the iPhone (not even iPad), so if you can let me know if you are able to upload an image that would be great. Once we have got to that base I can write some server side code to pick the image up and move it to the DB

Originally Posted by: " Go to Quoted Post
Aurigma Up allows sending cookies only to keep them while uploading. If the project logic needs some actions with cookies further, you will should implement it yourself.

As session (in your upload string) seems to be a subset of cookies what is the best method for recovering the values, or will

Code:
Dim vSession as string = ""
If not vSession.TryParse(Request.form("ASPNET_SessionId"), String) Then
"Error"
Else
 Session.Abandon()
 Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", vSession))
end If

work

Or do we have to recover all the session variables, enter them as cookies and then build them again in the upload page?

As an example - If Session("UserID") is saved as a cookie and entered into your string then recovered using

Code:

Dim vSession as string = ""
If vSession.TryParse(Request.Cookies("ASPNET_SessionId"), String) Then
Session("ASP.NET_SessionId") = vSession
Else
'Deal with the error
End If

Dim vID as Integer = 0
If  vID.TryParse(Request.Cookies("UserID"), Integer) then
 Session("UserID") = vID
Else
'Deal with the error.
End If

Thanks

Edited by user Thursday, August 9, 2012 7:48:47 AM(UTC)  | Reason: Not specified

Qui me amat, amet et canem meum
Dmitry.Obukhov  
#20 Posted : Thursday, August 9, 2012 7:50:18 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Dave,

I had luck to get Aurigma Up on your link (https://hasoftsales.com/HOA3_SmartPhone/RedirectTest2.aspx). I uploaded several images - Aurigma Up works perfectly.

As for receiving cookies.. The first way is okay to receive them on the upload page.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Users browsing this topic
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.