IT HIT webdav server for filesystem no working with max file path - ithit-webdav-server

I need some details related to WebDav server implementation. Currently I have integrated webdav server for filesystem with basic authentication schema with my web application. Is web dav server working with max file path? As I am having file at path length 420 but i am facing issue with it.

The IT Hit WebDAV Server Engine for .NET itself does not have any limitations on file path. The limitation is in the WebDAV server implementation and in case of the file system sample in .NET Framework.
The most simple way to achieve long file path support is to build a server that runs on .NET Core. To generate the WebDAV server that runs on .NET Core you can either use the ASP.NET Core WebDAV Server Application wizard:
or use WebDAVServer.FileSystemStorage.AspNetCore sample provided with SDK.
You can also achieve long file path support with a regular .NET Framework, but this will require more affords: How to deal with files with a name longer than 259 characters?

Related

Can IT Hit WebDAV Lib be used with ASP.NET Web API 2 in the same Project?

I´m currently evaluating Web Dav Product for .NET and I´m really impressed. I only noticed that when I´m integrating the sample code (Asp.NetFileSystem) into my existing ASP.NET Web API 2 Project, it doesn´t work with Office Word directly as a save target.
We have Web API 2 with Windows Authentication and CORS Headers on.
Windows Explorer can open and Navigate the WebDAV Folder and I can create new files there. But when I´m saving from word directly, I get errors in Word that the network path does not work / exist. I tried to debug it but it happens
I separated the WebDAV part in it´s own project for test purposes and it works without the problems.
Am I using it wrong in the context of Web API 2, or is this an unsupported usecase?
I´ll try to get fiddler logs to.
Thanks a lot!
Thanks to the IT Hit WebDav we were able to trace the problem down. To work correctly, OPTION requests have to be processed by the WebDAVHandler. We have a custom module which intercepts OPTION requests to handle CORS. Because of our Module, the WebDAVHandler was not able to add the necessary headers, and Office opened the files readonly.

Error running powerbuilder .net assembly in IIS wit ASP.NET MVC app

i got a Powerbuilder (12.5) .net assembly application which dll generated is referenced by an ASP.NET MVC application.
Basically, ASP.NET call to PB assembly NVO function with some parameters, then PB retrieves data from DB (SQLServer) through a dataStore and then saves it as PDF, then returns the name of PDF file to ASP.NET MVC app and then Web application send PDF file to user for downloading.
In local PC it works nice.
but when i deploy into web server it fails:
Error: "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
I have installed all dll from Runtime Packager.
I have sent all dll, xml and pbds that PB gnerate when project is deployed.
In IIS everything is rightly configured.
So id like to know if someone kwows anything about this error.
thanks in advance
There is a role or feature that needs installed called desktop experience if I remember correctly. This allows a service to have a desktop to run under otherwise it is a console app. I ran into this when printing PDFs from a service. The fonts were wrong and not set to what I set them to until I installed that feature.
It sounds like you already gave iis access to run on the server with full access to windows and file system.
John

How to deploy MVC 5 web application in IIS 8 server in Windows 8.1?

I have developed MVC 5 web application in VS 2013 and I want to deploy that application in IIS 8 but its give me error as per given image.
Make sure you've given IIS_IUSRS group READ permission to the wwwroot directory. (if it requires additional permissions, Read & Execute might be necessary).
There's also a IUSR that may need READ permission as well.
If you're deploying to the default web site in IIS you can safely publish to the default website's directory and be up and running.
However, if you're deploying an ASP.NET MVC site to a subdirectory of the default site, or to a new directory on the server, you will need to create a new web site, or convert the subdirectory (when publishing under the default site) to an application.
If this is your first time setting up a site on IIS, Microsoft has documentation on the steps to follow in the learn section of ASP.NET.

Support for offline storage in Javafx 2.x

I have an application that shall support offline storage of user data in case the server is unreachable. In Javafx 1.3 that was achieved via the classes javafx.io.Storage and javafx.io.Resource.
When migrating to Javafx 2.0 these classes have been discontinued. I believe that the guys at Oracle have an equivalent functionality for it in Java.
My question is What is the equivalent of the aforementioned classes in Javafx 2.0 What I want is to specify a resource name to which I can store data without worrying where it is exactly stored on the client file system, the same as browsers cookies.
Thanks for your help
Ahmed
There is no equivalent of javafx.io.Storage and javafx.io.Resource in JavaFX 2.x itself. Because JavaFX 2.x is based on Java, you can use Java services.
The JNLP FileSaveService and FileOpenService may be used. These services should work across JNLP based deployments (browser embedded and webstart apps) - not sure if they work for standalone apps.
If you know that your application will be run as a standalone app or a signed browser embedded or webstart app with higher privileges, then you can get the user directory via the user.home system property and write your app data to an an appropriate file location under that, probably using the Files api as in this Files tutorial. For example, use the Files api to create a {$user.dir}/.myapp/appdata.dat file to read and write.
JavaFX embeds an html5 web engine. The WebEngine in JavaFX 8 implements the offline storage portion of the html5 specification, the WebEngine in JavaFX 2.2 does not.

Reading pst (Outlook) files from IIS ASP.NET application

I have to create sort of a .PST file based Web Mail.
I need to read all MailItems, Folders, Contacts and everything i can from PST files given by the user.
I am currently using DCOM interop to create a Application and use Session to add my file's stores.
My problem is that i can't even instantiate the Outlook.Application, the code simply doesn't run.
If i change to Visual Studio Development Web Server everything works as perfectly as expected, but if i change to local IIS Web Server.. nothing happens =/
What i did so far:
Set username and pass to impersonate on web.config
Set username and pass to inpersonate on my WebSite from iis -> Authentication -> ASP.NET impersonation
Added permissions to Everyone, Network Service, IIS_IUSRS, my user account in temp asp files, web site file and pst files i'm trying to read
Unfortunately I've already implemented all I need using TDD, so it would not be a good idea to change the way i'm doing this, like moving to NMapi or something.
Thanks in advance
EDIT:
As i've mentioned before, i I cannot use another library (and that one seems to work, but it's pretty expensive).
I only need this to run on a local server. It is a Web application, but for localhost ONLY.
It is not a good idea to use Outlook on the server side, as is described in detail here: http://support.microsoft.com/kb/257757
Microsoft does not currently recommend, and does not support,
Automation of Microsoft Office applications from any unattended,
non-interactive client application or component (including ASP,
ASP.NET, DCOM, and NT Services), because Office may exhibit unstable
behavior and/or deadlock when Office is run in this environment.
Maybe have a look at http://www.independentsoft.de/pst/

Resources