question

Joe S avatar image
0 Likes"
Joe S asked Joe S commented

Error when running FlexSim2017.2 through IIS

When I try to access any FlexSim 2017.2 model through my IIS instance I am getting the error when accessing the URL /webserver/socket.io/?EIO=3&transport=polling&t=M0iejIb

"Failed to load resource: the server responded with a status of 500 (URL Rewrite Module Error.)"

I've verified that the URL Rewrite is setup correctly (per the user manual). The rest of the page loads fine it is just the model that never shows up. I've checked the IISNode error logs and nothing appears to be in those logs. What else can I do to troubleshoot this and get it working with IIS?

FlexSim 17.2.2
webserveriis
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jacob Gillespie avatar image
2 Likes"
Jacob Gillespie answered Joe S commented

EDIT:

Nevermind what I posted before. I just remembered that setting up the URL Rewrite rules is done for you when you install the FlexSim WebServer.

Although the URL Rewrite rules are already setup for you. You need to add HTTP_CONNECTION to the server variables. One of the URL Rewrite rules uses this variable but can only do so if you have added it.

Here is how to add the server variable:

Go to URL Rewrite under the Default Web Site, still in the IIS Manager.

  • Click View Server Variables...
  • Click Add... and then enter HTTP_CONNECTION into the popup.
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joe S avatar image Joe S commented ·

Thanks @Jacob Gillespie but I already verified that my rewrites were setup and I still get the error. Unless I am missing something that is right in front of me, it all looks correct to me.

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

@Joe S Did you add HTTP_CONNECTION as a server variable?

Which version of the URL rewrite module are you using?

Which version of IIS are you using?

0 Likes 0 ·
Joe S avatar image Joe S Jacob Gillespie ♦ commented ·
@Jacob Gillespie I didnt see that in the instructions. What value does it need?
0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

@Joe S See my edit above of how to add the HTTP_CONNECTION server variable.

0 Likes 0 ·
Joe S avatar image Joe S Jacob Gillespie ♦ commented ·

@Jacob Gillespie that seems to have fixed it. Thanks!

0 Likes 0 ·