Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, May 15, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: OleDb Provider error and ASP.NET 2.0 site
Sara
Posts: 10
 
OleDb Provider error and ASP.NET 2.0 siteYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 08 4:41 AM
The error I get appears after a second or third connection happens to the site. If I only have one connection it works just fine, obviously this is useless. I run the page, it works, then run the page again (different tab or even different browser), it sometimes runs but most of the times it fails and I get the following error:

OleDbException 0x80004005 Failed to execute internal SalesLogix procedure

System.Data.OledDb.oleDbCommand.ExecuteCommandTextForSInfleResult(tagDBPARAMS dbParams, Object& executeResult)

The only thing I can imagine is that the connection is either kept open or something with the provider remains locked. If I restart IIS or wait until the site times out, I can run the page without the error again.
Also, the page redirects me to another page, and all the work that I do works correctly. It's just when trying to run my login screen several times that causes the error. Particularly after getting the server and alias lists.
And I use Ryan's code for getting the server and alias lists. My code is in C# and all the connections are done in a using statement.

Has this happened to anybody else? What's the fix?
I appreciate any help you can give me as I've been dealing with this issue for days now and can't get a handle on it.

Thanks!

[Reply][Quote]
Steve Robertson
Posts: 146
 
Re: OleDb Provider error and ASP.NET 2.0 siteYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 08 5:23 AM
Hi Sara,

Is SLXSystem.exe set to run as a service?

Cheers,

Steve
[Reply][Quote]
Sara
Posts: 10
 
Re: OleDb Provider error and ASP.NET 2.0 siteYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 08 6:27 AM
Yes it is.

I also restarted the service and got the same result.
[Reply][Quote]
Steve Robertson
Posts: 146
 
Re: OleDb Provider error and ASP.NET 2.0 siteYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 08 6:44 AM
Hi Sara,

Are you disposing your objects in your code?

"The using statement allows the programmer to specify when objects that use resources should release them. The object provided to the using statement must implement the IDisposable interface. This interface provides the Dispose method, which should release the object's resources."

Cheers,

Steve
[Reply][Quote]
Sara
Posts: 10
 
Re: OleDb Provider error and ASP.NET 2.0 siteYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Aug 08 7:12 AM

The code is the same as the one from
http://slxdeveloper.org/page.aspx?action=viewarticle&articleid=57
except that I have the connections on a using statement.
But if it was a problem with the code like that, even when dealing with the same page I would get that error on subsequent queries, and I don't. I get the error if I open the page several times.

Any idea what it might be?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 5/15/2024 12:01:32 AM