Re: [MonoTouch] Error MT0010: Could not parse the command line arguments

2012-11-29 Thread Rolf Bjarne Kvinge
Hi Dennis,

Can you send me the csproj file? There is something there which trips up
MonoDevelop into passing the wrong arguments to mtouch.

Rolf

On Thu, Nov 29, 2012 at 4:32 AM, technohead dj_technoh...@yahoo.com wrote:

 Hi Rolf,
the Use LLVM optimizing compiler is currently unchecked for debug
 builds.

 Dennis



 --
 View this message in context:
 http://monotouch.2284126.n4.nabble.com/Error-MT0010-Could-not-parse-the-command-line-arguments-tp4657718p4657741.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] How do I 'resign' a distribution build with my AdHoc profile?

2012-11-29 Thread Nic Wise
I've not tried this, but:

1. Upload to the appstore (the .ipa)|
2. Upload the same .ipa to testflight
3. In Builds - (your app) - Permissions in TF, you can upload a new
profile. This is good for adding new testers, too.

That should get you the same ipa, resigned for different people.



On Wed, Nov 28, 2012 at 11:15 PM, Rolf Bjarne Kvinge r...@xamarin.com wrote:
 Hi,

 I haven't done exactly this before, but I have resigned apps. This is quite
 easy with the 'codesign' tool Apple ships - I can't remember exactly the
 arguments, but what I did was to build the project in MonoDevelop, and then
 copy the codesign command printed at the very end of the build in the build
 output. Some modifications might be needed to the command (to point it to
 the app store app you already have), but I believe that should get you
 going.

 Rolf

 On Wed, Nov 28, 2012 at 10:40 PM, Guido Van Hoecke gui...@gmail.com wrote:

 Hi,

 We have some apps in the appstore and we want to upload them also to
 testflight in order to see how they are used.

 TestFlight requires the build to be signed with my AdHoc profile, but it
 must have the UUID of the distributed build.

 I am pretty sure that this must be feasable and that a number of you do
 this routinely.

 I had some conversation with Jason Rehmus of TestFlight about how to
 achieve this, and this is Jason's reply:

 Jason If you submitted the app via Xcode, then select the archive
 Jason marked as Submitted, click the Distribute button, and select
 Jason your ad hoc profile. Doing this will resign the build submitted
 Jason to the store with your ad hoc profile, allowing it to be
 Jason uploaded to TestFlight, but maintaining the same UUID as the
 Jason production build.

 How do I do this in the MonoTouch environment?

 Command line solutions are preferred, but any solution will do.

 Thanks in advance,


 Guido

 --
 A woman has got to love a bad man once or twice in her life to be
 thankful for a good one.
 -- Marjorie Kinnan Rawlings

 http://vanhoecke.org ... and go2 places!
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Load images and store locally

2012-11-29 Thread Nic Wise
This seminar code on the Xamarin site is quite good for that:

https://github.com/xamarin/Seminars/tree/master/2012-11-01-CollectionViews

specifically:

ImageLoader.DefaultRequestImage (uri, this);

which is part of MonoTouch.Dialog. You pass in this as an
IImageUpdated so it can set the image for you once it's downloaded.
It handles the local cache for you

On Wed, Nov 28, 2012 at 11:40 PM, Alejandro Vazquez
alexvazq...@yahoo.com wrote:
 Hi,

 I have to build a funtionality in which I get a json object with a list of
 image url's, then I will have to load them and save them locally
 (Library/Cache I suppose), so the application can show a gallery collection
 from those files.

 Any clue on the best way to do this?

 Appreciate your help,

 Alejandro

 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Auto network credentials

2012-11-29 Thread Nic Wise
YES! That is exactly my issue.

Is that in a shipping build of MT? If so, which one? Might also
explain why I've not had errors back from users on this one for a
while :)

Thanks Jeff!

On Wed, Nov 28, 2012 at 11:41 PM, Jeff Stedfast j...@xamarin.com wrote:
 Hi Nic,

 That sounds a lot like this bug:
 https://bugzilla.xamarin.com/show_bug.cgi?id=7599

 Jeff

 On Wed, Nov 28, 2012 at 11:20 AM, Nic Wise n...@fastchicken.co.nz wrote:

 ... if anyone happens to be looking into the MT proxy code:

 If I set a proxy (using the iOS one, usually, but I think it happens
 if I do it in code too), then:

 GET https://api.dropbox.com etc (this works)

 GET https://api.someoneelse.com (this doesn't work - it calls
 api.dropbox.com and passes the url / query string for this request)

 needless to say, api.someoneelse.com doesn't understand dropbox api
 calls...

 I thought it was just RestSharp, as I can't repro consistently without
 using it, but I also can't see how RS would be doing it makes no
 sense.

 My answer has always been dont use a proxy. Or Onavo. Lucky most
 people dont' use them.




 On Wed, Nov 28, 2012 at 3:56 PM, Robert Reck rr...@keylogic.com wrote:
  I had something similar happen very recently. I was pulling data from a
  public US Government web service that did not require credentials, but I 
  was
  getting the same type of proxy 407 error. My issue turned out to be related
  to a profile that was installed on my phone by another app (not mine). Even
  though I had uninstalled the app and tried to remove the profile 
  previously,
  it was still stuck on there somehow and not visible when looking in the
  profile section.  I found it by pure luck when I re-installed the app in
  question and noticed that it thought the profile was still installed. I
  forced a re-install and then removed it successfully and my 407 errors
  ended.
 
  Not sure if this is your problem too, but I figured I'd mention it just
  in case.
  Bob
 
 
  -Original Message-
  From: monotouch-boun...@lists.ximian.com
  [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Jeffrey Stedfast
  Sent: Wednesday, November 28, 2012 10:50 AM
  To: Brad Moore
  Cc: monotouch@lists.ximian.com
  Subject: Re: [MonoTouch] Auto network credentials
 
  Hi Brad,
 
  This could just be a bug in MonoTouch. I'll try to look into this as
  soon as I can. You've submitted a bug report to bug ills already, right?
  (Pretty sure I saw one recently filed on this)
 
  Jeff
 
  Sent from my iPhone
 
  On Nov 26, 2012, at 2:25 AM, Brad Moore b.mo...@4pilabs.com.au wrote:
 
  Hey
  Trying to load some data off my server (xml data). I normally just use
  HttpWebRequest as I can set the utomaticDecompression to
  DecompressionMethods.GZip | DecompressionMethods.Deflate in order to use
  gzip compression of my data automatically.
 
  Recently a client has emailed me saying that it does not work from
  within his school. Sent out another copy of the app to him via 
  TestFlightApp
  to get more debugging info from him and the app responds with a 407 auth
  error. Since then I have set up a proxy on my computer which I redirect my
  iPhone traffic through to test on.
 
  My original setup was like so,
 
  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
  request.CachePolicy = new
  HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
  request.Proxy = null;
  request.AutomaticDecompression = DecompressionMethods.GZip |
  DecompressionMethods.Deflate; WebResponse response =
  request.GetResponse();
 
  and then so on from there.
 
  I'd set Proxy to null because in most cases the user would not be
  behind a proxy and this cut off 1-2 seconds of proxy resolving. There is
  code later to catch this and then re-create the HttpWebRequest but by not
  nulling the proxy, which I thought would be default proxy. Apparently not
  so...
 
  I tried to then get the default proxy settings of the device.
 
  CFProxySettings proxy0 = CFNetwork.GetSystemProxySettings();
  IWebProxy proxy1 = WebRequest.GetSystemWebProxy(); IWebProxy proxy2 =
  HttpWebRequest.DefaultWebProxy; IWebProxy proxy3 =
  HttpWebRequest.GetSystemWebProxy();
  IWebProxy proxy4 = CFNetwork.GetDefaultProxy();
 
  proxy1 - proxy4 have null for the credentials. proxy0 contains proxy
  information which I need such as proxy url, port, username, but no
  password...
 
  I manually made a WebProxy with my credentials
 
  WebProxy webProxy = new WebProxy(proxy0.HTTPProxy, proxy0.HTTPPort);
  webProxy.Credentials = new NetworkCredential(user, pass);
  request.Proxy = webProxy;
 
  and this works.
  Falling short of requesting username and password for the proxy on a
  407 error I am not sure what to do...
  WebClient downloads do not work, but UIWebView and MKMapView does
  auto-auth itself.
 
  Any ideas what I am missing?
 
  - Brad
  ___
  MonoTouch mailing list
  MonoTouch@lists.ximian.com
  

Re: [MonoTouch] How do I 'resign' a distribution build with my AdHoc profile?

2012-11-29 Thread Guido Van Hoecke
Hi,

With the help of you guys I managed to create and upload my ipa
archives with the same uuid as the distributed apps.

Maybe this can help fellow developers, so here's my setup:

I have a distribution profile that produces a myapp.app directory.

After building for distribution with MonoDevelop (or from the command
line) a perl script performs following steps in sequence:

1) create a 'Finder compress' style zip file that could be uploaded to
the app store:

ditto -c -k --sequesterRsrc --keepParent myapp.app myapp.zip

2) Copy my Ad Hoc Distribution provision as embedded.mobileprovision

cp Ad_Hoc_Distribution.mobileprovision myapp.app/embedded.mobileprovision

This will overwrite the App Store Distribution provision copied into
the myapp.app directory by the build command.

3) Create an ipa that will have the uuid of the app as contained in
the zip file:

xcrun -sdk iphoneos PackageApplication -s Key -v myapp.ap -o myapp.ipa

Notes:

3a) key is the SHA1 key of my 'iPhone Developer' profile. It can be
copied from the output of the build command of MonoDeveloper. You can
also find it by opening your profile with the keychain utility. Click
on the profile and your key is listed as SHA1 at the bottom of the
file. Do drop the spaces between the hex character pairs.

3b) myapp.ipa should be a fully qualified name

This is it.

You can verify the uuid's by issuing

otool -l myapp | grep -i uuid

from within the myapp.app directory. You than unzip the ipa file which
produces a Payloald/myapp.app/ directory. The otool command from
within that directory will show the same uuid.

P.S.: I have not seen yet any live session nor checkpoint logging from my
app store apps, but at least I know the uuid's match and maybe I should
have some patience.

HTH,


Guido

--
When the candles are out all women are fair.
-- Plutarch

http://vanhoecke.org ... and go2 places!
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Load images and store locally

2012-11-29 Thread Dennis Welu
Timely question and answer, thanks to you both. Recently I've used  this
UIWebImageView class
https://github.com/escoz/monotouch-controls/blob/master/UICatalog/UIWebImageView.cs
 
. Problem was I needed to load the image from an https service and pass in
an aspnet forms auth cookie in the request header. So I ended up modifying
the code further, essentially passing in a delegate that did the actual
loading, which defeated much of the class value. Not a good solution. So now
I'm back revisiting the issue to get it right, and to make sure images are
cached locally, etc. I ran across ImageLoader since then and was going to
look at that as an alternative, but it doesn't appear to deal with passing a
cookie along either, correct? In a web browser context the cookie just rides
along with ajax requests but I'm not sure if there is equivalent way to
store the cookie so that calling through NSUrlConnection will automatically
pick it up? Any thoughts here appreciated.




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Load-images-and-store-locally-tp4657738p4657747.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


[MonoTouch] How is your mono touch setup?

2012-11-29 Thread bjarke
Hey Guys,

I was wondering how people are setting up their development setup.

I have a monodeveloper running in os x, while having a windows and visual
studio running i vmware. Both using the same project in a shared folder.
This way I can switch back and forth because I like to work in visual studio
however I need mono developer to run my ios app. This sometimes gives issues
because it seems that windows is not keen on working in network folders :)

Regards

Bjarke



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-is-your-mono-touch-setup-tp4657748.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Load images and store locally

2012-11-29 Thread Nic Wise
I'm not sure about NSUrlConnection (I'd assume so, it does everything
else!), but look into the CookieContainer* class in .NET if you use
the ImageLoader stuff - you make one (for your app), and reuse it, and
any requests which get cookies (or need them) store it there.

* how hard did they resist calling it CookieJar

