Unable to login to Flex Web Viewer- HTTP Request error

3119
7
09-09-2010 08:15 PM
HelenYang
New Contributor II
Hi,

I have trouble to login to the Flex Web edition. I used the default login name with no token used. I didn't use the token, because both AGS and database are on the local pc. The AGS has no security enabled.

When I click Login, I got error message "HTTP Request error".

I don't know if there is any error log, and I have no idea what caused the error.

Please help. I attached the config.xml file.

I've tested the map service of AOI, it works fine.

BTW, I couldn't find the WMServer entry from the ArcGIS Server Service Directory. I am not sure if the entry is correct.

Thanks for your help.

Helen
0 Kudos
7 Replies
HelenYang
New Contributor II
Hi,

I have trouble to login to the Flex Web edition. I used the default login name with no token used. I didn't use the token, because both AGS and database are on the local pc. The AGS has no security enabled.

When I click Login, I got error message "HTTP Request error".

I don't know if there is any error log, and I have no idea what caused the error.

Please help. I attached the config.xml file.

I've tested the map service of AOI, it works fine.

BTW, I couldn't find the WMServer entry from the ArcGIS Server Service Directory. I am not sure if the entry is correct.

Thanks for your help.

Helen


Some addtional information.

I found an entry in the web site's log file as:

"GET /ArcGIS/rest/services/WMX-Infrastructure-hdunn/WMServer/community/users/hdunn 404".

Since the "WMX-Infrastructure-hdunn" is not shown in the service directory, I am not sure what caused the error.

How to test if the WMServer entry is correct?

Thanks

Helen
0 Kudos
TopeBello
Occasional Contributor III
Hi Helen,

I see from your configuration file that you are running .NET ArcGIS Server. The workflow service URL is not in the correct format. currently you have "http://localhost/ArcGIS/rest/services/WMX-Infrastructure-hdunn/WMServer". I don't think the hyphenated service name would cause a problem, but I would not use them just to have a more simple service name. I would for now call it WMXhdunn
It should be "http://localhost/wmrest/services/WMXhdunn/WMServer"
If you type this into a browser, you should get back some JSON response back from the server. The response will look like text but it will have the service description.
If this is not the case, please let me know what error you receive when you test this out.
Remember to restart your IIS after configuring the server object.
Also, verify the the user hdunn is a valid workflow manager user.

Thanks,
Tope
0 Kudos
HelenYang
New Contributor II
Hi, Tope,

When I tried the http://localhost/wmrest/services/WMXHDunn/WMServer

I got the error message:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Error 404.

At Server install\server\user\cfg\WMXHDunn.WMServer.sts, it says the service is running.

The user hdunn is the postinstallation user.

What else can I check?

BTW, I have my ArcGIS Viewer for Flex running without problem. My plan is to use Workflow manager Server to manage a job that use web page to enter data, and desktop to perform QC. But I don't know how to pass the version to the web page.

Thanks

Helen
0 Kudos
TopeBello
Occasional Contributor III
Hi Helen,

The ArcGIS Flex viewer is implemented differently from the ArcGIS Workflow Manager 10 if installed on ArcGIS Server .NET.
What is the operating system you are deploying the web application on? If this is XP, there are some additional things that you need to do to get this working.
Here is a link to an article to help guide you with this - http://resources.arcgis.com/content/kbase?fa=articleShow&d=38084

To accomplish version switching on a web mapping application, you will have to do some customization using a combination of the Workflow Manager tools/step to create the map (with the job version) and then using the AGSSOM tool for publishing the map service on the fly. Here is a link to the article of publishing a map service programatically - http://resources.esri.com/arcgisserver/adf/dotnet/index.cfm?fa=codeGalleryDetails&scriptID=16293


Thanks,
Tope
0 Kudos
HelenYang
New Contributor II
Hi Helen,

The ArcGIS Flex viewer is implemented differently from the ArcGIS Workflow Manager 10 if installed on ArcGIS Server .NET.
What is the operating system you are deploying the web application on? If this is XP, there are some additional things that you need to do to get this working.
Here is a link to an article to help guide you with this - http://resources.arcgis.com/content/kbase?fa=articleShow&d=38084

To accomplish version switching on a web mapping application, you will have to do some customization using a combination of the Workflow Manager tools/step to create the map (with the job version) and then using the AGSSOM tool for publishing the map service on the fly. Here is a link to the article of publishing a map service programatically - http://resources.esri.com/arcgisserver/adf/dotnet/index.cfm?fa=codeGalleryDetails&scriptID=16293


Thanks,
Tope


Hi, Tope,

First of all, thanks for the customised map service information. I will tried it out once I sort the workflow server out.

My environment is XP (SP3) and IIS 5.1. I've already done the above suggested steps. It still doesn't correctly.

Wonder any kind of debug tool I can use?

Helen
0 Kudos
TopeBello
Occasional Contributor III
I know that you followed the article that I sent. I think you might have missed the DLL mapping part of setting up the website.
After creating the website from the wmrest properties page,
Click on the configuration button on the Direcotory page (same page where you created the application)
Click Add to add the asapi dll from Executable. Make sure you change the file filters to DLL and browse to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
For Extension - Enter.*
Uncheck check the file exists option and click OK
Restart IIS and try hitting the workflow rest URL again.

Thanks,
Tope
0 Kudos
HelenYang
New Contributor II
Hi, Tope,

I did the configuration on the DEFAULT WEB SITE, instead of the wmrest folder, it worked.

I am not sure why it happened like that. But it did fixed the problem. I am in finally. Yeah.

Thanks for your help.

I am now ready to move on to the server job.

BTW, you mentioned about the customisation job for web entry in the previous post. Do you have example? That would be very helpful.

Again, really appreciate for your help.

Helen
0 Kudos