|
At CodeProject we spend an awful lot of time playing with room heaters, or as others like to call them, "servers". Over the years we've seen it all, some of it smoking, most of it usually working just nicely until something happens.
What that something is can be hard to find so we've created a quiet place for those battle scarred and frustrated to get a little help.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hello CodeProject Community,
I’m encountering a frustrating issue with JavaScript on my website, dyethin.com, and I’m hoping someone here can offer some advice.
Here’s the problem:
JavaScript Error: I’m experiencing a JavaScript issue on my site where certain dynamic features are not functioning as expected. Specifically, a script that handles real-time data updates seems to be failing intermittently. The data doesn’t always update correctly, which is affecting user experience.
Troubleshooting Steps: I’ve already tried several troubleshooting steps, including debugging the code and checking for conflicts with other scripts. Despite these efforts, the problem persists.
Site Impact: The issue is particularly noticeable on the main pages where real-time data is crucial. It’s impacting the functionality and reliability of the site, which is focused on thin client technology.
I’m reaching out to see if anyone has experienced a similar issue or has any suggestions on how to resolve this. Any help or guidance would be greatly appreciated.
Thanks in advance for your assistance!
|
|
|
|
|
Clearly there's a secret error somewhere in your secret code. You need to fix that.
Seriously, how do you expect anyone to help you fix errors you haven't described in code we can't see?
And no, posting the name of your site and expecting someone to visit and figure out what the problem is and fix it for you doesn't count. If anything, that's borderline spam.
If you want help, you need to explain precisely what the problem is, show the relevant parts of your code, provide the full details of the errors, and explain precisely what you have tried and where you are stuck.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
The question is about a Hyper-v machine running Windows 2022 Standard.
We have a regular user who needs to RDP into the server and make adjustments to our applications. Unfortunately, this user can't see most of the network printers that are installed into Windows.
These are network printers that are accessed as shares from dedicated print server machines.
Is there a Windows permission that this user can be granted that would allow them to see all the printer mappings?
Is there a special way to install a printer share so that by default, it is visible to all users?
SOLUTION: This requires an update to group policy. The network people have made the necessary changes to install the print shares for all users.
The difficult we do right away...
...the impossible takes slightly longer.
modified 27-Aug-24 18:14pm.
|
|
|
|
|
I am moving my application to the cloud, for my clients. There are only about 25 right now. Cost is a large consideration. Which one would you recommend. Also, what is all of this "pay as you go" stuff? Do they mean 24-7-365, or only the time the suer is logged in to the website?
|
|
|
|
|
Well, it's both. The benefit of cloud is that you pay by usage so when usage is lower you pay less. It's not the cheapest way to get up and running but if you need to scale up and down quickly, AWS/Azure can do that. Azure is (generally speaking) cheaper than AWS for Microsoft licensed products like Windows and SQL Server but AWS is cheaper FOR other stuff like Linux and MySQL.
|
|
|
|
|
Greetings!
I use WHS2011 to simply host Apache2 web server.
Works fine.
Wanting to move forward and tried Windows 10 but does not seem to work as well.
Thinking of moving to a newer Windows server.
What version should I consider. (minimum cost)
Ideas?
Have fun,
Paxton
|
|
|
|
|
The answer may be obvious, but I would appreciate confirmation of my understanding.
Scenario: in a Windows network, a very large number of files exist in a folder on Server A, but need to be moved to a different folder on the same Server A.
User B, which might be a human logged into Server B or an app running on Server B, cannot log into Server A via RDP, but can access its files from Server B.
If User B uses File Explorer or a command window to move those files or the C# app uses a File.Move, do those files first get copied across the network from Server A to a temporary folder on Server B and back again?
If the user has execute permissions on a folder on Server A and executes a batch/command file in that folder that moves those files, that would not involve actual file copying but changes in the NTFS file tables, right?
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Standard file mapping software will insure that a copy on the same physical system will remain on that system.
The executable permission has nothing to do with the rest of the question at all.
|
|
|
|
|
jschell wrote: The executable permission has nothing to do with the rest of the question at all. True, but then that really wasn't the question.
I'm not sure you understood my questions at all, but that's probably my fault for not being clear. My question is about which, if any, of the various scenarios presented will result in those files flowing across the network.
I'm also confused by your use of "standard file mapping software". I'm talking about the operating system's Copy and Move commands, as well as the File.Move command in C#.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Your situations are not entirely clear so I'll answer it like this.
The only time the files will NOT cross the wire is when you are MOVING (NOT COPYING!) the files from one folder to another ON THE SAME VOLUME ON THE SAME SERVER.
|
|
|
|
|
Dave Kreskowiak wrote: will NOT cross but with any luck, won't be truncated (therefore "moved"). Windows 10, on my multi-processor box, with tons of fast memory, COPY/XCOPY/MOVE TRUNCATES files. Particularly image files. To boot, there's little evidence that anyone with a respectable claim to knowledge concerning the faux pas is ever going to see fit to fix the problem.
And to TNCaver (if you're listening): I wouldn't want to hijack a post by claiming I knew anything about servers or hosting because I'm really a general computer user with some basic understanding of system processing, but in my experience, there's only one way to handle transfering of files from point A to point B ... and so far ... that's by zipping them up in an archive. If that sounds kosher to you, lemmee know and I'll go into more detail.
|
|
|
|
|
RedDk wrote: COPY/XCOPY/MOVE TRUNCATES files
I will note that I have decades of work experience and I have never seen a problem specifically like that.
I have seen problems such as empty files, corrupted files, failed moves, moves that never complete. Probably some others as well.
That includes within one physical disk, across disks, across shared file systems (via various mechanisms that allow that.)
Problems that I have seen are most often user error to some extent. But hardware and network problems have also been at fault. Even long ago ejecting disks (or memory cards) before it was completed.
|
|
|
|
|
It's not going to be fixed by Microsoft because it's something specific to your machine/network setup.
I've NEVER had anything like that happen in any version of Windows and I've been using every version since you had to type "win" at a DOS prompt to start Windows.
|
|
|
|
|
I find that difficult to believe. In my more than 40 years experience of MS-DOS and Windows I have never encountered that problem. And I do file copying and moving quite regularly within local and networked disks.
|
|
|
|
|
My company has just bought a data server and would like to start offering cloud services. I have been tasked to make the best choice of what windows server to go with. Kindly advise on which server is appropriate between Windows Server 2022 vs 2019 vs 2016. Thank you
|
|
|
|
|
Kiiza Trevour wrote: start offering cloud services.
That is an interesting statement. Can't imagine what that might mean. Hosting?
Kiiza Trevour wrote: Windows Server 2022 vs 2019 vs 2016.
Well certainly not 2022 because the developers are unlikely to have actually developed on that server. Because they spent the last year creating it, and of course 2022 wasn't out then.
|
|
|
|
|
Kiiza Trevour wrote: My company has just bought a data server and would like to start offering cloud services. I have been tasked to make the best choice of what windows server to go with. Services to other customers or something internal to the company? Sorry, but if this is for the public and you have to ask this question, you're company is not ready for it. If it's internal only... never mind.
Linux is the correct answer btw.
Jeremy Falcon
|
|
|
|
|
1. Cloud VPS
Cloud VPS is an online virtual private server provider. You can host your website on their servers and pay monthly for access to the service. Your web space is stored on their own data centers across the globe.
2. Dedicated Server
What is best way to get newyork vps?
Dedicated server is a physical computer that is dedicated to hosting websites. It comes with its own operating system and hardware. It's not shared with any other users.
3. Virtual Private Server (VPS)
Virtual Private Server is a type of cloud computing where you have root access to a server. You can install software applications and configure them however you want. Most companies offer unlimited bandwidth and disk space.
4. Shared Hosting
Shared hosting is when many people share a single server. Each user pays a certain amount each month and gets a specific amount of bandwidth and disk space. Bandwidth refers to how much data you can transfer per second. Disk Space refers to how much storage space you have.
5. Managed Hosting
Managed hosting is when someone else takes care of the maintenance of your server. You only need to worry about installing and configuring your software.
6. Reseller Hosting
Reseller hosting is when you resell services to customers who use those services themselves. For example, if you sell web hosting services, then you would provide web hosting services to customers.
7. Colocation
Colocation is when your web server is physically located at a colo center. A colo center is where internet providers store their equipment.
|
|
|
|
|
7 is the best if you want control of you own server. Otherwise it is a game of maybe.
|
|
|
|
|
|
We have an APP running in IIS.
When the process is using 500MB, the web site stopped and we have to reboot.
Any help?
|
|
|
|
|
Luis M. Rojas wrote: When the process is using 500MB, the web site stopped and we have to reboot
Which process? 500MB of what? What does "the web site stopped" mean? Have you looked at any of the server logs?
|
|
|
|
|
The dot net service which is running on iis the APP, after a few minutes says: Service not available, error 503.
|
|
|
|
|
There's a secret error somewhere in your secret code. You need to fix that.
Seriously, how do you expect anyone to help you fix a problem in code we cannot see, running on a server we have no access to, when you haven't even bothered to check the Windows event logs for the details of the error?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|