Objective: create a simple windows application .exe file that I can load up
on our secure web site, direct a user to the url, and have them download the
..exe and it runs beautifully on their desktop without an install program.
It would be distributed to only a handful of users that have access to our
secure site. The application does some simple data reads and writes. The
program complies to a single .EXE and does not create any additional .dll
files.
What I tried: Created a simple windows application. Compiled and tested
it. It works. Threw the .EXE on our web server, and then directed my
browser to the .exe at http://mysite.com/myapp.exe.
The program appears to download and display. I press the button on the form
that loads the data ... it bombs. The error message is at the bottom of this
email. What is the "better" way to do what I'm trying to do assuming it
just needs to work and won't be a polished application???
Thanks in advance!
Mark
ERROR MESSAGE:
Request for the permission of type
System.Data.Sql Client.SqlClien tPermission, System.Data,
Version=1.0.500 0.0,Culture=neu tral, PublicKeyToken= blahblahblah failed. 4 1275
Executables run from IE will run within IE's security "sandbox" by default.
This precludes file I/O and database access.
As far as I know, you either have to create a web service to provide data
access, or you will have to create an install that will adjust permissions
on the client to allow DB connections. Obviously the latter would only make
sense within an intranet anyway, and it defeats your goal of very simple
deployment.
I haven't personally tried this type of deployment and so am not familiar
with the specific steps involved, although they probably wouldn't be hard to
track down in help or via Google.
--Bob
"Mark" <fi************ **@umn.edu> wrote in message
news:u2******** ******@TK2MSFTN GP12.phx.gbl... Objective: create a simple windows application .exe file that I can load
up on our secure web site, direct a user to the url, and have them download
the .exe and it runs beautifully on their desktop without an install program. It would be distributed to only a handful of users that have access to our secure site. The application does some simple data reads and writes. The program complies to a single .EXE and does not create any additional .dll files.
What I tried: Created a simple windows application. Compiled and tested it. It works. Threw the .EXE on our web server, and then directed my browser to the .exe at http://mysite.com/myapp.exe.
The program appears to download and display. I press the button on the
form that loads the data ... it bombs. The error message is at the bottom of
this email. What is the "better" way to do what I'm trying to do assuming it just needs to work and won't be a polished application???
Thanks in advance!
Mark
ERROR MESSAGE: Request for the permission of type System.Data.Sql Client.SqlClien tPermission, System.Data, Version=1.0.500 0.0,Culture=neu tral, PublicKeyToken= blahblahblah failed.
Thanks Bob,
Would it work if I zipped it first so that they have to download the single
file ... and then they would unzip and double click on the .exe? Aside from
the framework, they could put the .EXE anywhere on their computer then.
Right? Or am I missing some important piece?
The web service actually sounds like an interesting alternative ...
Finally - are the days of ActiveX controls or similar, long gone? Or can I
design something similar in .NET? Again, I'm shooting for the functionality
of a windows gui attached to a SQL Server database, but I wouldn't need it
to be installed on the client pc.
Thanks again.
Mark
"Bob Grommes" <bo*@bobgrommes .com> wrote in message
news:e4******** ******@TK2MSFTN GP09.phx.gbl... Executables run from IE will run within IE's security "sandbox" by
default. This precludes file I/O and database access.
As far as I know, you either have to create a web service to provide data access, or you will have to create an install that will adjust permissions on the client to allow DB connections. Obviously the latter would only
make sense within an intranet anyway, and it defeats your goal of very simple deployment.
I haven't personally tried this type of deployment and so am not familiar with the specific steps involved, although they probably wouldn't be hard
to track down in help or via Google.
--Bob
"Mark" <fi************ **@umn.edu> wrote in message news:u2******** ******@TK2MSFTN GP12.phx.gbl... Objective: create a simple windows application .exe file that I can load up on our secure web site, direct a user to the url, and have them download the .exe and it runs beautifully on their desktop without an install
program. It would be distributed to only a handful of users that have access to
our secure site. The application does some simple data reads and writes.
The program complies to a single .EXE and does not create any additional
..dll files.
What I tried: Created a simple windows application. Compiled and
tested it. It works. Threw the .EXE on our web server, and then directed my browser to the .exe at http://mysite.com/myapp.exe.
The program appears to download and display. I press the button on the form that loads the data ... it bombs. The error message is at the bottom of this email. What is the "better" way to do what I'm trying to do assuming it just needs to work and won't be a polished application???
Thanks in advance!
Mark
ERROR MESSAGE: Request for the permission of type System.Data.Sql Client.SqlClien tPermission, System.Data, Version=1.0.500 0.0,Culture=neu tral, PublicKeyToken= blahblahblah failed.
<inline>
"Mark" <fi************ **@umn.edu> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl... Thanks Bob,
Would it work if I zipped it first so that they have to download the
single file ... and then they would unzip and double click on the .exe? Aside
from the framework, they could put the .EXE anywhere on their computer then. Right? Or am I missing some important piece?
Yes, this would eliminate your security issue and yes, they could place the
exe anywhere they wanted on their system.
The web service actually sounds like an interesting alternative ...
It's definitely an alternative to explore. Without such a "middle-man" as a
web-service, you would be required to expose your SQL Server to connections
from the public Internet (unless your users are connecting over a VPN of
some kind). Exposing SQL Server in this way is a very bad idea.
Finally - are the days of ActiveX controls or similar, long gone? Or can
I design something similar in .NET? Again, I'm shooting for the
functionality of a windows gui attached to a SQL Server database, but I wouldn't need it to be installed on the client pc.
Not exactly. It's still possible to write a control which runs within IE.
However, you'll still have security issues similar to your original problem
(I believe - double check on that) and it's not the most straight-forward
approach available.
Good luck,
Ryan LaNeve
MCSD.NET
Mark wrote: Objective: create a simple windows application .exe file that I can load up on our secure web site, direct a user to the url, and have them download the .exe and it runs beautifully on their desktop without an install program. It would be distributed to only a handful of users that have access to our secure site. The application does some simple data reads and writes. The program complies to a single .EXE and does not create any additional .dll files.
Is it possible to avoid file IO operations on client's box? What do you
read/write? Client data? Or do you need a temporary storage?
If so, your users/admin will have to change their security settings so
that they allow software signed with your key to make read/write operations.
You need read something about .net security model. It is like to Java
applet that is guaranied to execute only "safe" functions. And this a
step in right direction considering how many naive people run viruses
from Inet on their computers :)
Vadim Chekan.
P.S.
Woops! I noted right now, that your app requests access to SQL server!
Is this your sql server?
And... how are you going to make authorization? Clear password in
connect string? :))))
It sems you have architectural problem. Give more details. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ken Lindner |
last post by:
I have a need to become familiar with SQL Server 2000 for work.
Needless to say I am new to SQL Server any version, but not IT in
general. My employer has provided me with the SQL Server 2000
Personal disk from the SQL Server 2000 Enterprise kit as this is
reported here on the MSDN web site to be the version that is supported
on Windows XP. In fact so many of you kind people confess to having
succeeded in doing it.
I have tried...
|
by: lvpaul |
last post by:
Hallo !
I am using IIS-Windows-Authentication in my intranet
(web.config <authentication mode="Windows" /> <identity
impersonate="true" />
How can I get the users (client) IP-Address ?
I think the username can be read with user.identity.name.
|
by: Tyler Foreman |
last post by:
Hello,
I have a strange problem that occurs every so often in my
application. It usually takes place when I hide one form
and activate another. What happens is I get the
following exception:
System.ArgumentException occured in
System.Windows.Forms.dll
|
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET. I'm having trouble getting the code that I've written to work, can
anyone shed some light as to where I'm going wrong.
The program has been written to do the following tasks:
- Select remote server
- Select from two specific services
|
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET.
The program I'm trying to develop needs to be able to do the following:
- Select remote server
- Select from two specific services
- Check the status of the server
| |
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps further away, completely leaving the
selector box area.
Any ideas? VS 2003 and VB.Net
This is a simple application at the moment but the form is inherited from a
|
by: sambo251 |
last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on another CD, and gets caught in a loop when I try to delete it! It mentions MS.net frame error # 1706. The "details" code follows...hope someone can help me to either fix it or get out of the loop! I tried running "Windows Registry Repair Pro"...but no help...
|
by: mfunkmann |
last post by:
Hi,
I recently got an error and I don't know how to fix it:
Error 1 'System.Data.DataColumn' does not contain a definition for
'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO
I am note sure what to do because all propertiers work, except the
System.Data.DataColumn..
I didn't write any code by hand and used the visual studio to set the
properties..
|
by: AmberJain |
last post by:
Windows Autorun FAQs: List of autostart locations
Linked from the Original article- "Windows Autorun FAQs: Description".
Que: Can you list all the autostart locations for windows?
Ans: Here is a comprehensive list of all autostart locations for Windows OSes:
NOTE : These are some abbreviations used in this list. Please note them carefully:
HKCU = HKEY_CURRENT_USER
HKLM = HKEY_LOCAL_MACHINE
|
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...
|
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,...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |