| | |
Windows application on a server
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2007
Posts: 5
Reputation:
Solved Threads: 1
Can someone plz help me with this.
Its urgent.
Scenario:
I have developed my application using C# and .NET class libraries.
My application consists of two custom dlls and a .mdb file.
Total four files including an exe file.
These all work fine when run on a local machine.
But when one of my clients tried to put this application on their organisations server,
it failed to run.
If we put it into a shared folder then it works, but stand-alone on server it doesn't.
please help me with this, any prompt solution?????
Its urgent.
Scenario:
I have developed my application using C# and .NET class libraries.
My application consists of two custom dlls and a .mdb file.
Total four files including an exe file.
These all work fine when run on a local machine.
But when one of my clients tried to put this application on their organisations server,
it failed to run.
If we put it into a shared folder then it works, but stand-alone on server it doesn't.
please help me with this, any prompt solution?????
•
•
Join Date: Jul 2008
Posts: 39
Reputation:
Solved Threads: 4
My guess:
Windows Server uses much better security modeling than Winows XP does. You really should develop on Windows Vista with UAC turned on (make sure you never trip the UAC dialog with your code!). Most likely you need to fix the NTFS permissions your files have so that they can run correctly.
OR
You're running the server application as a service, in which case you either forgot or didn't realize that the System.Environment variables cannot be trusted when running as a service because services are by the OS and not a user. This means you cannot access files with a root anchored path and you have to make sure all security setting are set so that Local Service has access.
Windows Server uses much better security modeling than Winows XP does. You really should develop on Windows Vista with UAC turned on (make sure you never trip the UAC dialog with your code!). Most likely you need to fix the NTFS permissions your files have so that they can run correctly.
OR
You're running the server application as a service, in which case you either forgot or didn't realize that the System.Environment variables cannot be trusted when running as a service because services are by the OS and not a user. This means you cannot access files with a root anchored path and you have to make sure all security setting are set so that Local Service has access.
![]() |
Similar Threads
- Difference between Database Server and Application Server (IT Professionals' Lounge)
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Error while running VB6 application in Windows XP and Windows 2003 server (Visual Basic 4 / 5 / 6)
- Windows 2003 Server roles (Windows NT / 2000 / XP)
- Windows 2000 server not allowing ASP access. (ASP)
- Asp.net: Deployment Of .net Application In Windows 2003 Server (ASP)
- help to set up "Sun Java™ System Application Server PE 8" for web application (Java)
Other Threads in the C# Forum
- Previous Thread: reading a file from a specified place
- Next Thread: beginners problem - files
Views: 613 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development drawing encryption enum event excel file files form format ftp function gdi+ http httpwebrequest image index input install java label list listbox login mandelbrot math mouseclick mysql networking object oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view webbrowser windows winforms wpf xml





