Hi there!
Re: space in a file path: it's not quite clear to us where do you pass the path from and to, and where exactly you see the error generated. Could you please include full stack trace and maybe attach a screenshot to your response?
Re: permissions denied: Does this happen when you run the application under
UWS Interactive Host? The reason we ask is that an application registered with UWS is usually running under Network Service user account, which is often the same for IIS, but it really depends on what user identity is used for IIS AppPool or worker process. When you run your application under Visual Studio development server, or with UWS Interactive Host, your application is running inside an process that has access rights of your Windows login user. All these situations can be slightly different, so depending on what user account is selected for UWS host process and IIS AppPool, you may see different results. Both
UWS Explorer and UWS Interactive Host show user context of corresponding hosts.
As a rule, web applications run in a secure, restricted user context on the server, because Internet-facing applications are subject to constant hacking attempts. If your application or our server is hacked, then attacker gets control under the security context of the hacked process user. If user is powerful - hacker can go on and compromise your entire machine or even a network. If user is restricted, the hacker is likely never to be able to do much damage outside of the application. If you need higher privileges for a part of your business logic, consider placing it in a ServicedComponent of server type. If your application runs in a very safe, low-threat environment, then you may consider running your application in UWS under Local System user, which is almost as powerful as Administrator and has access to most files and other resources on the server.
Please let us know if this information was helpful.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.