Author Topic: Need a little help getting iPhone going  (Read 5972 times)

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Need a little help getting iPhone going
« on: December 18, 2010, 09:17:28 am »
I previously had my iPhone connected to Elve.  I am running Windows 7 with IIS 7.5 and .net framework 4.   At some point it failed and I am just getting back to look at it.  This is the error when manually browsing from a local browser;
 
 HTTP Error 500.19 - Internal Server Error  The requested page cannot be accessed because the related configuration data for the page is invalid.   
   Detailed Error Information   
ModuleIIS Web Core
NotificationBeginRequest
HandlerNot yet determined
Error Code0x80070021
Config ErrorThis configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File\\?\C:\ProgramData\Codecore Technologies\Elve\WebSite\web.config
   
Requested URLhttp://localhost:33904/
Physical PathC:\ProgramData\Codecore Technologies\Elve\WebSite
Logon MethodNot yet determined
Logon UserNot yet determined
       Config Source
    3:    <system.webServer>        4:       <handlers>        5:          <add name="j9sp" path="*.j9sp" verb="*" type="WebLibrary.J9SP_HttpHandler, WebLibrary" />    
Thanks!
Dave

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #1 on: December 19, 2010, 01:33:39 am »
It sounds like you integrated Elve with IIS by adding the http handler for j9sp files.

Be sure the associated IIS application pool target .NET 2.0 and not 4.0.

Also be sure you have a bin directory in your web site path which includes the WebLibrary and other needed dlls.

I can give more details on these if you like but 1st make sure you have the .net version set right and at least have the dll files out in the bin folder.
John Hughes
Codecore Technologies

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #2 on: December 19, 2010, 08:39:43 am »
John;  Well it looks like I have all of the above set correctly.  DLL's are in place, Web Cofiguration file is in place and looks correct, The site is set for .Net 2, The path looks correct. 
From the iPhone, I can not really tell what the issue is as it continually tries to reconnect.  From a browser session, I get the error that the browser is looking for the configuration file. 
 
See the attachments below..
Thanks!
Dave

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #3 on: December 19, 2010, 05:05:32 pm »
I installed Elve on a windows 7 machine and added an Application in the root web site and it simply worked the first time.

In IIS I right clicked the root "Default Web Site" node and selected "Add Application..." and used the following settings:

  Alias: ha
  Application Pool:  ASP.NET V2.0 (which is an integrated .net 2.0 pool for me)
  Physical path: C:\ProgramData\Codecore Technologies\Elve\WebSite

I then navigated to the following address and it worked the 1st time:

  http://localhost/ha/default.j9sp

You can ignore the "Authorization warning you see in IIS since I see that all the time in all websites.

By reading the error information from ASP.NET it looks like you have a configuration file set to disable the system.webServer / handlers section. Do you have any .config files in the parent directories of your application path?



John Hughes
Codecore Technologies

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #4 on: December 19, 2010, 07:52:27 pm »
John;
That is great that it worked for you.  I am not so lucky.  I deleted the old site and settings and started over as in your post.  I also checked that there is no additional configuration file in the root.  I now receive this error;
 
 HTTP Error 500.21 - Internal Server Error  Handler "j9sp" has a bad module "ManagedPipelineHandler" in its module list   
I will continue to try different things as time allows this week. 
 
 
Thanks!
Dave

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #5 on: December 19, 2010, 08:06:01 pm »
There's a lot of information on the internet about the error you are seeing... although I don't know how much of it is helpful.

It looks like there is an issue with the handler mapping in your setup.

Did you walkthrough the Manual Installation section of the docs? If so you did not need to and that may have actually introduced issues in your IIS configuration for Elve.

You might also ensure that asp.net is properly registered on your system.  I have had to do this many times for other reasons. Run the following from a command line:

  C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

Here's the article I pulled that from:

  http://forums.iis.net/t/1149449.aspx

John Hughes
Codecore Technologies

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #6 on: January 30, 2011, 11:33:36 am »
John;  I need to bring this back to the surface to get thing working so that I can be consistent with the interface design.
 