On Thu, Nov 29, 2012 at 2:23 PM, Dennis Welu
dennisw...@motisconsulting.com wrote:
 Timely question and answer, thanks to you both. Recently I've used  this
 UIWebImageView class
 https://github.com/escoz/monotouch-controls/blob/master/UICatalog/UIWebImageView.cs
 . Problem was I needed to load the image from an https service and pass in
 an aspnet forms auth cookie in the request header. So I ended up modifying
 the code further, essentially passing in a delegate that did the actual
 loading, which defeated much of the class value. Not a good solution. So now
 I'm back revisiting the issue to get it right, and to make sure images are
 cached locally, etc. I ran across ImageLoader since then and was going to
 look at that as an alternative, but it doesn't appear to deal with passing a
 cookie along either, correct? In a web browser context the cookie just rides
 along with ajax requests but I'm not sure if there is equivalent way to
 store the cookie so that calling through NSUrlConnection will automatically
 pick it up? Any thoughts here appreciated.




 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/Load-images-and-store-locally-tp4657738p4657747.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] How is your mono touch setup?

2012-11-29 Thread Nic Wise
I just use MonoDevelop. I've gotten quite used to it - if I'm doing a
basic MVC app at work, I tend to use it over VS.NET in a VM.

But each to their own.

Maybe dropbox could work - run it on the mac and windows and point
them at the same folder?

On Thu, Nov 29, 2012 at 2:55 PM, bjarke j...@itai.dk wrote:
 Hey Guys,

 I was wondering how people are setting up their development setup.

 I have a monodeveloper running in os x, while having a windows and visual
 studio running i vmware. Both using the same project in a shared folder.
 This way I can switch back and forth because I like to work in visual studio
 however I need mono developer to run my ios app. This sometimes gives issues
 because it seems that windows is not keen on working in network folders :)

 Regards

 Bjarke



 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/How-is-your-mono-touch-setup-tp4657748.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] How is your mono touch setup?

2012-11-29 Thread Dean Cleaver
I work across 2 physical machines, but likewise I edit my MonoTouch projects in 
VS 2012, but I then usually check the code in to SVN and update on the MacBook 
to do further testing and stuff there.

Does make for a lot of checkins though.

-Original Message-
From: monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of bjarke
Sent: Thursday, November 29, 2012 08:55
To: monotouch@lists.ximian.com
Subject: [MonoTouch] How is your mono touch setup?

Hey Guys,

I was wondering how people are setting up their development setup.

I have a monodeveloper running in os x, while having a windows and visual 
studio running i vmware. Both using the same project in a shared folder.
This way I can switch back and forth because I like to work in visual studio 
however I need mono developer to run my ios app. This sometimes gives issues 
because it seems that windows is not keen on working in network folders :)

Regards

Bjarke



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-is-your-mono-touch-setup-tp4657748.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Auto network credentials

2012-11-29 Thread Jeff Stedfast
Looks like the fix hasn't landed in a release build yet, but Sebastien
checked and it is included in the mono that will be used for the next
release.

Jeff

