Hi, I have an existing ASP.NET 2.0 site that has a new requirment for a
document repository with a roll out for early next year. WSS-3 seems like the
obvious choice to leverage, however I only want to use it on the back end.

In the following code, I am attempting to access the sharepoint site
programtically. The site is in the same virtual directory as the application
running.
SPGlobalAdmin objAdmin = new SPGlobalAdmin();
SPUser objUser = null;
foreach (SPVirtualServer objServer in objAdmin.VirtualServers)
{
if (objServer.Port ==
int.Parse(ConfigurationSettings.AppSettings["WSSPort"]))
{

foreach (SPSite objSite in objServer.Sites)
{
objUser = objSite.AllWebs[0].Users[userName];
break;
}
break;
}
}
return new SPSite(ConfigurationSettings.AppSettings["WSSUrl"],
objUser.UserToken).AllWebs[0];

objServer.Sites seems has length to it, but when I attempt to access any
site within it I get an exception in
Microsoft.SharePoint.Library.SPRequestInternalClass.GetTokenOfCurrentUser.

Any ideas on what I could possibly be doing wrong? I've added Everyone to my
local Administrators group so windows permissions should not be the issue.

What may be a related problem, the WSS WebServices are acessible from my
Central Administrator Site but not my Project Site (they are on different
virtual servers). When I try to access the web service on my project site I
get the html describing the service, but no WSDL.

Thank you for any assistance,

Jason Lind

Re: WSS3 Access Issue by Engelbert

Engelbert
Tue Sep 12 22:53:08 CDT 2006

This newsgroup is for admin issues.

The comparable newsgroup for programming issues is
microsoft.public.sharepoint.windowsservices.development

However in the case of v3 questions you would be better posting to the new
newsgroup

microsoft.public.sharepoint.development_and_programming

as these new newsgroups came into place in connection with v3 Beta 2 and are
taking over "SharePoint" (all products/versions) questions from the older
product specific newsgroups.

Engelbert

"Jason L Lind" <JasonLLind@discussions.microsoft.com> wrote in message
news:4EE8EFA7-F1C2-4244-BEB2-7E7287AFD1D8@microsoft.com...
> Hi, I have an existing ASP.NET 2.0 site that has a new requirment for a
> document repository with a roll out for early next year. WSS-3 seems like
> the
> obvious choice to leverage, however I only want to use it on the back end.
>
> In the following code, I am attempting to access the sharepoint site
> programtically. The site is in the same virtual directory as the
> application
> running.
> SPGlobalAdmin objAdmin = new SPGlobalAdmin();
> SPUser objUser = null;
> foreach (SPVirtualServer objServer in objAdmin.VirtualServers)
> {
> if (objServer.Port ==
> int.Parse(ConfigurationSettings.AppSettings["WSSPort"]))
> {
>
> foreach (SPSite objSite in objServer.Sites)
> {
> objUser = objSite.AllWebs[0].Users[userName];
> break;
> }
> break;
> }
> }
> return new SPSite(ConfigurationSettings.AppSettings["WSSUrl"],
> objUser.UserToken).AllWebs[0];
>
> objServer.Sites seems has length to it, but when I attempt to access any
> site within it I get an exception in
> Microsoft.SharePoint.Library.SPRequestInternalClass.GetTokenOfCurrentUser.
>
> Any ideas on what I could possibly be doing wrong? I've added Everyone to
> my
> local Administrators group so windows permissions should not be the issue.
>
> What may be a related problem, the WSS WebServices are acessible from my
> Central Administrator Site but not my Project Site (they are on different
> virtual servers). When I try to access the web service on my project site
> I
> get the html describing the service, but no WSDL.
>
> Thank you for any assistance,
>
> Jason Lind



WSS3 Access Issue by Eva

Eva
Wed Nov 08 08:45:40 CST 2006

Hello Jason,
I am bashing my head against the same problem, I get a lengthy COM exception when trying to create an SPSite object from a class library of mine deployed as a COM+ component. If you've had any luck solving the issue, could I please ask you to send me it?

Thank you very much in advance.

Eva

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

RE: WSS3 Access Issue by JasonLLind

JasonLLind
Wed Nov 08 12:41:02 CST 2006

Sorry, no luck. I decided to wait till it went gold.

Jason

"Eva" wrote:

> Hello Jason,
> I am bashing my head against the same problem, I get a lengthy COM exception when trying to create an SPSite object from a class library of mine deployed as a COM+ component. If you've had any luck solving the issue, could I please ask you to send me it?
>
> Thank you very much in advance.
>
> Eva
>
> EggHeadCafe.com - .NET Developer Portal of Choice
> http://www.eggheadcafe.com
>