First, I want to get local web access working, then the iPhone interface.  Both will not work currently under Windows 7.  Nothing special going on with the machine.  I did not load the lite weight web server and I am attempting to use the built in IIS 7.5 
 
Thanks!
Dave

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #7 on: January 30, 2011, 11:40:26 am »
John;  Also, look at your online manual concerning this topic.  Most of the links at the bottom of the page are broken.  I also think that the documentation may be incorrect sicne you introdiced an additional directory layer in your installation of the system web site files. 
 
http://codecoretechnologies.com/content/Configuring%20IIS%20for%20J9SP.ashx
 
Thanks!
Dave

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #8 on: January 30, 2011, 07:44:49 pm »
Well I got the iPhone working after wrangeling with my router and my firewall.  I had to make some holes and get the port open.  It works, but I would agree with others that the interface is rather slow  as compaired to similar control interfaces on the same nework and computer.  Lets just say it works, but needs work. 
Thanks!
Dave

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #9 on: February 01, 2011, 06:54:53 am »
John;  Also, look at your online manual concerning this topic.  Most of the links at the bottom of the page are broken.  I also think that the documentation may be incorrect sicne you introdiced an additional directory layer in your installation of the system web site files. 
 
http://codecoretechnologies.com/content/Configuring%20IIS%20for%20J9SP.ashx

Thanks, I fixed the links... it looks like the remote websites changed their urls.
John Hughes
Codecore Technologies

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #10 on: February 19, 2011, 10:13:58 am »
John;
I want to get access remotely via my iPhone.  How should the iPhone app be configured?  My IP via my ISP changes often, so I use a service to always keep my connection dynamic.  I have a URL which always points to my server like myhomedns.org.  Can I simply place my server URL into the "server" field with the port in the "Port" field?  How should the URL be formated?  http://myhomeserverdns.org or  http://myhomeserverdns.org:33907 or no http://  ??  is the app designed to accept a URL or only an IP address?  Can not seem to get it working. 
I do have good access when within range of my wireless router and simply use my local machine IP in the server field. 
Thanks!
Dave

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #11 on: February 19, 2011, 10:18:33 am »
Figured it out - No HTTP and No port after the URL.  Works well.  I will update the WIKI. 
Thanks!
Dave

DaveB

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Need a little help getting iPhone going
« Reply #12 on: February 19, 2011, 10:39:20 am »
John:  Is there an iPhone section, examples and how-to in the WIKI?  Can not locate it if there is.  Seems like there should be a section. 
Thanks!
Dave

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #13 on: February 23, 2011, 01:06:54 pm »
John;
I want to get access remotely via my iPhone.  How should the iPhone app be configured?  My IP via my ISP changes often, so I use a service to always keep my connection dynamic.  I have a URL which always points to my server like myhomedns.org.  Can I simply place my server URL into the "server" field with the port in the "Port" field?  How should the URL be formated?  http://myhomeserverdns.org or  http://myhomeserverdns.org:33907 or no http://  ??  is the app designed to accept a URL or only an IP address?  Can not seem to get it working. 
I do have good access when within range of my wireless router and simply use my local machine IP in the server field.

Are we still talking about a web browser here (such as the iphone safari app)? If so, most web browsers (all that I know of) allow you to add the "http://" at the beginning and if you don't add it then it is implied. You can then add the port at the end of the domain name like ":80". If no port is added then port 80 is implied. (Keep in mind that most residential ISP's block port 80).

I tested all of the following on an iphone and they all worked:

yahoo.com
http://yahoo.com
http://yahoo.com:80
yahoo.com:80
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Need a little help getting iPhone going
« Reply #14 on: February 23, 2011, 01:08:16 pm »
John:  Is there an iPhone section, examples and how-to in the WIKI?  Can not locate it if there is.  Seems like there should be a section.

I don't think I understand what you are specifically looking for? Are you looking for a section which describes how to use the safari web browser on an iphone? Or just how to use a web browser to connect to Elve's web server?
John Hughes
Codecore Technologies