Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
SecurityException
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jirka  
View profile  
 More options Jan 31, 2:17 am
Newsgroups: microsoft.public.sharepoint.windowsservices
From: "Jirka" <ha...@acm.cz>
Date: Fri, 30 Jan 2009 16:17:49 +0100
Local: Sat, Jan 31 2009 2:17 am
Subject: SecurityException
Hi all

my dev machine: virtual Windows Server 2008 x64, WSS 3.0 SP1 x64,
VisualStudio 2008, VSeWSS 1.3 (CTP)

I'm trying to get my webpart to WSS, deploying is correct, webpart is in
website galery list, but if I want to import to any site, it doesn't work.
I debug this situation and got:

            this.ExportMode = WebPartExportMode.All;

            string url = SPContext.Current.Site.Url; // this line works
correct (got the right url)
            SPSite site = new SPSite(url);                // this line thows
exception

the complete exception

System.Security.SecurityException was unhandled by user code
  Message="Request failed."
  Source="Microsoft.SharePoint"
  StackTrace:
       at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri,
Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at klienti.klienti_sql..ctor()
       at T_90428866_5b97_4ebf_a295_118a24ff54b2.CreateInstance()
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at
System.Web.UI.WebControls.WebParts.WebPartManager.ImportWebPart(XmlReader
reader, String& errorMessage)
  InnerException:

the similar exception is thown by the try to connect to MSSQL ....

I have no idea how this situation resolve ... I tryied to run WSS under
domain administrator, connecting to SQL as domain administrator, add user
account in Central Administration > Application Management > Policy for Web
Application but with no effect :( ...

Regards

JH


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Reply"
 
View profile  
 More options Oct 29, 10:19 pm
Newsgroups: microsoft.public.sharepoint.windowsservices
From: Satish Kumar Upadhyay
Date: Thu, 29 Oct 2009 04:19:04 -0700
Local: Thurs, Oct 29 2009 10:19 pm
Subject: Reply
Create SPUserToken and use like below:

string url = SPContext.Current.Site.Url;
SPUserToken token=site.RootWeb.GetToken...
SPSite site = new SPSite(url,token);      

Hope this will solve ur problem :)

Jirka wrote:

SecurityException
30-Jan-09

Hi all

my dev machine: virtual Windows Server 2008 x64, WSS 3.0 SP1 x64,
VisualStudio 2008, VSeWSS 1.3 (CTP)

I'm trying to get my webpart to WSS, deploying is correct, webpart is in
website galery list, but if I want to import to any site, it doesn't work.
I debug this situation and got:

            this.ExportMode = WebPartExportMode.All;

            string url = SPContext.Current.Site.Url; // this line works
correct (got the right url)
            SPSite site = new SPSite(url);                // this line thows
exception

the complete exception

System.Security.SecurityException was unhandled by user code
  Message="Request failed."
  Source="Microsoft.SharePoint"
  StackTrace:
       at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri,
Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at klienti.klienti_sql..ctor()
       at T_90428866_5b97_4ebf_a295_118a24ff54b2.CreateInstance()
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at
System.Web.UI.WebControls.WebParts.WebPartManager.ImportWebPart(XmlReader
reader, String& errorMessage)
  InnerException:

the similar exception is thown by the try to connect to MSSQL ....

