Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Deploying Search Unit - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
RCDAwebmaster
#1 Posted : Wednesday, June 3, 2015 6:57:21 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
I have a windows server running windows server 2008 with IIS 7.5.

I tried installing Search Unit into my production website which resides in the following directory:
C:\inetpub\wwwroot\Production\search\

I had to install /Keyoti_SearchEngine_Web_Common at the root of my website

when I pull up the site: 127.0.0.1/search/search_results.aspx, I get the following error:
500 error from server.
URL:/Keyoti_SearchEngine_Web_Common/SearchService.svc/GetLocationAndContentCategories
keyotiSearch.useWCFService=true

How do I fix this?

Mike
Jim
#2 Posted : Wednesday, June 3, 2015 7:11:36 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Mike, the question is where is it getting a reference to \Staging\ from?

We use ~/ to refer to the application root, so it sounds like maybe ASP.NET is pointing ~/ to \Staging\ for some reason - as if the application is running under \Production but somehow IIS maps the application to \Staging.

Anyway, could I see the complete error about the folder being missing, maybe it has some context that will help me understand where it's coming from.

Thanks
Jim
-your feedback is helpful to other users, thank you!


RCDAwebmaster
#3 Posted : Wednesday, June 3, 2015 7:14:13 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
Jim wrote:
Mike, the question is where is it getting a reference to \Staging\ from?

We use ~/ to refer to the application root, so it sounds like maybe ASP.NET is pointing ~/ to \Staging\ for some reason - as if the application is running under \Production but somehow IIS maps the application to \Staging.

Anyway, could I see the complete error about the folder being missing, maybe it has some context that will help me understand where it's coming from.

Thanks
Jim



Shoot, I was trying to edit that out before you read it. Staging was coming from a bad binding in IIS. I fixed that so it's not an issue.
Jim
#4 Posted : Wednesday, June 3, 2015 9:29:23 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
No problem.

It would help to enable detailed errors (if you're running away from localhost)
See: http://keyoti.com/produc...age/ServerSecurity.html


Otherwise, to fix a 500 on the service the best thing is to visit it in the browser directly (ie past the URL in to the address bar)

http://host:port/Keyoti_SearchEngine_Web_Common/SearchService.svc/GetLocationAndContentCategories

that might give more detail too.

Either way, more info will help identify the issue.

Jim
-your feedback is helpful to other users, thank you!


RCDAwebmaster
#5 Posted : Wednesday, June 3, 2015 10:32:05 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
This is the error I get:

Server Error in '/Keyoti_SearchEngine_Web_Common' Application.
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item

I believe it is due to the fact that my server hosts 2 websites on port 80 and 2 sites on port 81.

How do I set 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true

or specify 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'?

Is that in the web.config of the .net program or in IIS?
Jim
#6 Posted : Wednesday, June 3, 2015 11:51:08 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
It would be the web.config

Eg
<configuration>
<system.serviceModel>

<serviceHostingEnvironment multipleSiteBindingsEnabled=”true” >

</serviceHostingEnvironment>

</system.serviceModel>



Jim
-your feedback is helpful to other users, thank you!


RCDAwebmaster
#7 Posted : Thursday, June 4, 2015 1:49:09 PM
Rank: Advanced Member

Groups: Registered

Joined: 3/31/2015
Posts: 38
Thanks for the assistance. I added the code to the web.config and at first nothing happened. Then I copied the web.config file into the 'Keyoti_SearchEngine_Web_Common' since it's running as a separate application under my website. Now I can search till my heart's content.

I hope this helps others.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.