|
Member 13087010 wrote: I have tried your method Who is this message supposed to be directed to?
|
|
|
|
|
|
Then please post your question in the forum at the end of the article, so as_prabahar can reply.
|
|
|
|
|
Considering the age of that article and the rating on it, I'd be surprised if you got a response.
You can only get away with what that article talks about IF AND ONLY IF your Forms application was written properly to begin with. Chances are really good that you're going to be rewriting the app and doing a ton of refactoring of the code to use it in a web app.
|
|
|
|
|
|
|
The two technologies are very different. You should rewrite it. Perhaps you have business logic classes that can be reused but I would not try any migration tools.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I'm building an online IDE for students. I want to create a directory for each student once he is registered .
Someone suggested that I use NFS (Network File System) for students directories and code files, but I couldn't find any tutorial that uses NFS for ASP.NET MVC 5 (or even ASP.NET).
Can anybody suggest some good resources that might help? And What are some good alternatives for my project purposes?
modified 14-Mar-17 14:55pm.
|
|
|
|
|
All cute and nice for Linux.
Member 12992094 wrote: Can anybody suggest some good resources that might help? The Ubuntu forum.
Member 12992094 wrote: And What are some good alternatives for my project purposes? Hard to tell, since you only claim to want directories for students. Do you want to give them a home-directory? Ask your SysAdmin. Do you want to provide FTP space? What kind of stuff will they be saving there, and how?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Unfortunately , I am using Windows 7.Even if I used Ubuntu, How am I supposed to use that from my ASP.NET MVC application? It looks like NFS is not supported in C# and .Net .
Quote: Hard to tell, since you only claim to want directories for students. Do you want to give them a home-directory? Ask your SysAdmin. Do you want to provide FTP space? What kind of stuff will they be saving there, and how?
Students directories will be similar to those directories that an IDE creates for you when you create a new project. In my case, students are allowed to have only one project. So the directory will look like:
Student's Name >>> Student Project >>> src (code files are stored here)
Files are created for the student once he clicks "New Class" , and he can delete them by clicking "Delete class". Students won't have a direct access to their directories, instead, the application will create a tree-view for their directories similar to those in Eclipse and other IDE's. They can only create, edit and delete classes. It'll also support compiling and running the codes by sending scripts to the server.
And yes , I want to provide FTP space.
|
|
|
|
|
Member 12992094 wrote: It looks like NFS is not supported in C# and .Net .
Precisely.
What you describe is basically editing a text online, and compiling and executing that. Shouldn't be too hard with MVC.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Do you know what does it need to compile and execute a code??
|
|
|
|
|
|
|
You're welcome
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yeah a big thank you from Sweden as well!
__________________________________________________________________________________________________________
Spelsidorna where [DER] and [BSW] meet!
|
|
|
|
|
Hi,
I have a Console app which has to read files which are modified before only 12 hours or less than 12 hours, but when I am using the following Linq its Fetching me the files which are modified a 2 months back.
Linq is:
dynamic tempFiles = null;
<pre>
tempFiles = (from f in feedDir.GetFiles(strPattern, SearchOption.TopDirectoryOnly) select f)
.Where(x => x.LastWriteTime >= DateTime.Now.AddHours(-12));
</pre>
Please help me what can I do to get only the Files list which are modified 12 hrs or after 12 hrs before, like files which are modified just before, 1 minutes before etc up only 12 hours before but not older than that.
Thanks in advance, any help would very helpful - thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
See FileSystemInfo.LastWriteTime Property (System.IO)[^]:
Quote: Note This method may return an inaccurate value, because it uses native functions whose values may not be continuously updated by the operating system.
The value of the LastWriteTime property is pre-cached if the current instance of the FileSystemInfo object was returned from any of the following DirectoryInfo methods:
GetDirectories
GetFiles
GetFileSystemInfos
EnumerateDirectories
EnumerateFiles
EnumerateFileSystemInfos
To get the latest value, call the Refresh[^] method.
So you might get an old time stamp especially when the file has just been updated.
|
|
|
|
|
That code looks like it should work - although I'd be inclined to use the UTC timestamps instead, to avoid timezone issues.
DateTime cutoff = DateTime.UtcNow.AddHours(-12);
IEnumerable<FileInfo> tempFiles = feedDir
.EnumerateFiles(strPattern, SearchOption.TopDirectoryOnly)
.Where(f => f.LastWriteTimeUtc >= cutoff);
Can you find an example of an old file being returned from this query, and check the "date modified" column in Windows Explorer? That column should return the same value as the LastWriteTime property.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes works perfect
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Hi,
I have a C# application which is sending automatic Emails with some essential information, the body of the Email has to be in tabular format.
Can anybody please help me how can I write an Email which would be in tabular format? A code snippet, a link or even a suggestion would be very helpful for me.
Thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
You've been around here long enough to know that you start with Google. I can't believe that you didn't find anything at all to give you a starting point for your own code. All you have to do is Google for "sending HTML email".
|
|
|
|
|
=========
|Foo|Bar|
|Foo|Bar|
=========
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Yes Implemented thank you very much buddies
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Dear experts
The task I need to solve
For a legacy C++ application -let's call it NativeW32App.exe - I need to use an third party SDK to control an USB device and this SDK is only available as a .net assembly.
The whole SDK consists of about 70 assemblies and one of them -let's call it ThridPartyNetSDK - represents the interface for me.
The approach I go is, I implement a proxy in .net which is COMVisible and can be easely consumed by the C++ application.
So far everything works fine as long as the whole bunch of SDK assemblies is available in the directory from where the NativeW32App.exe is startet. And this (all assemblies in the app's directory) I try to avoid because it is one of about 50 SDK (from different third parties) we need to support.
So my next step was/is
Separate the SDK assemblies and my COMVisible proxy in a separate directory and hook into assembly resolving...
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SDK_AssemblyResolve);
... where I load the assemblies from the separate directrory in my SDK_AssemblyResolve.
The problem
It seems, that the SDK itself is loading some DLLs dynamicaly relative to the AppDomain.CurrentDomain.BaseDirectory which is
my NativeW32App.exe 's startup directory.
The dirty (?) solution
I'm faking AppDomain.CurrentDomain.BaseDirectory in my proxy assembly class ctor
AppDomain.CurrentDomain.SetData("APPBASE", Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
Now finally this works, but I have my doubts
a.) According to the MSDN documentation setting system values (and I assume "APPBASE" is one) should have no effect. But it works fine so far
b.) I assume this can have side effects and is not appropriate for production
c.) It seems that there are better way, e.g. creating the AppDomain by myself. But I have no idea how to manage this for a COM assembly consumer.
Is AppDomain.CurrentDomain.SetData dirty or not reliable for production?
Does anybody has a hint to solve it in a better way, maybe with seperate AppDomain or what else?
Thank you very much in advance for your comments.
modified 19-Jan-21 21:04pm.
|
|
|
|