Click here to Skip to main content
16,012,843 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: SharePoint Help Pin
alexfromto14-Aug-07 11:41
alexfromto14-Aug-07 11:41 
GeneralRe: SharePoint Help Pin
amit.arora15-Aug-07 9:52
amit.arora15-Aug-07 9:52 
GeneralRe: SharePoint Help Pin
alexfromto15-Aug-07 10:43
alexfromto15-Aug-07 10:43 
QuestionTabControl Problem Pin
mindgameny13-Aug-07 6:11
mindgameny13-Aug-07 6:11 
AnswerRe: TabControl Problem Pin
GuyThiebaut15-Aug-07 4:33
professionalGuyThiebaut15-Aug-07 4:33 
QuestionAccessing printer status information Pin
Hendrik Debedts13-Aug-07 4:22
Hendrik Debedts13-Aug-07 4:22 
AnswerRe: Accessing printer status information Pin
Vasudevan Deepak Kumar14-Aug-07 4:17
Vasudevan Deepak Kumar14-Aug-07 4:17 
QuestionE_Accessdenied Pin
VahagnSC13-Aug-07 3:33
VahagnSC13-Aug-07 3:33 
Hello all!!
I have written a program in c# which use System.Windows.Forms.Webbrowser class.

I do something like this:

System.Windows.Forms.HtmlElementCollection refcol= webbrowser1.document.window.Frames[0].Frames[0].GetEelmentsByTagName("A");

When I load the page from apache2 on my computer it works perfectly.
But when I load it from remote server an exception occurs. This is the Text of exception:
/////////////////////////////////////////////////////
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2.GetDocument()
at System.Windows.Forms.HtmlWindow.get_Document()
at My_Web.create_elementscollection() in C:\Documents and Settings\Vahagn\My Documents\Visual Studio 2005\Projects\OGAME\OGAME\Class1.cs:line 49
at OGAME.Form1.button5_Click(Object sender, EventArgs e) in C:\Documents and Settings\Vahagn\My Documents\Visual Studio 2005\Projects\OGAME\OGAME\Form1.cs:line 53
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

and bla-bla-bla...
////////////////////////////////////////////////////////////

I think the problem is in secutity level. Do you know how to grant require permissions to my application? Or, may be the problem is other....
It has to be some way to solve this problem. I am administrator and I have to be able to allow my program to do anything it wants.
I'm beginner in programming, so I ask to use as less therms as you can.
Thanks in advance.


You can do everything!

AnswerRe: E_Accessdenied Pin
karle18-Aug-07 8:53
karle18-Aug-07 8:53 
GeneralRe: E_Accessdenied [modified] Pin
VahagnSC19-Aug-07 6:49
VahagnSC19-Aug-07 6:49 
GeneralRe: E_Accessdenied Pin
karle20-Aug-07 0:17
karle20-Aug-07 0:17 
QuestionDeny filesystem access Pin
Yevgeny Efter12-Aug-07 23:39
Yevgeny Efter12-Aug-07 23:39 
AnswerRe: Deny filesystem access Pin
originSH12-Aug-07 23:57
originSH12-Aug-07 23:57 
GeneralRe: Deny filesystem access Pin
Yevgeny Efter13-Aug-07 1:09
Yevgeny Efter13-Aug-07 1:09 
GeneralRe: Deny filesystem access Pin
originSH13-Aug-07 1:36
originSH13-Aug-07 1:36 
GeneralRe: Deny filesystem access Pin
Vasudevan Deepak Kumar14-Aug-07 4:26
Vasudevan Deepak Kumar14-Aug-07 4:26 
Questionproblem in opening the .net projects Pin
murugan00912-Aug-07 19:34
murugan00912-Aug-07 19:34 
AnswerRe: problem in opening the .net projects Pin
originSH12-Aug-07 23:56
originSH12-Aug-07 23:56 
AnswerRe: problem in opening the .net projects Pin
Vasudevan Deepak Kumar14-Aug-07 4:27
Vasudevan Deepak Kumar14-Aug-07 4:27 
Questionfolder getting locked by adding file to printqueue Pin
gvisgr812-Aug-07 18:31
gvisgr812-Aug-07 18:31 
AnswerRe: folder getting locked by adding file to printqueue Pin
Vasudevan Deepak Kumar14-Aug-07 5:20
Vasudevan Deepak Kumar14-Aug-07 5:20 
QuestionDelete file without sending to recyclebin Pin
Ylno10-Aug-07 9:14
Ylno10-Aug-07 9:14 
AnswerRe: Delete file without sending to recyclebin Pin
Dave Kreskowiak10-Aug-07 10:02
mveDave Kreskowiak10-Aug-07 10:02 
GeneralRe: Delete file without sending to recyclebin Pin
Giorgi Dalakishvili10-Aug-07 10:32
mentorGiorgi Dalakishvili10-Aug-07 10:32 
GeneralRe: Delete file without sending to recyclebin Pin
Dave Kreskowiak10-Aug-07 10:38
mveDave Kreskowiak10-Aug-07 10:38 

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.