I have no idea how this situation resolve ... I tryied to run WSS under
domain administrator, connecting to SQL as domain administrator, add user
account in Central Administration > Application Management > Policy for Web
Application but with no effect :( ...

Regards

JH

Previous Posts In This Thread:

On Friday, January 30, 2009 10:17 AM

Jirka wrote:

SecurityException
Hi all

my dev machine: virtual Windows Server 2008 x64, WSS 3.0 SP1 x64,
VisualStudio 2008, VSeWSS 1.3 (CTP)

I'm trying to get my webpart to WSS, deploying is correct, webpart is in
website galery list, but if I want to import to any site, it doesn't work.
I debug this situation and got:

            this.ExportMode = WebPartExportMode.All;

            string url = SPContext.Current.Site.Url; // this line works
correct (got the right url)
            SPSite site = new SPSite(url);                // this line thows
exception

the complete exception

System.Security.SecurityException was unhandled by user code
  Message="Request failed."
  Source="Microsoft.SharePoint"
  StackTrace:
       at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri,
Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at klienti.klienti_sql..ctor()
       at T_90428866_5b97_4ebf_a295_118a24ff54b2.CreateInstance()
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at
System.Web.UI.WebControls.WebParts.WebPartManager.ImportWebPart(XmlReader
reader, String& errorMessage)
  InnerException:

the similar exception is thown by the try to connect to MSSQL ....

I have no idea how this situation resolve ... I tryied to run WSS under
domain administrator, connecting to SQL as domain administrator, add user
account in Central Administration > Application Management > Policy for Web
Application but with no effect :( ...

Regards

JH

EggHeadCafe - Software Developer Portal of Choice
Call a .NET Webservice using XMLHTTP, XMLDOM, XPATH and VBScript
http://www.eggheadcafe.com/tutorials/aspnet/a78b7a2d-2156-43f1-980b-6...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
 
View profile  
 More options Oct 29, 10:22 pm
Newsgroups: microsoft.public.sharepoint.windowsservices
From: Satish Kumar Upadhyay
Date: Thu, 29 Oct 2009 04:22:22 -0700
Local: Thurs, Oct 29 2009 10:22 pm
Subject: Reply
Create SPUserToken and use like below:
string url = SPContext.Current.Site.Url;
SPUserToken token=SPContext.Current.Site.RootWeb.EnsureUser(txtUserID.Text).UserToken;
SPSite site = new SPSite(url,token);  

Hope this will solve ur prob :)

Jirka wrote:

SecurityException
30-Jan-09

Hi all

my dev machine: virtual Windows Server 2008 x64, WSS 3.0 SP1 x64,
VisualStudio 2008, VSeWSS 1.3 (CTP)

I'm trying to get my webpart to WSS, deploying is correct, webpart is in
website galery list, but if I want to import to any site, it doesn't work.
I debug this situation and got:

            this.ExportMode = WebPartExportMode.All;

            string url = SPContext.Current.Site.Url; // this line works
correct (got the right url)
            SPSite site = new SPSite(url);                // this line thows
exception

the complete exception

System.Security.SecurityException was unhandled by user code
  Message="Request failed."
  Source="Microsoft.SharePoint"
  StackTrace:
       at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri,
Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at klienti.klienti_sql..ctor()
       at T_90428866_5b97_4ebf_a295_118a24ff54b2.CreateInstance()
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at
System.Web.UI.WebControls.WebParts.WebPartManager.ImportWebPart(XmlReader
reader, String& errorMessage)
  InnerException:

the similar exception is thown by the try to connect to MSSQL ....

I have no idea how this situation resolve ... I tryied to run WSS under
domain administrator, connecting to SQL as domain administrator, add user
account in Central Administration > Application Management > Policy for Web
Application but with no effect :( ...

Regards

JH

Previous Posts In This Thread:

On Friday, January 30, 2009 10:17 AM

Jirka wrote:

SecurityException
Hi all

my dev machine: virtual Windows Server 2008 x64, WSS 3.0 SP1 x64,
VisualStudio 2008, VSeWSS 1.3 (CTP)

I'm trying to get my webpart to WSS, deploying is correct, webpart is in
website galery list, but if I want to import to any site, it doesn't work.
I debug this situation and got:

            this.ExportMode = WebPartExportMode.All;

            string url = SPContext.Current.Site.Url; // this line works
correct (got the right url)
            SPSite site = new SPSite(url);                // this line thows
exception

the complete exception

System.Security.SecurityException was unhandled by user code
  Message="Request failed."
  Source="Microsoft.SharePoint"
  StackTrace:
       at Microsoft.SharePoint.Administration.SPPersistedObject.ToString()
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri,
Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at klienti.klienti_sql..ctor()
       at T_90428866_5b97_4ebf_a295_118a24ff54b2.CreateInstance()
       at System.Web.HttpRuntime.FastCreatePublicInstance(Type type)
       at
System.Web.UI.WebControls.WebParts.WebPartManager.ImportWebPart(XmlReader
reader, String& errorMessage)
  InnerException:

the similar exception is thown by the try to connect to MSSQL ....

I have no idea how this situation resolve ... I tryied to run WSS under
domain administrator, connecting to SQL as domain administrator, add user
account in Central Administration > Application Management > Policy for Web
Application but with no effect :( ...

Regards

JH

On Thursday, October 29, 2009 7:18 AM

Satish Kumar Upadhyay wrote:

Reply
Create SPUserToken and use like below:

string url = SPContext.Current.Site.Url;
SPUserToken token=site.RootWeb.GetToken...
SPSite site = new SPSite(url,token);      

Hope this will solve ur problem :)

EggHeadCafe - Software Developer Portal of Choice
Custom Binary Search in ArrayLists with IComparer
http://www.eggheadcafe.com/tutorials/aspnet/4d7ea57b-cf32-4d7d-90dd-3...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google