How to run a C# application on WindowsNT? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
On trying to run a c# hello world program on Windows NT4 SP6a, the error message says .net dll's not found; however on trying to install .net framework 1.1 on WinNT i get an error: "Application has generated an exception that could not be handled". When i run the C# app on Windows 7 there are no issues.

Windows 7 supports the latest .NET framework whereas WinNT supports only .NET 1.1 and installing .NET 1.1 on WinNT is not straightforward.
To get over those errors, do the following:
To fix this we need to copy a folder from a Windows Server 2003 machine to WinNT machine.
Find a Windows Server 2003 machine on which .NET framework is already installed.
From the Win 2003 machine copy "Framework" folder [C:\Windows\Microsoft.NET\Framework]
Create a folder "Microsoft.NET" in WinNT machine at [C:\Winnt\Microsoft.NET]
Copy the "Framework" folder from step-3 to "Microsoft.NET" folder in WinNT machine (step-4).
Now you have [C:\Winnt\Microsoft.NET\Framework] folder structure in the WinNT machine.
Run dotnetfx.exe and the installation should complete without incident.
reference

Related

An exception occurred in Mobile Analytics Delivery Client : System.NullReferenceException

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 14 hours ago.
Improve this question
I am able to get Amazon Mobile Analytics working on Xamarin Android with 3.3.x.x packages but using same config with iOS, it never works and analytics are not reaching amazon dashboard.
I have a Xamarin iOS project, using latest 3.3.x.x packages lead to an empty console log and analytics are not reaching Amazon dashboard, using 3.1.x.x packages are the only ones where logs are working for us, when events are about to get submit, I receive following error, please see stacktrace here:
github
Steps to Reproduce (for bugs)
I am only able to reproduce this bug in my specific project environment. Working perfectly in sample and new projects I created to test this functionality.
Context
AWS Mobile Analytics is not working at all in my solution, and would be really important to be able to understand end user behavior etc.
Your Environment
Operating System and version: Mac OS 10.12.6
Visual Studio version: Mac Xamarin Studio 7.2 (build 636)
Targeted platform: Xamarin iOS
Following AWS SDK packages in project (note that I am using older versions of AWS SDK as in new versions logging is not working)
"AWSSDK.CognitoIdentity" version="3.1.0.1" targetFramework="xamarinios10"
"AWSSDK.Core" version="3.1.1.0" targetFramework="xamarinios10"
"AWSSDK.MobileAnalytics" version="3.1.1.0" targetFramework="xamarinios10"
"AWSSDK.SecurityToken" version="3.1.0.1" targetFramework="xamarinios10"

Develop asp.net application for windows server on linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I use linux and I am not willing to switch to windows. I need to create asp.net application for windows server with people working with visual studio on windows. I would like to work from my linux machine. I have heard about mono. Can I get some instructions and suggestions?
Note that the application will be deployed on windows.
One way or another you are probably going to have to use Windows at some point. Even if everything runs fine under mono you will still need to check that it does on Windows.
You could set up a virtual machine on Linux running Windows, or have a separate machine for testing. If you are working in a team where someone else is responsible for most of the testing you could avoid that too.
Start by installing mono with apt-get install mono-complete. It would probably be easiest to get Visual Studio to setup the project. Hopefully you are using some form of version control, so you can push the code and pull it to your Linux machine. You can write the code on Linux in your preferred text editor and test it running under mono. Finally deploy it back to the Windows machine/VM to verify that it works as expected on your target platform.
You can check which features are currently fully, partially or not supported in mono here:
http://www.mono-project.com/docs/about-mono/compatibility/
http://www.go-mono.com/status/

How do I configure a virtual directory as an application in IIS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm not an experienced web developer, I usually code apps but I've been asked to look at a website written in C#. I've got a copy of Visual Studio 2012 and I copied the source code into my c:\inetpub\wwwroot folder. When I tried to run it I got an error message about creating a virtual folder as an application so I installed IIS and then created a virtual folder off of wwwroot. That seemed to work as it ran but then crashed as the database was empty. When I corrected the error and tried to run again I got this error.
C:\inetpub\wwwroot\WebApplication2\obj\Debug\Package\PackageTmp\Web.config(36): Build (web): It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
What have I missed as I've created the virtual directory? I tried deleting the first virtual directory and then creating another within the website folder. That worked again but when it crashed the same thing happened again. Why is this?
You don't say which version of IIS you are using.
In IIS Manager, when you right click the web site, choose Add Application rather than Add Virtual Directory. That should get you started. You should read up on your version of IIS, e.g., this is for IIS 7: https://technet.microsoft.com/en-us/library/cc772042(v=ws.10).aspx.

Is using Mono on CentOS as good as using Microsoft IIS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a MVC project (web application) created using C# in Visual Studio 2015 on Windows. It is working perfectly on a Windows Server.
Now there is a requirement to shift the server from a Windows OS to CentOS.
I googled around to check how to run MVC project on CentOS and found that we can use mono.
But my query is, can we use it in the same way as we use IIS and Windows OS ?
I mean can I just take the project files from my current server (Windows Server 2012) and deploy them as it is on the new server (CentOS) and it will run as it is or do I have to make any programmatic changes ?
I tried this in the past and it wasn't a straight compile and ready to go, I had to follow instructions to get it all migrated.
Here're couple of good resources to read as far as compatibility and migration:
http://www.mono-project.com/docs/about-mono/compatibility/
http://www.integratedwebsystems.com/walkthrough-porting-asp-net-mvc-website-to-mono-2-6-1-and-mysql-on-linux-apache-porting-to-mono-part-3-of-3/

Check windows version from registry c# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a problem,
How can I check the windows version from the registry in c#?
(Windows xp to windows 8.1)
Environment.OSVersion can give you that!
Read the MSDN documentation for Environment class to see all of the other things you can get from this class.
Environment.OSVersion as others stated is right way to go.
However, in case someone want to get it through registry, this can be used -
using (Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine
.OpenSubKey(#"SOFTWARE\Microsoft\WindowsNT\CurrentVersion"))
{
var osVersion = key.GetValue("CurrentVersion");
}
Registry for version is HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion".
Also, corresponding mapping with actual OS from here -
Operating system Version number
----------------- --------------
Windows 8 6.2
Windows Server 2012 6.2
Windows 7 6.1
Windows Server 2008 R2 6.1
Windows Server 2008 6.0
Windows Vista 6.0
Windows Server 2003 R2 5.2
Windows Server 2003 5.2
Windows XP 64-Bit Edition 5.2
Windows XP 5.1
Windows 2000 5.0
You don't need to read the registry; System.Environment.OSVersion gives you this information.

Categories

Resources