Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionActivating child form via right mouse click Pin
marzk23-May-06 12:47
marzk23-May-06 12:47 
QuestionMulti-threading & Listening Sockets Pin
Guinness4Strength23-May-06 12:04
Guinness4Strength23-May-06 12:04 
AnswerRe: Multi-threading & Listening Sockets Pin
David Stone23-May-06 13:15
sitebuilderDavid Stone23-May-06 13:15 
Questionhow to write >, <, &to XML file Pin
donkaiser23-May-06 9:26
donkaiser23-May-06 9:26 
AnswerRe: how to write >, <, &to XML file Pin
donkaiser23-May-06 9:33
donkaiser23-May-06 9:33 
GeneralRe: how to write >, <, &to XML file Pin
Robin Panther23-May-06 10:44
Robin Panther23-May-06 10:44 
AnswerRe: how to write >, <, &to XML file Pin
donkaiser23-May-06 10:54
donkaiser23-May-06 10:54 
QuestionException of type 'System.Security.SecurityException' occured Pin
Patricker23-May-06 8:27
Patricker23-May-06 8:27 
I'm stuck on this one, really bad.

Exact Error Message:
An unhandled exception of type 'System.Security.SecurityException' occurred in CheckPageUpdates.exe

Additional information: Request failed.


If I run my application from my local box it works perfectly. If I run the app off of the Network it fails giving the above error message.

Now I know what this issue normally is, it's about not having your Machine->LocalIntranet_Zone setup to allow your program to run with enough rights. So I created a key using sn and added it to the assembly, built my program, then i loaded the key into my Machine->All_Code by adding another group and give it full permissions. This seemed to solve nothing. My program has about 10 lines and it communicates with a webservice which I also wrote.

CODE:

static void Main() <br />
		{			<br />
			new CheckPageUpdates();<br />
		}<br />
<br />
		public CheckPageUpdates()<br />
		{<br />
			try<br />
			{<br />
				PageModified.PageModifiedService pms = new PageModified.PageModifiedService();<br />
<br />
				string strAddress = pms.CheckPageUpdated(Environment.GetEnvironmentVariable("username"));<br />
<br />
				if(strAddress != string.Empty)<br />
				{<br />
					Process iexplore = new Process();<br />
<br />
					iexplore.StartInfo.FileName  = "iexplore.exe";<br />
					iexplore.StartInfo.Arguments = strAddress;<br />
<br />
					iexplore.Start();<br />
				}<br />
			}<br />
			catch(Exception ex)<br />
			{<br />
				MessageBox.Show(ex.ToString());	<br />
			}<br />
		}


What this does is it hands off the username of the currently logged in user to the webservice which then checks to see if this user has seen a webpage recently enough or if they need to see it again. It then returns a web address, or string.Empty, depending on whether or not they should load a page.

When the code fails and I load the debugger it shows me that it failed at the bolded underlined point.

Thanks a bunch for at least reading this Smile | :)


--Peter
AnswerRe: Exception of type 'System.Security.SecurityException' occured Pin
James Gupta23-May-06 9:21
professionalJames Gupta23-May-06 9:21 
GeneralRe: Exception of type 'System.Security.SecurityException' occured Pin
Patricker23-May-06 10:07
Patricker23-May-06 10:07 
GeneralRe: Exception of type 'System.Security.SecurityException' occured Pin
leppie23-May-06 10:15
leppie23-May-06 10:15 
GeneralRe: Exception of type 'System.Security.SecurityException' occured Pin
Patricker23-May-06 10:21
Patricker23-May-06 10:21 
GeneralRe: Exception of type 'System.Security.SecurityException' occured Pin
James Gupta23-May-06 13:29
professionalJames Gupta23-May-06 13:29 
Questionwindows form sizing Pin
reshsilk23-May-06 8:27
reshsilk23-May-06 8:27 
AnswerRe: windows form sizing Pin
James Gupta23-May-06 9:23
professionalJames Gupta23-May-06 9:23 
QuestionUltraCombo in Infragistics Pin
Neel0723-May-06 8:16
Neel0723-May-06 8:16 
Questiona stupid problem about DateTime Pin
da vinci coder23-May-06 7:55
da vinci coder23-May-06 7:55 
AnswerRe: a stupid problem about DateTime Pin
Stefan Troschuetz23-May-06 8:16
Stefan Troschuetz23-May-06 8:16 
GeneralRe: a stupid problem about DateTime Pin
da vinci coder23-May-06 8:57
da vinci coder23-May-06 8:57 
Questiondatagridview Pin
kjosh23-May-06 6:58
kjosh23-May-06 6:58 
AnswerRe: datagridview Pin
mr_1234523-May-06 7:21
mr_1234523-May-06 7:21 
GeneralRe: datagridview Pin
kjosh23-May-06 10:51
kjosh23-May-06 10:51 
AnswerRe: datagridview Pin
mr_1234523-May-06 13:34
mr_1234523-May-06 13:34 
QuestionICompareable vs IComparer [modified] Pin
Rizwan Rathore23-May-06 6:36
Rizwan Rathore23-May-06 6:36 
AnswerRe: ICompareable vs IComparer [modified] Pin
Robert Rohde23-May-06 6:53
Robert Rohde23-May-06 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.