0
votes
1answer
10 views

Web part SecurityException — System.Net.WebPermission failed — Farm Solution

I am getting an error with trying to make a HttpWebRequest inside a web part, I'm getting a SecurityException saying that System.Net.WebPermission failed. While searching for an answer, I came across ...
1
vote
0answers
28 views

Where i can override the OnInit method

I need to write the following farm solution to override the InInit method as follow:- protected override void OnInit(EventArgs e) { var request = HttpContext.Current.Request; ...
0
votes
0answers
197 views

Error:- The name 'Request' does not exist in the current context

I have added a web part in a farm solution:- using System; using System.ComponentModel; using System.Web.UI.WebControls.WebParts; namespace SharePointProject5.nv { [ToolboxItemAttribute(false)] ...
0
votes
2answers
223 views

Creating public properties in sandboxed webpart solutions

I'm trying to port a farm solution to a sandboxed one, and I can't figure out how to port this piece of code: [ToolboxItem(false)] public partial class vClockPartSB : ...