VPN auto connect leads problem when accessing the private url in my app through HttpClient

Hi,
I have app to execute my WCF service through HttpClient(). I configured my SSL VPN in sonicwall mobile connect with auto connect option. So when accessing my internal WCF service, Wp 8.1 asks the VPN connection screen. If I follow the screen, VPN
has connected and return to my App. But here I received "An error has ocurred. While sending request to server" in Wp 8.1 screen. Even if I debug through visual studio I couldn't catch or track the actual error in code. Below the code I am using
for your reference. Kindly help me in this regard.
try
HttpClientHandler handler = new HttpClientHandler(); ;
handler.AllowAutoRedirect = false;
HttpClient httpClient = new HttpClient(handler);
httpClient.MaxResponseContentBufferSize = 256000;
HttpResponseMessage response = await httpClient.GetAsync("http://172.0.0.11/xxxxx/Service1.svc/xxxxCheck/" + usr.username + "/" + App.DeviceId + "/" + usr.password);
response.EnsureSuccessStatusCode();
string content = await response.Content.ReadAsStringAsync();
List<EmcUserResult> userres = JsonConvert.DeserializeObject<List<EmcUserResult>>(content);
if (userres.FirstOrDefault().Allowed == "TRUE")
NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative)); // call MainPage
else
MessageBox.Show("This User was blocked. Contact admin.");
catch (Exception ex)
MessageBox.Show(ex.Message);

I recommend that you check the network traffic by using either Wireshark or Fiddler to see what's going on with the request.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.

