webparts / SPS / COM+ woes

Discussion in 'ASP .Net Security' started by Steve Tighe via .NET 247, Mar 11, 2005.

  1. Hi

    I have been struggling for a few days on and off to get to thebottom of this one so here we go.
    I have an XP machine running .netframwoerk 1.1 and I have acomponent(configured as a server) running under componentservices. Also on this machine I have sql server 2000 and VS.Net 2003. The component that runs under component services is a.net component. My second machine is a Win svr 2003 box. onwhich is also installed Share point services and vs .net 2003.
    I exported the component proxy from the xp machine and installedit on the 2003 box(I have enabled the xtra com+ network stuffvia add/remove programs). I built a daft win forms app on the2003 server that uses the proxy and returns data. This worksfine, I then built a an asp.net app and deployed it to the 2003server, this also uses the proxy and this also works fine. Nexton the 2003 server I build a webpart that also uses the proxyand deploy that on the 2003 server, I add the webpart to my homepage in SPS. This fails.
    The interestig bit about the error I receive below is that when Idebug the webpart it fails when I instanciate the class. here isthe error:

    Error:: Access is denied.
    INNER:: STACK:: atSystem.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32errorCode, IntPtr errorInfo) atSystem.EnterpriseServices.Thunk.Proxy.CoCreateObject(TypeserverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess,String& uri) atSystem.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) atSystem.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) atPhoenixs.OASIS.SPSIntegration.CustomerAccountLookup.CustomerAccountLookupWP.btAccSearch_Click(Object sender, EventArgs e) inc:\developmentprojects\customeraccountlookup\customeraccountlookup.cs:line159

    Thanks in advance, any ideas much appreciated.

    From: Steve Tighe

    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    Steve Tighe via .NET 247, Mar 11, 2005
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmFuamFuIGFzIHVzdWFs?=

    Accessing the Login Information on SPS via ASP .net

    =?Utf-8?B?UmFuamFuIGFzIHVzdWFs?=, Jun 25, 2004, in forum: ASP .Net
    John Timney \(Microsoft MVP\)
    Jun 25, 2004
  2. G Dean Blake

    debugging SPs in VS.NET

    G Dean Blake, Feb 1, 2005, in forum: ASP .Net
    G Dean Blake
    Feb 2, 2005
  3. John A Grandy

    2.0 : config GridView to use SPs ?

    John A Grandy, Feb 15, 2006, in forum: ASP .Net
    Angelo Cook
    Feb 20, 2006
  4. John

    Asp.net app under SPS

    John, Jun 20, 2006, in forum: ASP .Net
  5. =?Utf-8?B?QmFyZW4=?=

    Accessing XMLDocument using SPS PageViewer Control

    =?Utf-8?B?QmFyZW4=?=, Jan 5, 2007, in forum: ASP .Net
    Jan 5, 2007

Share This Page