Comments (7)
What is the value being represented here?
There was a similar issue with a file date set in the year 30280 ( #183 )
Not all FileTime values can be represented by the framework, anything later than the year 9999 is problematic.
from smblibrary.
I'm encounting this issue as well. I've tried DateTime.FromFileTime(0), new DateTime(), DateTime.Now, and a parsed DateTime for the current date.
I'm using .NET 8 and the program is running in a Linux Docker container. v1.5.1.3 and adapters v1.5.1
from smblibrary.
Hi Tylor, same question - what is the value being represented?
from smblibrary.
Calling DateTime.Now.ToFileTimeUtc() on .NET 8.0 seems to work for me without issues, so I have to suspect that the issue is with the DateTime value.
from smblibrary.
According to the docs this exception will be thrown if "The resulting file time would represent a date and time before 12:00 midnight January 1, 1601 C.E. UTC."
from smblibrary.
You can make an argument for treating any value < year 1601 as DateTime.MinValue, if that's indeed the issue.
This can also be done at the INTFileStore implementation level without modifications to the library.
from smblibrary.
I suspect my issue was due to a DateTime.MinValue being set. I've not been able to reliably replicate the exception however.
from smblibrary.
Related Issues (20)
- SMBServer.exe HOT 1
- NullReferenceExceptions in OnClientSocketReceive and unhandeled SocketExceptions in async process HOT 15
- how can I use SMB2 upload larger file in 'ResumeFromBreakPoint' mode? HOT 4
- Copying a file while having an STATUS_SHARING_VIOLATION HOT 1
- UnobservedTaskException after Client.Disconnect() HOT 5
- SMBServer.exe HOT 1
- IsLoggedIn Getter HOT 1
- How to Access a File With in the Sub Folders Using SMB2Client
- [Question] FileSystemWatcher-like support HOT 1
- tree connect returning null HOT 1
- SMB3 client on samba server HOT 4
- Unable to access file in subdirectory HOT 1
- SMB1Client Connect method not timing out HOT 4
- UnobservedTaskException's caused by Smb2Client.Disconnect method HOT 9
- NullReferenceException crashes the application HOT 3
- STATUS_LOGON_FAILURE HOT 9
- SMBLibrary may crash the entire process HOT 9
- Please make it possible to connect using SMBClients providing custom ports. HOT 3
- LargeMTU unavailable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smblibrary.