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
MadhuriM  
#1 Posted : Monday, April 22, 2013 7:45:08 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Hello,

I just started integrating AurigmaUp in my company's mobile site - this is .Net 4.5 ASP.Net MVC 4 Jquery Mobile integrated site.

when I post back to the upload controller I get a Potentially Dangerous Request Error:

Here is my upload link:

<a href="aurup:?uploadUrl=http%3A%2F%2Fmobile.assemblyline.carponents.com%2Fmygarage%2FAurigmaUpload&redirectUrl=http%3A%2F%2Fmobile.assemblyline.carponents.com%2Fmygarage%2FAurigmaUpload&redirectDelay=60&returnUrl=%2Fmygarage%2FAurigmaUpload&uploadTimeOut=1000&licenseKey=79FF1-000DF-6C830-00008-9BC01-B46D2F&minimumVersion=1.4">Upload Images</a>

Also below is the error I get :

A Potentially Dangerous Request.Path Value was detected from the Client ( : )

I tried adding the below entry in my web.config , however does not resolve the problem:

<location path="MyGarage/aurigmaupload">
<system.web>
<pages validateRequest="false" />
<httpRuntime requestValidationMode="2.0" />
</system.web>
</location>

Any resolutions ?


MadhuriM attached the following image(s):
screenshot.png
vitaly  
#2 Posted : Monday, April 22, 2013 9:42:37 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello MadhuriM,

I replied in the support case, that you have created.
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#3 Posted : Tuesday, April 23, 2013 3:17:00 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

Thanks a lot , that resolved the problem. Now I have another problem. Here is what I have :

<a href="aurup:?uploadUrl=http://localhost/mobile.carponents.com/mygarage/AurigmaUpload&redirectUrl=http://localhost/mobile.carponents.com/mygarage/AurigmaUpload&redirectDelay=60&returnUrl=../mygarage/AurigmaUpload&uploadTimeOut=1000&licenseKey=79FF1-000DF-6C830-00008-9BC01-B46D2F&minimumVersion=1.4">Upload Images</a>

I get Error 302 error when loading URL ....not sure why...

Attached is the screenshot

Thanks again,

Madhuri
MadhuriM attached the following image(s):
screenshot.png
Tanya  
#4 Posted : Thursday, April 25, 2013 2:30:48 AM(UTC)
Tanya

Rank: Advanced Member

Groups: Member
Joined: 5/14/2007(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
Hello MadhuriM,

If you implement authentication on your site, you should pass cookies to Aurigma up via the cookies parameter.
Best regards,
Tatyana Bertyakova

UserPostedImage Follow Aurigma on Twitter!
MadhuriM  
#5 Posted : Wednesday, May 1, 2013 2:59:20 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Hello Tatyana,

We use forms authentication - you know how that works. On the server side it generates a ticket on authentication , and the user gets automatically redirected to the requested URL.

The only way I can think of how I can do this now is, I append the cookie to the URL during runtime after Authentication and before the redirect happens.

Is that what we are required to do ? Are there any examples you can suggest that are available for asp.net apps which do this ..

Thanks a lot,

Madhuri Mittal
www.carponents.com
vitaly  
#6 Posted : Wednesday, May 1, 2013 9:09:09 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello Madhuri,

You can use Code Designer here: http://www.aurigma.com/m...aurigma-up-api.aspx#tabs so to generate your code for embedding Aurigma Up to your web page. The Code Designer have cookies field, which you can set.
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#7 Posted : Monday, May 6, 2013 4:14:45 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

I am passing the authorization cookie from the forms authentication as required by Aurigma Up. The upload works , but it throws a 500 internal server error when it's trying to redirect to redirectURL -

This started happening after I started passing the auth cookies - before that it was not throwing me 500 error. I cannot grab this error even in Application_Error event . Not sure if it's a pure IIS error which I am not able to trap at the app level. Have you seen this behaviour before , aby clues why it's happening ?

Madhuri
vitaly  
#8 Posted : Monday, May 6, 2013 9:16:27 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hi Madhuri,

I did not face with the problem.
You can try to detect a reason of the problem with remote debugging tools. (You can read about it here: https://developers.googl...ls/docs/remote-debugging )
However, I recommend you to use cookie. Why do you prefered do not use cookies parameter?
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#9 Posted : Tuesday, May 7, 2013 3:31:18 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

I am using cookies. That's what I said - here are my IIS logs - let me know if you think you understand what the problem is: you will see that I am passing the AuthCookie : The application is written in ASP.Net MVC 4 :

<a href="aurup:?uploadUrl=http://mobile.assemblyline.carponents.com/mygarage/AurigmaUpload&redirectUrl=http://mobile.assemblyline.carponents.com/mygarage/AurigmaUpload&redirectDelay=60&returnUrl=../mygarage/AurigmaUpload&uploadTimeOut=1000&licenseKey=79FF1-000DF-6C830-00008-9BC01-B46D2F&minimumVersion=1.4&cookies=AuthCookie=@Model.AuthCookie"> Upload Photos</a>

IIS 8.0 logs :

2013-05-06 22:45:05 10.242.51.212 POST /Account/Login ReturnUrl=/mygarage/aurigmaupload 80 1 69.119.185.96 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10.6;+rv:20.0)+Gecko/20100101+Firefox/20.0 fbm_447175668666391=base_domain=.carponents.com;+__utma=185561659.853594019.1349941699.1367802103.1367864018.604;+__utmz=185561659.1366383199.568.15.utmcsr=meetup.com|utmccn=(referral)|utmcmd=referral|utmcct=/Jersey-Shore-Tech/members/82543032/;+__utmc=185561659;+AuthCookie=EE89A3C5FE0096905639240B665C1FAE21D0EAA31739FF06E6B1B2878C67864247B4B9022145CA521CB81EE921A401415ECC0D2038FCE93202220B7B20897C2FD08D9BC7 http://mobile.assemblyli...=/mygarage/aurigmaupload 302 0 0 8954
2013-05-06 22:45:05 10.242.51.212 GET /mygarage/aurigmaupload - 80 1 69.119.185.96 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10.6;+rv:20.0)+Gecko/20100101+Firefox/20.0 fbm_447175668666391=base_domain=.carponents.com;+__utma=185561659.853594019.1349941699.1367802103.1367864018.604;+__utmz=185561659.1366383199.568.15.utmcsr=meetup.com|utmccn=(referral)|utmcmd=referral|utmcct=/Jersey-Shore-Tech/members/82543032/;+__utmc=185561659;+AuthCookie=E033B35056BD250892CED4ABABC3A467B12383EE7C634A9FD340458C02E5F9082B23E85D1915E8F6B85F8C3621CB90812753AB71E2FA51E3B8BCE6F0D4032310AB9A17E3 http://mobile.assemblyli...=/mygarage/aurigmaupload 200 0 0 177
2013-05-06 22:51:47 10.242.51.212 GET /mygarage/aurigmaupload - 80 - 198.228.201.146 Mozilla/5.0+(Linux;+U;+Android+4.1.1;+en-us;+SAMSUNG-SGH-I747+Build/JRO03L)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 __utma=185561659.463560503.1365093772.1365788687.1366389486.6;+__utmz=185561659.1365093772.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+AuthCookie= - 302 0 0 15
2013-05-06 22:51:47 10.242.51.212 GET /Account/Login ReturnUrl=%2fmygarage%2faurigmaupload 80 - 198.228.201.146 Mozilla/5.0+(Linux;+U;+Android+4.1.1;+en-us;+SAMSUNG-SGH-I747+Build/JRO03L)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 __utma=185561659.463560503.1365093772.1365788687.1366389486.6;+__utmz=185561659.1365093772.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+AuthCookie= - 200 0 0 31
2013-05-06 22:51:52 10.242.51.212 POST /Account/Login ReturnUrl=%2fmygarage%2faurigmaupload 80 - 198.228.201.146 Mozilla/5.0+(Linux;+U;+Android+4.1.1;+en-us;+SAMSUNG-SGH-I747+Build/JRO03L)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 __utma=185561659.463560503.1365093772.1365788687.1366389486.6;+__utmz=185561659.1365093772.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+AuthCookie= http://mobile.assemblyli...mygarage%2faurigmaupload 302 0 0 452
2013-05-06 22:51:52 10.242.51.212 GET /mygarage/aurigmaupload - 80 15 198.228.201.146 Mozilla/5.0+(Linux;+U;+Android+4.1.1;+en-us;+SAMSUNG-SGH-I747+Build/JRO03L)+AppleWebKit/534.30+(KHTML,+like+Gecko)+Version/4.0+Mobile+Safari/534.30 __utma=185561659.463560503.1365093772.1365788687.1366389486.6;+__utmz=185561659.1365093772.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+AuthCookie=130EA9D149EC82D43B9C4D7B552C5F4411C78131AEF953698D29A887D76EAFE15D90936A40D9F69F2050F56A48C47C94D4EB6CE12DD9155642A536792D23BF55F329E8A2 http://mobile.assemblyli...mygarage%2faurigmaupload 200 0 0 46
2013-05-06 22:52:19 10.242.51.212 POST /mygarage/AurigmaUpload - 80 15 198.228.201.146 Aurigma+Up AuthCookie=130EA9D149EC82D43B9C4D7B552C5F4411C78131AEF953698D29A887D76EAFE15D90936A40D9F69F2050F56A48C47C94D4EB6CE12DD9155642A536792D23BF55F329E8A2 - 500 0 0 2293
2013-05-06 22:53:11 10.242.51.212 GET /Account/Login ReturnUrl=%2fmygarage%2fAurigmaUpload 80 - 100.1.88.2 Mozilla/5.0+(iPhone;+CPU+iPhone+OS+6_0_1+like+Mac+OS+X)+AppleWebKit/536.26+(KHTML,+like+Gecko)+Version/6.0+Mobile/10A523+Safari/8536.25 AuthCookieSpeak to the hand+__utma=185561659.860825231.1365538111.1365540505.1366389776.3;+__utmz=185561659.1365538111.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) - 200 0 0 31
2013-05-06 22:53:25 10.242.51.212 POST /Account/Login ReturnUrl=%2fmygarage%2fAurigmaUpload 80 - 100.1.88.2 Mozilla/5.0+(iPhone;+CPU+iPhone+OS+6_0_1+like+Mac+OS+X)+AppleWebKit/536.26+(KHTML,+like+Gecko)+Version/6.0+Mobile/10A523+Safari/8536.25 AuthCookieSpeak to the hand+__utma=185561659.860825231.1365538111.1365540505.1366389776.3;+__utmz=185561659.1365538111.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) http://mobile.assemblyli...mygarage%2fAurigmaUpload 302 0 0 62
2013-05-06 22:53:25 10.242.51.212 GET /mygarage/AurigmaUpload - 80 15 100.1.88.2 Mozilla/5.0+(iPhone;+CPU+iPhone+OS+6_0_1+like+Mac+OS+X)+AppleWebKit/536.26+(KHTML,+like+Gecko)+Version/6.0+Mobile/10A523+Safari/8536.25 AuthCookie=FB8C1DC14854248E23C6CBACA59012E8C6CB477C90FEC31CD151FDF4FAF09011AFDD75D6B978EF06AAE909F598F7186DD597E8BED30C1A11970F91B71C5A14EEC245DD64;+__utma=185561659.860825231.1365538111.1365540505.1366389776.3;+__utmz=185561659.1365538111.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) http://mobile.assemblyli...mygarage%2fAurigmaUpload 200 0 0 62
2013-05-06 22:53:56 10.242.51.212 POST /mygarage/AurigmaUpload - 80 15 100.1.88.2 Aurigma+Up+1.7.5+(iPhone;+iPhone+OS+6.0.1;+en_US) AuthCookie=FB8C1DC14854248E23C6CBACA59012E8C6CB477C90FEC31CD151FDF4FAF09011AFDD75D6B978EF06AAE909F598F7186DD597E8BED30C1A11970F91B71C5A14EEC245DD64 - 500 0 0 3447
MadhuriM  
#10 Posted : Tuesday, May 7, 2013 3:33:30 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

attached is the IIS 8 logs again

Thanks

MAdhuri
vitaly  
#11 Posted : Tuesday, May 7, 2013 4:07:10 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
MadhiriM,

I noticed that you use relative URL in returnUrl parameter. You can not use relative URL, because Aurigma Up have no information about your site. Please set full URL to the parameter like this:

returnUrl=http://mysite.com/mygarage/AurigmaUpload
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#12 Posted : Tuesday, May 7, 2013 5:23:48 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

what is the difference between returnURL and redirectURL ?

Just curious... only because I was using the same without cookies and it worked correctly. Only after I added the cookies code it started giving me 500 error after upload
vitaly  
#13 Posted : Tuesday, May 7, 2013 7:16:09 PM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Madhuri,

redirectUrl
- A URL to which a user will be redirected when the upload completes.

returnUrl
- A URL to which the user gets back if the Back button is touched. Typically, it should be the same URL as the page with the Aurigma Up link. Note, this parameter doesn't work on Android.

Is it possible for you to use Aurigma Up without cookies? If so, you can use it without them. Otherwise, I recommend you to use Remote Debugger, that I told above, so detect your server-side error and fix it.
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#14 Posted : Wednesday, May 8, 2013 3:30:49 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

If I used it without cookies, will it work with forms authentication ? We need to authenticate the logged in User -

Also have you had any client so far integrate Aurigma Up with a ASP.Net 4 application hosted on IIS 8 who uses authentication ?

Do you have any sample code that you can provide me for MVC , how cookies can be used ?

Also- you have a html5 uploader that uploads to the amazon. Do you recomnmend us using that instead for out Mobile Web Application?

Madhuri
www.carponents.com
vitaly  
#15 Posted : Saturday, May 11, 2013 1:56:43 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Madhuri,

Our HTML5 Uploader currently does not support upload to amazon. Only ActiveX/Java Uploader. I do not recommend you to use it for mobile web applications.

Regarding the other your questions, I will reply you on Monday.
Best regards,
Vitaly Kustov
Aurigma Technical Support
vitaly  
#16 Posted : Monday, May 13, 2013 2:13:32 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Madhuri,

I talked with our developers. According to them you should set cookie in query-string as for GET request like this:

Code:
aurup:.....&cookies=cookieKey1=cookieValue1&cookieKey2=cookieValue2....


The string should not include "@" character.
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#17 Posted : Monday, May 13, 2013 4:01:32 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

Thanks for all the help . The cookies part is working now.

Your knowledge base does say that the HTML5 uploader supports amazon upload. Here is a code snippet that I got from the knowledge base:

http://www.aurigma.com/d...ng-to-cloud-storages.htm

Madhuri Mittal
www.carponents.com



vitaly  
#18 Posted : Monday, May 13, 2013 4:10:22 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Madhuri,

Perhaps, there is a misunderstanding a little bit.
ActiveX/Java Uploader supports amazon upload. HTML5/Flash Uploader does not support it.
Best regards,
Vitaly Kustov
Aurigma Technical Support
MadhuriM  
#19 Posted : Wednesday, May 15, 2013 3:30:38 AM(UTC)
MadhuriM

Rank: Member

Groups: Member
Joined: 4/22/2013(UTC)
Posts: 12

Vitaly,

Is there a limit on multiple uploads ? I can easily upload upto 3 images , however for more than 3 images I get "Maximum request length exceeded." error in my server side post code ....

May be I am missing smething ?

Madhuri
vitaly  
#20 Posted : Wednesday, May 15, 2013 3:47:14 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Madhuri,

I think you should configure your server. Please read about it here: http://www.aurigma.com/d...onfiguring-aspnet-iu.htm
Best regards,
Vitaly Kustov
Aurigma Technical Support
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.