Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Object Deleting Issue

Vote:
 

In our project we do have following code segment to delete event entry

IClient client = SearchClient.Instance;
client.Delete(eventId);

But this is not working inside the our existing project. But if I try the same code in a separate test application (with same configurations), it works. So, I would like to know what was the issue. Also don't know is this happening due to security issue. The biggest problem is I don't know how to inspect find service related issues. Appreciate any help on this matter 

#132616
Aug 13, 2015 20:33
Vote:
 

Do you get any error messages?

#132627
Aug 14, 2015 10:20
Vote:
 

Hi

I've used Fiddler in the past to inspect the raw requests coming to/from Find. You need to install Fiddler as a proxy for the internet connections in IIS. This means you can inspect all the traffic going to/from your site in IIS. As I remember you need to configure network settings in web.config and also set Fiddler up to act as a proxy.

Let me know if you think this might be useful? If so I'll post a blog on how to configure it so I don't forget next time :)!

David

#132629
Edited, Aug 14, 2015 10:53
Vote:
 

@ Per Magne

No i'm not getting any error message

@ David

Yes, that would be great if you could post a blog explaining how to configure fiddler to capturer IIS inbound and outbound traffic

#132644
Aug 14, 2015 15:05
Vote:
 

The Delete method returns an DeleteResult object, ref http://world.episerver.com/documentation/Class-library/?documentId=find/8/98F95097

Could you check to see if that gives you any pointers to what the problem could be?

#132668
Aug 17, 2015 8:02
Vote:
 

Thanks everyone for your help. As per David's advice, I have configured my application (referring: Configure .NET applications) to capture IIS outbound traffic by putting following code in to web.config

<system.net>
 <defaultProxy>
  <proxy bypassonlocal="False" usesystemdefault="True" proxyaddress="http://127.0.0.1:8888"/>
 </defaultProxy>
</system.net>

Then I find out that after object is deleted, it was re-index by another event. So fixing that resolved the problem

#132878
Aug 19, 2015 21:25
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.