Similar Messages

  • Have a problem when accessing the firewall

    Hi,
    Could you pls see this problem?
    http://www.4shared.com/photo/Lc_pdye4/fig108.html
    It keeps on prompting me if I choose "Redo" above till I have chosen "quit".
    Best regards

    Please remember to always provide information about your OS and how to reproduce your problem when asking a question. There are fundamental differences between the various Linux distributions and access methods and there are no universal solutions.
    From what I can gather, the NX client should ask you for your SSH login. You need to specify your administrator account here. If you have terminal access, you can also try to type "sudo su -", which will prompt you for your current account password and then log you in as user root. This works provided your account has been given sudo access. Once you have root access, type "gnome-control-center" form the command prompt to open the YaST control center..

  • Getting a java error when accessing the /nwa url

    Hi.
    We've recently updated our netweaver portal and application server from SPS19 to SPS21.
    Now we receive an error message when try to open the url http://<server>/nwa. After entering the credentials we get
      500   Internal Server Error
      SAP J2EE Engine/7.00
      Application error occurred during request processing.
      Details:   java.lang.NoSuchMethodError: com/sap/security/core/util/imp/LogonUtils.decryptURL(Ljava/lang/String;)Ljava/lang/String;
    Exception id: [000D600ADD7B003400000283000D007A000484CF7CDC6E88]
    Any suggestions?
    Thanks.
    Ralph.

    Hi.
    The installation worked without any problems. No error messages during the update process.
    The default trace gives
    application [logon] Processing HTTP request to servlet [LogonServlet] finished with error. The error is: java.lang.NoSuchMethodError: com/sap/security/core/util/imp/LogonUtils.decryptURL(Ljava/lang/String;)Ljava/lang/String;
    at com.sap.security.core.logonadmin.ServletAccessToLogic.sendRedirect(ServletAccessToLogic.java:242)
    at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.doLogon(SAPMLogonLogic.java:916)
    at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.uidPasswordLogon(SAPMLogonLogic.java:578)
    at com.sap.security.core.sapmimp.logon.SAPMLogonLogic.executeRequest(SAPMLogonLogic.java:158)
    at com.sap.security.core.sapmimp.logon.SAPMLogonServlet.doPost(SAPMLogonServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Any suggestions on this?
    Thanks.
    Ralph.

  • HT3204 when accessing the itunes store it is showing error message not connected to internet.   But computer is connected to internet

    when accessing the itunes store it is showing error message not connected to internet.   But computer is connected to internet. Plz I need  help

    Naomi Blewit wrote:
    Hi,
    I am going on iTunes and it is saying that I am not connected to the internet but I am. I was on iTunes last a few days ago. Please help...
    iTunes is a program on your computer, it is not "the Internet".  The fact that the program runs has no bearing on Internet connectivity.
    Maybe if a little more information was supplied, like version of the Operating system on the computer and version of iTunes, then a little more assistance could be provided.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • Itunes stops working when accessing the store what needs to be done to get it working again?

    itune stops working when accessing the store.  What needs to be done to get it working again?

    Hey Baitmaster61!
    Here is an article that will help you troubleshoot this issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    If you are still experiencing issues with reaching the iTunes Store, you may also need to reference this article:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • TS1967 i have a problem when i try to update or install apps in my ipad, and a message come up says "can not connect to Itunes Store", anyone know why? please advise. however i had update all my detail of payment method.

    i have a problem when i try to update or install apps in my ipad, and a message come up says "can not connect to Itunes Store", anyone know why? please advise. however i had update all my detail of payment method.

    Settings > General > Reset > Reset Network Settings.
    Power cycle the router.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • ITunes 12 crashes when accessing the store

    I installed Yosemite and iTunes 12.0.1. Since then, it crashes when accessing the store (wolor wheel)
    I re-installed iTunes. It works with my Library when my iMac is disconnected from the net, but as soon as iTunes tries to access the store and refresh iTunes Match… Bang. It freezes again and I have to re-install it (it freezes again when I restart, even when disconnected).
    Ho can I solve this, please ?

    I was having the same issue. iTunes Match had little or none to do with it. Basically anything that required logging into the store (I needed to re auth). Frustrating because iTunes now makes you use your apple id for the tiniest little tasks, and worse yet, it shows logged in, but it really isn't. Anytime I tried to authenticate it would time out and then cause iTunes and a library file to not respond, causing me to force quit. I did notice my wireless connection was suffering. I rebooted my router and tried again, voila! connected and authorized! no time outs! iTunes 12.0.1.26 seems to be a little sensitive to weak connections?

  • ITunes for Windows: Error -9812 when accessing the iTunes Store

    So here is the situation. When I try to access our iTunes U site from the public link it works great, when I go thru the link that has me authenticicate it works on macs but on PC's I get the error message "iTunes for Windows: Error -9812 when accessing the iTunes Store" it's happening all thru our campus with PC users. Any ideas?????

    We're having similar connection issues, and the error log on our web server says something about a certificate error. I noted that last year on this date there were messages related to certificates. Is it possible they are updated every Dec 2, and we should count on some down time?
    Katie

  • Certain Users getting double logon screen when accessing the Portal

    I have about 15 users out of 2500 that are getting the double logon screen when accessing the Portal. It's very intermittent, one minute it works fine the next minute it doesn't. I've tried almost everything on the client side, opened a case with Microsoft. Still no help.
    Does anyone have any ideas on this?

    The users are getting a login page with 2 login boxes. they can login, but it does not single sign them in.
    Yes we are using SPNEGO, and it works for everyone except these users, and it does work sometimes for them
    Yes it is possible these users are using NTLM becasue I see some events in the event viewer on the client indicating this
    You find an event similar to the following event in the system event log:
    Event Type: Warning
    Event Source: LSASRV
    Event Category: SPNEGO (Negotiator)
    Event ID: 40961
    Date: 10/27/2004
    Time: 1:00:50 PM
    User: N/A
    Computer: COMPUTER
    Description: The Security System could not establish a secured connection with the server ldap/DC01.corp.com/[email protected] No authentication protocol was available.
    Edited by: Jeremy Rafuse on Dec 21, 2007 7:26 PM

  • My itunes crash when accessing the library of IMatch

    My itunes crash when accessing the library of IMatch. I'm using Windows 7 64 bit.
    this error is occurring in the last update.

    solved the problem by removing the file TSLicense.

  • Vpn auto connect

    Hi, I were using the VPN auto Connect script from Fardjad's blog.
    on i
    o
    on idle
              tell application “System Events”
                        tell current location of network preferences
                                  set myConnection to the service “VPN”
                                  if myConnection is not null then
                                            if current configuration of myConnection is not connected then
                                                      connect myConnection
                                            end if
                                  end if
                        end tell
                        return 120
              end tell
    end idle
    It worked fine until I updatetd to 10.7.3 and beyond.
    http://fardjad.wordpress.com/2010/11/11/vpn-auto-connect-script/

    I recommend that you check the network traffic by using either Wireshark or Fiddler to see what's going on with the request.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • BT HomeHub 4.0 Crashing when Accessing the Default...

    Recently i have been trying to access the bt homehub 4.0 default ip page to access the homehubs settings i have done this before and worked perfectly however recently when i have tried to access this page to port forward some ports i have had total internet faliure as soon as the page loads the router flashes orange nobody can connect to it then after a hard reset we can access the internet however when accessing the deafult gateway for the router i does the same thing so i am unable to access my router's settings, or port forward.
    Has anybody Solved this or can anybody help me to solve this?
    Thanks in advance .

    Hi Next_Hype,
    I haven't heard of this happening before, have you tried a factory reset on the Hub to see if this makes any difference?  You can do this by pressing the reset pinhole button for 20 seconds.
    Let us know if this works?
    Neil
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • I have a problem when installing the Developer Suite

    Hello,
    I'm new to Oracle and I'm having a problem when installing the Developer Suite 10g. I have the Oracle Database 11g installed, but when I try to istall the developer, it gives me this error: "Oracle Developer Suite 10g cannot be installed into an existing Oracle9i 9.2.0.1.0 oe higher Oracle Home", Although I have installed the same thing twice before and it was working.
    Please help me with this :(

    Hi user;
    I'm new to Oracle and I'm having a problem when installing the Developer Suite 10g. I have the Oracle Database 11g installed, but when I try to istall the developer, it gives me this error: "Oracle Developer Suite 10g cannot be installed into an existing Oracle9i 9.2.0.1.0 oe higher Oracle Home", Although I have installed the same thing twice before and it was working.What is your OS? If you are linux-unix level you are making installation wiht same user of Oracle Db11g? Did you try to create new Oracle_home and set it before start installation?
    Regard
    Helios

Maybe you are looking for

  • 1 week old iPhone4 stuck in Recovery mode loop

    Hi there today when I connected my ip4, iTunes asked me to download and install the latest iOS 4.0.2, after that it went into a recovery mode loop and I cant do muh more. I have so far tried to restore using 3 other pc´s, xp and Win7. Tried different

  • Different delivery challan and invoice in trading plant

    Hi,   We have depot plant,  in which we purchase material from vendors, importer  as well as with in india  , our requirement is there should be separate invoice for materials  if it is purchase from different vendore e,f   Material   ,A,B,C,D materi

  • Fireworks won't recognize mouse clicks on the canvas/I cannot select items.

    Recently, Fireworks has been acting weird.  When I try to click on an item on my canvas (with the pointer tool), such as a shape, a bitmap, or some text, I can see the corners light up as I hover over it, but when I click, nothing happens.  I have no

  • An error occurred: Save document failed / An error occurred while saving the document: PATH (HDB 00055)

    Hello Colleagues, I am creating an analysis in build 576, everything goes well, the algorithm calculates the needed values, but when I try to save the analysis, I receive the following error message: "An error occurred: Save document failed / An erro

  • Cannot open websites using firefox

    firefox stopped working double click on icon nothing happens uninstalled firefox rebooted reinstalled firefox rebooted still double click on any icon with fired=fox does nothing does not show firefox as an option to pick as a browser