473,769 Members | 4,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Browser permissions in C# app

I have a C# app with an AxWebBrowser control.

I have a local HTML file that I'm using. That html has a java applet that it
runs that needs to access files locally, but I'm getting access denied
errors. How can I give the java applet access to those files? I assume it's
some sort of IE security issue but I can't figure out how to grant the
permissions.

Thanks.
Oct 7 '06 #1
2 2642
Fredo,

AxWebBrowser is an Interop to Internet Explorer, you cannot do with that
more than what is possible with IE. Therefore this is in my idea no C#
question but a Java Applet question.

I assume that Sun has newsgroups for that.

Cor

"Fredo" <fr***@hotmail. comschreef in bericht
news:5o******** *************** *******@giganew s.com...
>I have a C# app with an AxWebBrowser control.

I have a local HTML file that I'm using. That html has a java applet that
it runs that needs to access files locally, but I'm getting access denied
errors. How can I give the java applet access to those files? I assume
it's some sort of IE security issue but I can't figure out how to grant
the permissions.

Thanks.

Oct 8 '06 #2
Actually, I got around the Java problem. I don't really like the way I got
around it, but it works.

Now my problem is that the axWebBrowser control won't display the page. If I
load the page (a local HTML document with the javascript) in IE, it works
fine, but I've had to change security settings to do it.

I believe this means I need to implement IInternetSecuri tyManager and
IServiceProvide r, which I've done. What I can't figure out is how to hook
them into the browser control. Can anyone riddle me that?

Thanks.
"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:en******** ******@TK2MSFTN GP05.phx.gbl...
Fredo,

AxWebBrowser is an Interop to Internet Explorer, you cannot do with that
more than what is possible with IE. Therefore this is in my idea no C#
question but a Java Applet question.

I assume that Sun has newsgroups for that.

Cor

"Fredo" <fr***@hotmail. comschreef in bericht
news:5o******** *************** *******@giganew s.com...
>>I have a C# app with an AxWebBrowser control.

I have a local HTML file that I'm using. That html has a java applet that
it runs that needs to access files locally, but I'm getting access denied
errors. How can I give the java applet access to those files? I assume
it's some sort of IE security issue but I can't figure out how to grant
the permissions.

Thanks.


Oct 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2790
by: Sunshine | last post by:
My original thought was to save the recordset into a text file. However, because of permissions I am unable to do this and will not be able to change the permissions. My next thought was to open it in excel. However, the table is too large and I get the Cell Table: too many rows or columns error. I need the user to be able to save the records on her computer. Any ideas? Thanks, Sunshine
3
3511
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able to do this with opening a second window that loads a local file, but I get an Access Denied error when I attempt this with a different website. Is there not a command in javascript that will allow me to open a webpage and perform this function? ...
34
3483
by: Charles Douglas Wehner | last post by:
This is a serious question - but probably one that has been asked many times before. Go to http://wehner.org It has FRAMES. Select ADDISON. The main page (to the right of the buttons) shows it. In ADDISON, select WHATIS. The main page switches to WHATIS.
1
4216
by: David | last post by:
A user logs into a web site. He is then redirected to a web page of his choosing - based on menu options - for example: "WeeklyReport.aspx" is a page the user is currently viewing If the user session times out, I redirect the user to a "logoff.aspx" web page that now informs the user he must relogin to the web site Question: Is there anyway to clear the browser's history list (prior to Response.Redirect("logoff.aspx") - to ensure the user...
4
1226
by: bildo | last post by:
I just installed SQL 8.0, IIS, Visual Studio on XP Pro laptop. I installed VS Books samples from book cd and ran SQL & Access DB samples on the browser just fine. Got the right results. I took the same code and created Visual Studio project, making some changes until it was running and opening the browser just fine - but my problem is I am not getting any DB table results - just a blank browser. This happens for both SQL and Access...
0
999
by: Michael Bredbury | last post by:
Dear All I am developing a web site in VS 2002 using VB.NET and ASP.NET which uses a client side ActiveX control in the web-browser to perform tasks such as determining what MS Office products are installed and then posting the data back to the server formatted in XML and using the MSXML2.XMLHTTP30 library to post the data. All this works well. I am now developing a VB6 program which the user can download to perform these functions if...
7
2108
by: nyousfi | last post by:
Hi, Can someone please tell me how I can open a browser window from VB.NET code bearing in mind that I have limited permissions. I have limited permissions because the code is a Client Control that will be downloaded to the client's machine from a webpage. The client control is written in VB.NET. Any help will be greatly appreciated.
15
2836
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. Everything is the default settings I believe. IIS is running under Local System. In IIS the DefaultAppPool is running under Network Service. Annonymous access uses the account IUSR_JASMINE (machine name is Jasmine).
6
1717
by: =?Utf-8?B?UGFycm90?= | last post by:
I cannot access my SQL database in a browser control created in my C# Windows application program I can, however, access the database from an IE browser. I get the ubiquitous "Login failed for NT AUTHORITY\NETWORK SERVICE" error message. I researched all the advice on the internet and tried to add an NT AUTHORITY\NETWORK SERVICE login to my database under the Security/Users tab using SQL Server Mangement. However, there is no NT...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9849
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8861
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.