|
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.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 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!
|
|
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.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 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!
|
|
Rank: Member
Groups: Registered
Joined: 9/22/2010 Posts: 13
|
I have sent the files in an email.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 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!
|
|
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.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Good to know - and sorry for the hassle. -your feedback is helpful to other users, thank you!
|
|