On Thu, Nov 29, 2012 at 5:10 AM, Nic Wise n...@fastchicken.co.nz wrote:

 YES! That is exactly my issue.

 Is that in a shipping build of MT? If so, which one? Might also
 explain why I've not had errors back from users on this one for a
 while :)

 Thanks Jeff!

 On Wed, Nov 28, 2012 at 11:41 PM, Jeff Stedfast j...@xamarin.com wrote:
  Hi Nic,
 
  That sounds a lot like this bug:
  https://bugzilla.xamarin.com/show_bug.cgi?id=7599
 
  Jeff
 
  On Wed, Nov 28, 2012 at 11:20 AM, Nic Wise n...@fastchicken.co.nz
 wrote:
 
  ... if anyone happens to be looking into the MT proxy code:
 
  If I set a proxy (using the iOS one, usually, but I think it happens
  if I do it in code too), then:
 
  GET https://api.dropbox.com etc (this works)
 
  GET https://api.someoneelse.com (this doesn't work - it calls
  api.dropbox.com and passes the url / query string for this request)
 
  needless to say, api.someoneelse.com doesn't understand dropbox api
  calls...
 
  I thought it was just RestSharp, as I can't repro consistently without
  using it, but I also can't see how RS would be doing it makes no
  sense.
 
  My answer has always been dont use a proxy. Or Onavo. Lucky most
  people dont' use them.
 
 
 
 
  On Wed, Nov 28, 2012 at 3:56 PM, Robert Reck rr...@keylogic.com
 wrote:
   I had something similar happen very recently. I was pulling data from
 a
   public US Government web service that did not require credentials,
 but I was
   getting the same type of proxy 407 error. My issue turned out to be
 related
   to a profile that was installed on my phone by another app (not
 mine). Even
   though I had uninstalled the app and tried to remove the profile
 previously,
   it was still stuck on there somehow and not visible when looking in
 the
   profile section.  I found it by pure luck when I re-installed the app
 in
   question and noticed that it thought the profile was still installed.
 I
   forced a re-install and then removed it successfully and my 407 errors
   ended.
  
   Not sure if this is your problem too, but I figured I'd mention it
 just
   in case.
   Bob
  
  
   -Original Message-
   From: monotouch-boun...@lists.ximian.com
   [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Jeffrey
 Stedfast
   Sent: Wednesday, November 28, 2012 10:50 AM
   To: Brad Moore
   Cc: monotouch@lists.ximian.com
   Subject: Re: [MonoTouch] Auto network credentials
  
   Hi Brad,
  
   This could just be a bug in MonoTouch. I'll try to look into this as
   soon as I can. You've submitted a bug report to bug ills already,
 right?
   (Pretty sure I saw one recently filed on this)
  
   Jeff
  
   Sent from my iPhone
  
   On Nov 26, 2012, at 2:25 AM, Brad Moore b.mo...@4pilabs.com.au
 wrote:
  
   Hey
   Trying to load some data off my server (xml data). I normally just
 use
   HttpWebRequest as I can set the utomaticDecompression to
   DecompressionMethods.GZip | DecompressionMethods.Deflate in order to
 use
   gzip compression of my data automatically.
  
   Recently a client has emailed me saying that it does not work from
   within his school. Sent out another copy of the app to him via
 TestFlightApp
   to get more debugging info from him and the app responds with a 407
 auth
   error. Since then I have set up a proxy on my computer which I
 redirect my
   iPhone traffic through to test on.
  
   My original setup was like so,
  
   HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
   request.CachePolicy = new
   HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
   request.Proxy = null;
   request.AutomaticDecompression = DecompressionMethods.GZip |
   DecompressionMethods.Deflate; WebResponse response =
   request.GetResponse();
  
   and then so on from there.
  
   I'd set Proxy to null because in most cases the user would not be
   behind a proxy and this cut off 1-2 seconds of proxy resolving.
 There is
   code later to catch this and then re-create the HttpWebRequest but
 by not
   nulling the proxy, which I thought would be default proxy.
 Apparently not
   so...
  
   I tried to then get the default proxy settings of the device.
  
   CFProxySettings proxy0 = CFNetwork.GetSystemProxySettings();
   IWebProxy proxy1 = WebRequest.GetSystemWebProxy(); IWebProxy proxy2 =
   HttpWebRequest.DefaultWebProxy; IWebProxy proxy3 =
   HttpWebRequest.GetSystemWebProxy();
   IWebProxy proxy4 = CFNetwork.GetDefaultProxy();
  
   proxy1 - proxy4 have null for the credentials. proxy0 contains proxy
   information which I need such as proxy url, port, username, but no
   password...
  
   I manually made a WebProxy with my credentials
  
   WebProxy webProxy = new WebProxy(proxy0.HTTPProxy, proxy0.HTTPPort);
   webProxy.Credentials = new NetworkCredential(user, pass);
   request.Proxy = webProxy;
  
   and this works.
   Falling 

Re: [MonoTouch] Auto network credentials

2012-11-29 Thread Nic Wise
Sweet, thanks. I'll try to reproduce once it's out.

Cheers Jeff - much appreciated, nice spotting.

On Thu, Nov 29, 2012 at 3:40 PM, Jeff Stedfast j...@xamarin.com wrote:
 Looks like the fix hasn't landed in a release build yet, but Sebastien
 checked and it is included in the mono that will be used for the next
 release.

 Jeff


 On Thu, Nov 29, 2012 at 5:10 AM, Nic Wise n...@fastchicken.co.nz wrote:

 YES! That is exactly my issue.

 Is that in a shipping build of MT? If so, which one? Might also
 explain why I've not had errors back from users on this one for a
 while :)

 Thanks Jeff!

 On Wed, Nov 28, 2012 at 11:41 PM, Jeff Stedfast j...@xamarin.com wrote:
  Hi Nic,
 
  That sounds a lot like this bug:
  https://bugzilla.xamarin.com/show_bug.cgi?id=7599
 
  Jeff
 
  On Wed, Nov 28, 2012 at 11:20 AM, Nic Wise n...@fastchicken.co.nz
  wrote:
 
  ... if anyone happens to be looking into the MT proxy code:
 
  If I set a proxy (using the iOS one, usually, but I think it happens
  if I do it in code too), then:
 
  GET https://api.dropbox.com etc (this works)
 
  GET https://api.someoneelse.com (this doesn't work - it calls
  api.dropbox.com and passes the url / query string for this request)
 
  needless to say, api.someoneelse.com doesn't understand dropbox api
  calls...
 
  I thought it was just RestSharp, as I can't repro consistently without
  using it, but I also can't see how RS would be doing it makes no
  sense.
 
  My answer has always been dont use a proxy. Or Onavo. Lucky most
  people dont' use them.
 
 
 
 
  On Wed, Nov 28, 2012 at 3:56 PM, Robert Reck rr...@keylogic.com
  wrote:
   I had something similar happen very recently. I was pulling data from
   a
   public US Government web service that did not require credentials,
   but I was
   getting the same type of proxy 407 error. My issue turned out to be
   related
   to a profile that was installed on my phone by another app (not
   mine). Even
   though I had uninstalled the app and tried to remove the profile
   previously,
   it was still stuck on there somehow and not visible when looking in
   the
   profile section.  I found it by pure luck when I re-installed the app
   in
   question and noticed that it thought the profile was still installed.
   I
   forced a re-install and then removed it successfully and my 407
   errors
   ended.
  
   Not sure if this is your problem too, but I figured I'd mention it
   just
   in case.
   Bob
  
  
   -Original Message-
   From: monotouch-boun...@lists.ximian.com
   [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of Jeffrey
   Stedfast
   Sent: Wednesday, November 28, 2012 10:50 AM
   To: Brad Moore
   Cc: monotouch@lists.ximian.com
   Subject: Re: [MonoTouch] Auto network credentials
  
   Hi Brad,
  
   This could just be a bug in MonoTouch. I'll try to look into this as
   soon as I can. You've submitted a bug report to bug ills already,
   right?
   (Pretty sure I saw one recently filed on this)
  
   Jeff
  
   Sent from my iPhone
  
   On Nov 26, 2012, at 2:25 AM, Brad Moore b.mo...@4pilabs.com.au
   wrote:
  
   Hey
   Trying to load some data off my server (xml data). I normally just
   use
   HttpWebRequest as I can set the utomaticDecompression to
   DecompressionMethods.GZip | DecompressionMethods.Deflate in order to
   use
   gzip compression of my data automatically.
  
   Recently a client has emailed me saying that it does not work from
   within his school. Sent out another copy of the app to him via
   TestFlightApp
   to get more debugging info from him and the app responds with a 407
   auth
   error. Since then I have set up a proxy on my computer which I
   redirect my
   iPhone traffic through to test on.
  
   My original setup was like so,
  
   HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
   request.CachePolicy = new
   HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore);
   request.Proxy = null;
   request.AutomaticDecompression = DecompressionMethods.GZip |
   DecompressionMethods.Deflate; WebResponse response =
   request.GetResponse();
  
   and then so on from there.
  
   I'd set Proxy to null because in most cases the user would not be
   behind a proxy and this cut off 1-2 seconds of proxy resolving.
   There is
   code later to catch this and then re-create the HttpWebRequest but
   by not
   nulling the proxy, which I thought would be default proxy.
   Apparently not
   so...
  
   I tried to then get the default proxy settings of the device.
  
   CFProxySettings proxy0 = CFNetwork.GetSystemProxySettings();
   IWebProxy proxy1 = WebRequest.GetSystemWebProxy(); IWebProxy proxy2
   =
   HttpWebRequest.DefaultWebProxy; IWebProxy proxy3 =
   HttpWebRequest.GetSystemWebProxy();
   IWebProxy proxy4 = CFNetwork.GetDefaultProxy();
  
   proxy1 - proxy4 have null for the credentials. proxy0 contains proxy
   information which I need such as proxy url, port, username, but no
   password...
  
   I manually made a 

