473,624 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) 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 InternetExplore r(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome( );

procs = Process.GetProc essesByName("IE XPLORE");

Nov 18 '05 #1
2 2250
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*********@ho tmail.com> wrote in message
news:ec******** ******@TK2MSFTN GP10.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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) 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 InternetExplore r(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome( );

procs = Process.GetProc essesByName("IE XPLORE");


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 "ActiveXObj ect" 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*********@ho tmail.com> wrote in message news:<ec******* *******@TK2MSFT NGP10.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.Unauthor izedAccessExcep tion: 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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) 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 InternetExplore r(); //the error gave at this point

Browser.Visible = true;

Browser.GoHome( );

procs = Process.GetProc essesByName("IE XPLORE");

Nov 18 '05 #3

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

Similar topics

5
7552
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 of the proper command line syntax and the code to set the variable in the aspx program. thanks
3
1714
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"); winNew.document.writeln("Hello World!"); winNew.document.close(); winNew.focus();
1
1697
by: Lubo¹ ©lapák | last post by:
Hi, How can I invoke new render of aspx page from C# code. Thanks Lubos
3
1764
by: Alexander | last post by:
I search for WYSIWYG HTML EDITOR not based on IExplorer.
5
1613
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 IExplorer, if I hit return instead of clicking the button, the PHP query on MySQL fails when reaching the mysql_fetch_object function. It's ok if I click the button.
1
2201
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 enter parameters and invoke and test the web service and get back xml to see what the output xml looks like. I guess it creates this page fon the wdsl. That works fine when I use it on a local machine, but when I go to a remote machine, it gives the...
0
1323
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: http://www.vhsit.berlin.de/VHSKURSE/BusinessPages/CourseSearch.aspx I just fill in the gap SUCHTEXT with "cook" for example. It appears a list of courses. But when I clik on the KURSTITEL, it happens nothing! No extra window will be open. I have checked that PopUp Windows are not blocked! ...
4
1735
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 'onclick' event from 'cmdBusStopScheduleSubmit' element - see below. ONCLICK ========= <input type="submit" name="cmdBusStopScheduleSubmit" value="Get Bus Stop
1
2345
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 Panel 1 Contents is showing it includes Textboxes, Timer and button(Start), On Clicking that Button (Start Button) Update Panel2 loads contains gridview. After this Button(Start ) .visible =false; Now when Update Panel 2 has been loaded then I want...
0
8238
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
8174
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
8680
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
8624
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8478
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
5565
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
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1786
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.