Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Build error - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
jebenson
#1 Posted : Wednesday, April 6, 2016 4:34:19 PM
Rank: Member

Groups: Registered

Joined: 9/22/2010
Posts: 13
Hello,

I have just upgraded to SearchUnit v6 (2015.6.15.213) from an older version. I have built the index with the new version, and can perform searches successfully. However, whenever I build the project, I get the following error:

The type or namespace name 'Web' does not exist in the namespace 'Keyoti.SearchEngine' (are you missing an assembly reference?)

The line of code that causes the error is:

protected global::Keyoti.SearchEngine.Web.SearchResult SearchResult1;

If I comment out this line, everything works as normal, but the next time I build the line of code gets put back in.

I have referenced all the Keyoti references available, and I have put every Keyoti .dll I can find into the project's bin directory, but I still get the build error.
Jim
#2 Posted : Wednesday, April 6, 2016 8:00:00 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi, you must have a control named SearchResult1 in your ASPX page. Can you compare the name and version specified in the Assembly directory (at the top of that ASPX page) against the name and version in your bin please?

Sometimes opening the ASPX in the designer view will fix it.

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


jebenson
#3 Posted : Tuesday, April 12, 2016 8:06:35 PM
Rank: Member

Groups: Registered

Joined: 9/22/2010
Posts: 13
The assembly version is 2015.6.15.213.

I have the following Keyoti dlls in my bin directory:

Keyoti2.SearchEngine.Core.dll 2015.6.15.213
Keyoti2.SearchEngine.License.dll 1.0.0.0
Keyoti2.SearchEngine.Suggestions.dll 2012.0.12.316
Keyoti2.SearchEngine.SuggestionsDictionary.dll 2010.0.0.0
Keyoti2.SearchEngine.Web.dll 2015.6.15.213
Keyoti2.Text.LemmaGenerator.dll 5.0.12.314
Keyoti2.Text.MSOffice.dll 1.0.2.1119

Opening the page in design view does not correct the issue.
Jim
#4 Posted : Wednesday, April 13, 2016 4:52:47 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Sorry, can I see the ASPX and also your web.config please - perhaps email to me at support at keyoti.com

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


jebenson
#5 Posted : Wednesday, April 13, 2016 6:03:20 PM
Rank: Member

Groups: Registered

Joined: 9/22/2010
Posts: 13
I have sent the files in an email.
Jim
#6 Posted : Thursday, April 14, 2016 6:16:20 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Sorry for the delay. I'm unsure what the problem is. Did you upgrade the project to .NET v4 as well? If so this might help http://stackoverflow.com...age-in-visual-studion-2

Specifically "update your web.config file to include the following <compilation debug="true" defaultLanguage="c#" targetFramework="4.0">"


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


jebenson
#7 Posted : Tuesday, April 19, 2016 4:13:24 PM
Rank: Member

Groups: Registered

Joined: 9/22/2010
Posts: 13
Well, I just removed the SearchResult control, removed all Keyoti references, built the solution successfully, added the Keyoti references back in, added a new SearchResult control, and it now builds properly.
Jim
#8 Posted : Tuesday, April 19, 2016 8:33:59 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Good to know - and sorry for the hassle.
-your feedback is helpful to other users, thank you!


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.