Re: [MonoTouch] How is your mono touch setup?

2012-11-29 Thread Karl Heinz Brehme Arredondo
I work on MonoDevelop/MonoTouch on Mac and the ASP.NET version of the same app 
is on Windows, a VMWare like you, with solutions and project on Windows 8 
Visual Studio 2012 Web, linking files from \\sharedfolder provided by VMWare. 
So if I create a ViewController on MonoDevelop, then I link it xib.cs file from 
Windows and add the ASPX there to use it.

On Windows Phone, RT and MonoAndroid I plan to do the same, but Android from 
MonoDevelop on Mac. So thats it, a new page/form/activity will need to link the 
new file on each solution/project, and will need to draw controls on each 
designer, and that's it, all UI manipulation will be made once, and all 
libraries too. May bugs were corrected on that way, working in the other 
project with linked files.

VM of Windows 8 is on a SSD secondary 120GB HD replacing DVD drive of MacBook 
Air 2011. And Windows makes VMWare Fusion to free about 700MB of MacOS RAM than 
Windows 7. Backups of MacOS made by Time Machine on a Time Capsule, backups of 
Windows 8 projects made by windows 8 new backup that appear to mimmic Time 
Machine.

Karl

Em 29/11/2012, às 13:23, Dean Cleaver escreveu:

 I work across 2 physical machines, but likewise I edit my MonoTouch projects 
 in VS 2012, but I then usually check the code in to SVN and update on the 
 MacBook to do further testing and stuff there.
 
 Does make for a lot of checkins though.
 
 -Original Message-
 From: monotouch-boun...@lists.ximian.com 
 [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of bjarke
 Sent: Thursday, November 29, 2012 08:55
 To: monotouch@lists.ximian.com
 Subject: [MonoTouch] How is your mono touch setup?
 
 Hey Guys,
 
 I was wondering how people are setting up their development setup.
 
 I have a monodeveloper running in os x, while having a windows and visual 
 studio running i vmware. Both using the same project in a shared folder.
 This way I can switch back and forth because I like to work in visual studio 
 however I need mono developer to run my ios app. This sometimes gives issues 
 because it seems that windows is not keen on working in network folders :)
 
 Regards
 
 Bjarke
 
 
 
 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/How-is-your-mono-touch-setup-tp4657748.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] How is your mono touch setup?

2012-11-29 Thread James Darbyshire
I used to do the VM thing when I needed to do something on Windows,
but I found that it really caned the RAM and CPU on my MacBook.

Recently I have set up my old desktop to run Windows, and left it on
all the time. When I want to do dev on the Windows box I just RDP into
it.

I use MonoDevelop for 100% of my Mono* development, and only use VS if
I _really_ have to (e.g. SharePoint work).

I suppose what I am doing is the polar opposite of something like MacInCloud.

Regards,

James

On 30/11/2012, at 1:55 AM, bjarke j...@itai.dk wrote:

 Hey Guys,

 I was wondering how people are setting up their development setup.

 I have a monodeveloper running in os x, while having a windows and visual
 studio running i vmware. Both using the same project in a shared folder.
 This way I can switch back and forth because I like to work in visual studio
 however I need mono developer to run my ios app. This sometimes gives issues
 because it seems that windows is not keen on working in network folders :)

 Regards

 Bjarke



 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/How-is-your-mono-touch-setup-tp4657748.html
 Sent from the MonoTouch mailing list archive at Nabble.com.

___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Load images and store locally

2012-11-29 Thread Dennis Welu
Wow. That's perfect, Nic. I've probably been walking right by that class for
some time. Thanks much! I tested quickly for the rest of my web calls works
great, have yet to test through NSUrlConnection but will be interested to
see. In any case, great info.

And yeah, btw, even though they didn't call it CookieJar it seems like a lot
of code out there names instances of the class by that name. :-)



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Load-images-and-store-locally-tp4657738p4657757.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch