System.Runtime.InteropServices.SEHException: External compon
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
System.Runtime.InteropServices.SEHException: External compon

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
troutbum
Guest





Posted: Sat Oct 16, 2004 12:19 am    Post subject: System.Runtime.InteropServices.SEHException: External compon Reply with quote

We are trying to integrate commerce server 2002 sp2 with an asp.net
application. We seemed to be having sparatic issues, that require us
to restart the IIS to get the application to work again. Below is the
declaration and the error is being thrown on 94. Any help would be
much appreciated.


94: _ProfileService.Initialize(_DictionaryConfig.Value("s_ProfileServiceConnectionString"))

Private _DictionaryConfig As APPHELPERLib.IDictionary
Private _ApplicationConfig As New APPHELPERLib.AppCfgClass
Private _ProfileService As New
Microsoft.CommerceServer.Interop.Profiles.ProfileService




External component has thrown an exception.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.SEHException:
External component has thrown an exception.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:


[SEHException (0x80004005): External component has thrown an
exception.]
Microsoft.CommerceServer.Interop.Profiles.ProfileServiceClass.Initialize(String
sConfigStore, String sCatalog) +0
ServiceCenterWarranty.BISSELL.ServiceCenterWarranty.DataAccess.Session.Authenticate()
in c:\inetpub\wwwroot\ServiceCenterWarranty\DataAccess\Session.vb:406
ServiceCenterWarranty.BISSELL.ServiceCenterWarranty.WarrantyForm.Page_Load(Object
sender, EventArgs e) in
c:\inetpub\wwwroot\ServiceCenterWarranty\WarrantyForm.aspx.vb:94
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
Back to top
David Messner [MSFT]
Guest





Posted: Fri Nov 19, 2004 3:40 am    Post subject: RE: System.Runtime.InteropServices.SEHException: External co Reply with quote

DO NO, I repeat DO NOT call ProfileService.Initialize more than once during
the lifetime of any application. It is intended to be created once and
reused from all requests within your application. Using it in the manner
you show below has been known to cause various problems in laboratory mice
and more importantly, is known to cause out of memory and other sorts of
issues in your application.

Same goes for the .NET version of this class, ProfileContext. It should be
created only once and shared across all request threads. This is created
for you if you include the CommerceProfileModule HttpModule in your
Web.config.

regards
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved.

--------------------
From: matt.torline@bissell.com (troutbum)
Newsgroups: microsoft.public.commerceserver.general
Subject: System.Runtime.InteropServices.SEHException: External component
has thrown an exception
Date: 15 Oct 2004 12:19:13 -0700
Organization: http://groups.google.com
Lines: 46
Message-ID: <36351922.0410151119.3afc6e34@posting.google.com>
NNTP-Posting-Host: 67.36.53.162
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1097867953 472 127.0.0.1 (15 Oct 2004 19:19:13
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 15 Oct 2004 19:19:13 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postnews1.google.com!not-for-ma
il
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14984
X-Tomcat-NG: microsoft.public.commerceserver.general

We are trying to integrate commerce server 2002 sp2 with an asp.net
application. We seemed to be having sparatic issues, that require us
to restart the IIS to get the application to work again. Below is the
declaration and the error is being thrown on 94. Any help would be
much appreciated.


94:
_ProfileService.Initialize(_DictionaryConfig.Value("s_ProfileServiceConnecti
onString"))

Private _DictionaryConfig As APPHELPERLib.IDictionary
Private _ApplicationConfig As New APPHELPERLib.AppCfgClass
Private _ProfileService As New
Microsoft.CommerceServer.Interop.Profiles.ProfileService




External component has thrown an exception.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.SEHException:
External component has thrown an exception.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:


[SEHException (0x80004005): External component has thrown an
exception.]

Microsoft.CommerceServer.Interop.Profiles.ProfileServiceClass.Initialize(Str
ing
sConfigStore, String sCatalog) +0

ServiceCenterWarranty.BISSELL.ServiceCenterWarranty.DataAccess.Session.Authe
nticate()
in c:\inetpub\wwwroot\ServiceCenterWarranty\DataAccess\Session.vb:406

ServiceCenterWarranty.BISSELL.ServiceCenterWarranty.WarrantyForm.Page_Load(O
bject
sender, EventArgs e) in
c:\inetpub\wwwroot\ServiceCenterWarranty\WarrantyForm.aspx.vb:94
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB