Hi Everyone,
I am creating a custom module where I am trying to access the social media pages on click button like fb, twitter etc. I am using Process.start for this. Here is my code:
string fb = "www.facebook.com";
if (Settings.Contains("Facebook_Url"))
{
fb = Settings["Facebook_Url"].ToString();
}
lc.AddLog("Log Entry", "FB_Click method has value = " + fb, PortalSettings, UserId, EventLogController.EventLogType.ADMIN_ALERT);
Process.Start(fb);
When I click button to open the page is gives me error as follow:
ExceptionHash:AY3pjrg+wiWZHssY8r54i0c0AGo=
Message:Access is denied
StackTrace:
InnerMessage:Access is denied
InnerStackTrace:
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Christoc.Modules.CustomModule.View.FB_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
if anyone knows solution for this issue kindly assist me.
Thank you !!!