Select to view content in your preferred language

Unable to hit REST endpoint for mobile project

2508
2
03-25-2010 06:11 AM
JessicaValenti
Esri Contributor
According to the Help docs I should be able to hit the REST endpoint using: You can access the Web page and discover projects using its REST endpoint (http://myserver.mydomain.com/myinstance/mobile/rest/)
After replacing with my own machine name and instance, I'm getting HTTP error, Resource Not Found.

I have no issues getting to the Mobile Project Center from within ArcGIS Mobile and downloading the project to my device, so why no REST endpoint?

Looking through Help I also see: The individual mobile project files are located at <Web server name>\inetpub\wwwroot\ArcGIS\Mobile\<Catalog Name>\Projects\<Project Folder Name>\<Project Folder Name>.amp

However, my project files (Win7) are at: \\chatham\inetpub\wwwroot\ArcGIS\Mobile\ItemsRoot\daa15543d95e47bbbb381fc06cdf60a3\esriinfo\project

I am working with all defaults here, not doing anything beyond what Help tells me to do. So just looking to understand, why my projects are being stored in that location, but Mobile is still able to find them on the Project Server, but the REST endpoint is not being created? I saw a similar post suggesting you need to clear out any projects from wwwroot when installing beta 2, I did not do this.

Thanks in advance for any clarification on what I'm doing wrong.
0 Kudos
2 Replies
BillRose
Occasional Contributor
Did you ever resolve this? My mobile service seems to work, but I'm curious about the error returned when a request is sent via browser to the REST endpoint. The server error is: "Method failed. HRESULT = 0x80004003 : Invalid pointer".

The restlog error is reported as:
  ERROR:Object reference not set to an instance of an object.
   at ESRI.ArcGIS.REST.MobileServer.MobileServerHtmlFormatter.WriteBody()
   at ESRI.ArcGIS.REST.HtmlFormatter.WriteBodySection()
   at ESRI.ArcGIS.REST.HtmlFormatter.WriteResponse()

All other REST services are working as expected.

Btw, I'm using the following url:
http://myserver.mydomain.com/myinstance/rest/services/myservice/MobileServer.



According to the Help docs I should be able to hit the REST endpoint using: You can access the Web page and discover projects using its REST endpoint (http://myserver.mydomain.com/myinstance/mobile/rest/)
After replacing with my own machine name and instance, I'm getting HTTP error, Resource Not Found.

I have no issues getting to the Mobile Project Center from within ArcGIS Mobile and downloading the project to my device, so why no REST endpoint?

Looking through Help I also see: The individual mobile project files are located at <Web server name>\inetpub\wwwroot\ArcGIS\Mobile\<Catalog Name>\Projects\<Project Folder Name>\<Project Folder Name>.amp

However, my project files (Win7) are at: \\chatham\inetpub\wwwroot\ArcGIS\Mobile\ItemsRoot\daa15543d95e47bbbb381fc06cdf60a3\esriinfo\project

I am working with all defaults here, not doing anything beyond what Help tells me to do. So just looking to understand, why my projects are being stored in that location, but Mobile is still able to find them on the Project Server, but the REST endpoint is not being created? I saw a similar post suggesting you need to clear out any projects from wwwroot when installing beta 2, I did not do this.

Thanks in advance for any clarification on what I'm doing wrong.
0 Kudos
BillRose
Occasional Contributor
UPDATE: this issue went away after enabling Basic Authentication from the IIS 7 Authentication feature. ESRI Support stated that either Basic or Windows Authentication must be enabled for certain Mobile capabilities to function. This property is not set by the Post Installer in all cases.

So the REST endpoint shown below should always work. If it does not, then you may need to review IIS.

http://<server.domain.tld>/<instance>/rest/services/<serviceName>/MobileServer
0 Kudos