Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deploying Application without DLLs 1

Status
Not open for further replies.

abdullauthan

Programmer
Apr 20, 2000
64
SA
I have developed a small Utility which sends remider e-mail to users. This application will be copied to a shared folder on the server and executed from there. What is the best way to build it and deploy on the server without doing any setup on the users' workstations?

This application uses
System.Data
System.Drawing
System.Web
System.Widows.Forms
System.XML
 
Make sure users of this applicatin has .Net Framework installed on their PC. They will be able to run your application from server.

JK
 
Do you have an idea how to deploy .exe file with a dll file?
 
You should be aware of some security limitations -- when you run a .NET application off a network share, it runs in the Intranet zone, and some of the permissions are reduced. Depending on what your app does, it may need to be added to the FullTrust zone in the .NET configuration tool.

On my current machine (I only have the SDK loaded on this one), it's in Start | Settings | Control Panel | Administrative Tools

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Far better is to deploy the application to run on each client machine. This then leads to the age old problem of updating the application on each client. A good idea is to write a small console "LOADER" application, which runs, checks for latest versions of your app on a network share, and downloads the newer version where neccessary.


Sweep
...if it works dont mess with it
 
Hey guys,
I have my .Net apps running off of a network drive, i've deployed my framework. But i'm not really sure how to set things up so that my app is allowed to run on a regular user account. I've seen the .Net Configuration tool and the Code access security but i really don't know what to do from there. I have played around with it but i can't seem to figure out the best method to use and how to get it to work.

Sincerely,
Fritts
 
MFritts253,

make sure they have "FullTrust" permission (under "permission sets") and you should be fine
 
To modify the framework security to allow this type of trust:
1. Go to the control panel
2. open up Administrative tools
3. select the ".NET Framework Configuration" Tool.
4. on the right pane select "Configure Code Access Security Policy"
5. select "Adjust Zone Security"
6. select either Machine or User level depending on the changes you would like to make (the default policy is recommended if users share computers), click next
7. select "Local Intranet"
8. Adjust the slider to it's maximum value: "Full Trust," click next
9. Click "Finish"
10. You are now able to run the any .net application from any intranet location as if it were stored on the local machine

The last remaining piece of the puzzle is answering the question: "Do I have to do this on all computers where I want to run these .NET applications?" The answer is yes. You can easily distribute these framework settings by packaging the security template in an MSI package using the .NET Framework Configuration Tool. Once you have the MSI package all you have to do is run it on the target computers and the security templates for those computers will be updated with the one in the MSI package. To create the MSI package highlight the "Runtime Security Policy" folder in the configuration tool and select "Create Deployment Package." All you have to do is specify the target folder where you want the MSI package saved.
 
Thanks KreativeKai,
That helps out alot i'll give you a few stars.
Sincerely,
Fritts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top