473,410 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

How to Invoke IExplorer from aspx page

Hello,

I want to invoke clients iExplorer from my axpx page.
I did a some cod eto dot this.but it gave me below error.

can anybody help me with this

thanks

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

This my code segment

Browser = new InternetExplorer(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome();

procs = Process.GetProcessesByName("IEXPLORE");

Nov 18 '05 #1
2 2239
You are not invoking IE on the client - the code behind runs on the server,
and you are trying to launch an IE process on the server. You can set up
permissions to allow this, but you will won't get what you want. Rather, you
need to run client-side code. Since your JavaScript code runs in a sandbox,
it isn't going to be able to launch processes. However, since you already
are running in a browser, just use a JavaScript window.open to launch a
second browser window.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"kapila Wijethilaka" <ka*********@hotmail.com> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
Hello,

I want to invoke clients iExplorer from my axpx page.
I did a some cod eto dot this.but it gave me below error.

can anybody help me with this

thanks

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

This my code segment

Browser = new InternetExplorer(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome();

procs = Process.GetProcessesByName("IEXPLORE");


Nov 18 '05 #2
If you want to launch a new instance of "Internet Explorer" on the
client side, you will need to use javascript, or a component that is
downloaded on the client's machine.

The code you provided attempts to launch "Internet Explorer" on the
web server, and that's why you are getting access denied error. Even
if you have enough permission to launch IE on the web server, it is
certainly not what you're looking for.

With javascript, you can use the "ActiveXObject" method to launch an
executable.

It'll be helpful if you can explain why you want to launch a new
instance of "Internet Explorer" on the client side.

Tommy,

"kapila Wijethilaka" <ka*********@hotmail.com> wrote in message news:<ec**************@TK2MSFTNGP10.phx.gbl>...
Hello,

I want to invoke clients iExplorer from my axpx page.
I did a some cod eto dot this.but it gave me below error.

can anybody help me with this

thanks

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

This my code segment

Browser = new InternetExplorer(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome();

procs = Process.GetProcessesByName("IEXPLORE");

Nov 18 '05 #3

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

Similar topics

5
by: Mike Ratliff | last post by:
I need to call internet explorer from another program and pass along a variable to the aspx page that I am opening. example iexplorer.exe "search.aspx?variable1="12345" please give me an example...
3
by: The Pritchard | last post by:
I want the user to be able to save the information displayed on a dynamically created page. When I write a script like the following: <SCRIPT> winNew = window.open("","test");...
1
by: Lubo¹ ©lapák | last post by:
Hi, How can I invoke new render of aspx page from C# code. Thanks Lubos
3
by: Alexander | last post by:
I search for WYSIWYG HTML EDITOR not based on IExplorer.
5
by: Steve JORDI | last post by:
Hi, I have a strange behavior when using IExplorer over FireFox. There is an html form that asks for the name of a city and has a dedicated field for that with a submit button next to it. In...
1
by: Chris Davoli | last post by:
Somebody I work with created a web service and of course it creates an asmx page for the web service. When you open this page up on the browser it gives you a kind of tester page where you can...
0
by: sanisani | last post by:
Hi, I write here for the first time, as a user and not as a programmer or developer. I have tried from my notebook to see the following address:...
4
by: James | last post by:
Hello everyone, While loading a page (http://www.edmonton.ca/portal/server.pt?space=CommunityPage&control=SetCommunity&CommunityID=239) into a webbrowser control I use invokemember on the...
1
by: shashi shekhar singh | last post by:
Respected Sir, I am currently facing a problem in disabling the back Button of IExplorer. Actually I have taken two UpdatePanel on the page(Page A). At first when Page(Page A ) loads then Update...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.