Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

Tutorial and Articles about Windows Hosting, SQL Hosting, MVC Hosting, and Silverlight Hosting

Windows Hosting - ASPHostPortal.com :: Easy tips to protect your Windows from hackers and malware

clock September 26, 2016 20:20 by author Armend

Easy tips to protect your WIndows PC from hackers and malware

In the news recently there have been some high-profile security scares for computer users. Common sense alone isn’t enough to protect your Windows PC from malware – malicious software that disrupts your computer’s operations or gathers sensitive information about your online behaviour.
Hackers can attack your PC in so many different ways that employing several layers of anti-malware protection is the only way to keep your PC malware-free when it’s online.
Here are seven steps to protect your computer from Malware. Check out the video above to find out more.

Tip 1: Install, update and use anti-virus software

Installing antivirus software may sound like an obvious first step to protect against malware, but not everyone bothers to do it. With so many options now available, though, there really is no excuse. Microsoft offers its own free download in the form of Microsoft Security Essentials for Windows Vista and 7, while Windows 8/8.1 has Microsoft Defender built in.
Once installed, it’s vital to regularly update your anti-malware software’s database and run system scans at least once a month.

Tip 2: Keep Windows up to date

Hackers often discover new ways to bypass Windows’ built-in security features, which is why Microsoft issues small operating system updates every Tuesday and larger ‘service pack’ updates once or twice a year. These will be downloaded and installed automatically by Windows update, but only if this feature is properly configured.
To check that it’s working normally, type Windows Update in the Start menu search box in Windows Vista/7, or at the Start screen in Windows 8/8.1. Look on the left of the Windows Update window and click Change settings and use the drop-down list to check that Install updates automatically is selected - anything other than this risks a crucial update being missed.

Tip 3: Turn on the Windows firewall

Windows has a built-in ‘firewall’ that protects your PC from unwanted attention via the internet. This software firewall is enabled by default and works alongside any hardware firewall that’s built into your home broadband router. Check its settings by typing “check firewall” in the Start menu search box or on the Windows 8 Start screen and choosing Check firewall status from the results.
Two green tick marks mean the firewall is working normally, else you’ll need to select Turn Windows Firewall on or off on the left of the window and enable one or both options that appear.

Tip 4: Use the latest version of your web browser

Web browsers are vital applications, but just like other software, they can contain bugs. Hackers are quick to capitalise on these and create bogus (or infect genuine) web sites with data designed to exploit them. Once a web browser has been compromised in this way, a hacker can monitor everything you type, including passwords to credit card numbers. That’s why it’s vital to use the latest version of your web browser - anything other than this may be a security risk.
Microsoft includes updates for Internet Explorer. Search for Windows Update and check its optional updates section to ensure you’re also using the latest version of the application - which is Internet Explorer 11, if you’re using Windows Vista, 7 or 8/8.1.

Google Chrome and Mozilla Firefox will also update themselves automatically, but don’t ignore their requests to restart the browser when such an update has been downloaded and is ready to be installed.
Emails that appear to be from a recognisable online service asking you to log into a site to confirm some personal details are always fake. These emails are usually caught by your email application’s spam filter, but if one does slip through and you click its link, your web browser should detect and block the site it takes you to. This does depend on your web browser being aware of the fraudulent site, though, which is another good reason to always use the most recent version.

Tip 6: Use the Windows Malicious Software Removal Tool

If you suspect your PC has succumbed to malware and your anti-malware software doesn’t detect it, there are two steps to take.
The first is to download and run the Microsoft Malicious Software Removal Tool from the Windows Download Centre. This will detect and remove specific types of malware and is very simple to use, although it isn’t a replacement for a full anti-malware application.

Tip 7: Still infected? Use a boot CD.

Some malware can hide within Windows and make itself difficult to detect and remove. If your own anti-malware software and the Windows Malicious Software Removal Tool fail to shift it, you’ll need to download and burn a free anti-malware boot CD – refer to your computer’s manuals for instructions on how to boot from a CD as the process varies from manufacturer to manufacturer.

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.



Windows Hosting - ASPHostPortal.com :: How to find the License Agreement for the Installed version of Windows

clock September 19, 2016 19:31 by author Armend

How to find the License Agreement for the Installed version of Windows

When you install Windows, you are shown the Windows license agreement that provides all the legal language about what you can and cannot do with Windows and the responsibilities of Microsoft. Recently I wanted to read the license agreement again for Windows and I surprisingly found it difficult to find it.
With that said, I put together this guide to show how you can find the license agreements for all editions of your currently installed Windows version and read it.
The first step is to identify the version of Windows currently installed on your computer. If you already know what version of Windows you are using, you can skip here. Otherwise, in Windows 7 and Windows 8, you can left-click on the Start Menu, then right-click on Computer, and then select Properties. For Windows 10, right-click on the Start Menu and then left-click on the System option.
You will now be shown the System control panel that provides information on what version of Windows you are running as shown below.

As you can see from the above image, I have Windows 7 Ultimate installed on my computer.
Now that we know what version of Windows we are running we can open the folder that contains all of the license agreements for this version of Windows. To do this, click on the Windows (Windows Key) key, and while holding it down, click on the R key to open the Run dialog as shown below.

When the Run dialog box opens, you want to paste the following into the Open: field so that it looks like the image above

  •     c:\windows\system32\en-US\Licenses\_Default

When ready, press the OK button and a folder will open that shows individual subfolders for every edition of the Windows version installed on your computer. Each of these folders contain the respective license agreement for that version of Windows.


Scroll through the list of folders and double-click on the one that corresponds to the edition of Windows that is installed on your computer. When the folder opens, it will contain a single file called license.rtf. This file is the license agreement for your version of Windows and you can double-click on it to view it in Wordpad or Word, if it is installed.

 

You can now read the agreement, print it, or email it as needed.

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.

 

 

 

 



Windows Hosting - ASPHostPortal.com :: Tips Solutions to Create Partition on Server 2003/2008/2012

clock September 5, 2016 20:41 by author Armend

Tips Solutions to Create Partition on Server 2003/2008/2012

Why You Need to Create Server Partition

  • Situation 1: When you install a new hard disk in Windows Server, you have to initialize it first. But it will not be shown in "My Computer" unless you create partition on it. Or you need to create server partition on unallocated space to make full of the hard disk.
  • Situation 2: After the hard drive has been used for a period of time, you may discover that the existed partitions are not reasonable. And then you need to create new partitions to manage your data in a better way

Suppose that you are running Windows Server 2003 and want to create server partition, what should you do?

Actually, there are more than one tool can be used to create partition on Windows Server 2003. The first one is Windows snap-in Disk Management; and the second is a third party server partition manager. As the best partition magic for Windows Server 2003, MiniTool Partition Wizard is really a good choice.
The followings are the specific introductions of creating partition on Windows Server 2003 by using these two server partition managers.

How to Create Partition on Windows Server

  • Solution 1: Create Partition by Using Disk Management

You can open Disk Management by clicking My Computer > Manage > Management, and enter its interface.

  • Way 1: Create Partition on Unallocated Space

If it is a new initialized hard disk or there is unallocated space on it, you can use this way to create server partition.

  • Step 1. Select the unallocated space and choose "New Partition" from the right click menu.
  • Step 2. In the following wizard, you can choose to create a primary partition or extend partition, adjust the partition size, assign a drive letter, and select the file system, allocation unit size as well as volume label. Then, press "Finish" to complete the operation.

Notice! You need to click "New Simple Volume" in step 1 and create primary partition only if you are using Windows Server 2008 or later Windows Server versions.

However, this way is not always available. MBR hard disk can only have four primary partitions, or three primary partitions plus one extended partition at most. If there are four primary partitions on the MBR hard disk, even there is still unallocated space on it, you are not allowed to create partition by using Disk Management.

  • Way 2: Create Partition if There Is no Unallocated Space

You want to create a new partition on the hard disk, but there is no unallocated space on it. This time, you can shrink a partition to release some space and then create server partition on the new released unallocated space.
To shrink a partition by using Disk Management, you can select the target partition, click "Shrink Volume" from the right click menu and follow the next wizard to complete the operation.
Then you are able to create a new partition according to Way 1.

Notice! In Windows Server 2003 and earlier Windows Server versions, there is no "Shrink Volume" option in Disk Management. So you are not allowed to create server partition if there is no unallocated space on the hard disk.

  • Solution 2: Create Partition by Using MiniTool Partition Wizard

MiniTool Partition Wizard is a professional partition manager, which has five editions: Free Edition, Professional Edition, Server Edition, Enterprise Edition and Technician Edition. If you are running Windows Server 2003, you should choose to use the Server Edition to create partition. Actually, MiniTool Partition Wizard Server Edition can be used on Windows Server 2000/2003/2003 R2/2008/2008 R2/2011/2012/2012 R2 and Windows PC OS 32 bits and 64 bits.
The Server Edition is a piece of paid software, but you are allowed to download and install the demo edition on your computer to try its functions first.

  • Way 1: Create Partition on Unallocated Space
    • Step 1. Open the demo edition and enter its main interface. Then select the target unallocated space and choose "Create Partition" from the left operation bar.
    • Step 2. On the pop-out window, you can define the properties of the partition you are going to create. Unlike creating server partition by Disk Management, all these properties can be chosen from just one window in this step
  • Way 2: Create Partition if There Is no Unallocated Space

As it is mentioned above, on Windows Server 2003, you are not allowed to shrink volume to release space for partition creating. But with MiniTool Partition Wizard Server Edition, you can achieve this aim.
The followings are the steps to shrink partition, and then you can create server partition according to Way 1.

  • Step 1. On the main interface of the software, select the target partition and choose "Move/Resize Partition" from the left operation bar.
  • Step 2. On the pop-out window, you are able to shrink the size of the target partition by dragging the black arrow according to directions marked on the next step-by-step picture. And then, click "OK" to go back to the main interface

Since way 1 and way 2 are using the demo edition, you will receive a notice as following after clicking "Apply".

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.

 

Simpan



Windows Hosting - ASPhostPortal.com :: Install .NET Framework 3.5 in #Windows 10

clock August 29, 2016 19:49 by author Armend

Install .NET Framework 3.5 in #Windows 10

If you are facing issues installing .NET Framework 3.5 (many applications actually need this to run) in your Windows 10 and all the other options failed, my dear friend, you came to perfect page where I will show you how to install the same.

In this blog post, we will learn the command by which you can install .NET Framework 3.5 in Windows 10. This also works in other versions of Windows.
If you are facing issues with installation of .NET Framework 3.5, you might have noticed that, it is asking you to install .NET Framework 3.5 to install .NET Framework 3.5. Quite strange!!! Isn’t it? Just like a deadlock. Install “A” to install “A”. Yes my friend, you are right and here comes the solution.

To install the Framework properly, you will need the original Windows installation media. If you don’t have the same handy, download Windows 10 ISO image (for offline installation) using the Windows 10 Media Creation Tool from Microsoft. Once you download the ISO image, double click it to mount it in your system. This will create a virtual DVD drive in your system and mount the ISO there, which will look like a fresh DVD in your system having Windows 10 setup media. Also, you can extract the content of the ISO using tools like WinRAR to proceed with next.

To begin with, open the Command Prompt with administrative privileges. To do so in Windows 10, right click on the start button (or press “Win + X”) to popup the system menu. There you will find a menu item titled “Command Prompt (Admin)”. Click on this to launch the command prompt in admin mode.
Once the Command Prompt opens in the screen, place the following command and hit enter. Please make sure to change the source path, as mentioned later.
DISM  /Online  /Enable-Feature  /FeatureName:NetFx3  /All  /LimitAccess  /Source:x:\sources\sxs
e.g.

If you have Windows setup at “D:” drive, replace “x:” with “d:”

  • If you have Windows setup at “D:\Installers” folder path, replace “x:” with “d:\installers”
  • And also, make sure that “sources\sxs” folder exists in your Windows 10 installation media. When run from the command prompt, it will start installing the .NET framework. Please keep patience as it might take some time to install the .NET Framework. Once done, restart your system for the changes to take effect.

Details on command line parameters, for your reference and knowledge:

  • /Online targets the operating system you're running (instead of an offline Windows image).
  • /Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5.
  • /All enables all parent features of the .NET Framework 3.5.
  • /LimitAccess prevents DISM from contacting Windows Update.
  • /Source specifies the location of the files needed to restore the feature (in this example, the x:\sources\sxs directory).

Details about my struggle with installation of .NET Framework 3.5 and various alternative options that I tried, is already mentioned in this blog post. If you have some spare time, don’t forget to ready that experience.
Hope this will help you to resolve the issue in a very quick manner. Though the post describes installation in Windows 10, but is also applicable for Windows 7, Windows 8 and Windows 8.1.

 

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.



SilverLight Hosting - ASPHostPortal.com :: WCF RIA Services

clock August 22, 2016 19:39 by author Armend

RIA Services mainly targets Business Application Development, and comes across good for this purpose from a few different angles.

  • RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. If you have ever gone through the motions of creating a WCF Service, and then adding a service reference to your Silverlight project you will quickly find that the service calls are all asynchronous, and require you to specify an OnRequestCompleated method for calls that you make to that web service. While there are asynchronous programming patterns out there most business application developers prefer the tried and true N-Tier approach. Asynchronous Method calls make N-Tier Architecture difficult
  • As stated above Ria simplifies tiered architecture this means it is a great choice for creating applications using some of the more popular architectural patterns like MVVM, and MVC.
  • Because RIA Services is from Microsoft, you get tight Visual Studio Integration, and lots of Blogs, and Documentation covering it's use. While some of the open source projects out there are pretty good, most lake adequate documentation and have a steep learning curve.
  • Ria Services is flat out great for Rapid Application Development. There is Code Generation generation built into Visual Studio to generate Domain Services directly from ADO.NET Entities Models that your Silverlight applications can consume.

Where Can I Get WCF RIA Services

You can Get Wcf Ria Services From the Microsoft Web Platform Installer, located here.

  1. Highlight the Web Platform Tab
  2. Scroll Down to Tools
  3. Click the customize Tab
  4. and check off what you need

If you don't have Visual Studio go ahead and check off to get the Express Version. You obviously want to get the RIA Services Toolkit, and while you're here get the the Silverlight 4 Toolkit, and Tools for Visual Studio as well. After the install completes you will have everything you need to work with Silverlight 4 and RIA Services from within Visual Studio.

 

Options for Integrating WCF RIA Services into your Projects

There are a few different way out of the box to integrate WCF RIA Services into your projects using Visual Studio

  • Using the Silverlight Business Application Project Template
  • RIA Services in the Silverlight Application Project Template
  • Using the RIA Services Class Library Project Template

In this post we take a look at each of these approaches, talk about when and how they are useful, and show how implement each one. For this purpose I have created a Visual Studio Solution containing each implementation listed above
In the real world you are not likely to have a solution which implements any combination of these approaches, but for this example it is nice to have them all in one place to look at.

The Silverlight Business Application Project

If you are creating an application that requires Login, Registration, and User Authentication the Silverlight Business Application Project Template is a good way to go. It includes all this right out of the box. It also has website like layout and styles you can customize and some useful helper methods. You can actually learn a few things just by creating this project and then giving it a gook look over.

To create a Silverlight Business Application:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Business Application".
This will create a new two Projects in you solution automatically
You now have a Web Application Project to host your Silverlight Application and Domain Services, and The RIA Link between the two projects is all set up so you can begin adding and consuming WCF RIA Services. If you run the project now you will see all the out of the box features I mentioned are there.

  • Configurable Layout and Styles
  • Login
  • Registration

Not bad for right out of the box. I do have a couple of small issues with this though. Sure, it's great Microsoft has given us all this stuff without having to write a single line of code, but, I would have a couple things different if it were up to me.

  • 1. I wish the project template had a few config options upon creation. For example, for larger projects I may want all my services to be in a WCF RIA Services Class Library (RIA Class Library covered in detail below) in  instead of in the Web Application Project. Now I would have to move them.
  • 2. I'm not really sure what kind of Architectural Pattern they are trying to implement here. As you can see from the image of the Solution Explorer above there is a folder named "Models" in both the Web Application Project, and in the silverlight project. Then there is a Views folder in the Silverlight project that has views in it, but then no ViewModels or Controllers. Okay, so my point is what are they going for here? It makes me want to start moving the code around. If I'm not alone on this please leave me a comment. Anyway, small issues compared to the big picture.

WCF RIA Services Enabled Silverlight Application

If you don't need all the stuff that's included in the Silverlight Business Application above, or plan to just write them yourself, you can also enable RIA Services in a regular silverlight application.

To create a WCF RIA Services Enabled Silverlight Application:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Application".
When you click OK to add the new Silverlight Application a Dialog will appearer allowing you create a New Web Application to host your Silverlight Application in, or to host your Silverlight Application in an existing Web Project. Either way all you need to do is check the box to "Enable WCF RIA Services".
Then when your Project is created, it will already be set up to use RIA Services. You can now start adding domain services to your web project and the RIA link is in place and ready to go.

WCF RIA Services Class Library

The last option is the WCF RIA Services Class Library. In my experience the more separation you have in your solution the better. This project template allows you to house your Domain Services in separate assemblies.

To create a Solution that uses a WCF RIA Services Class Library:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Application".
When the project Dialog box appears allowing you to host your silverlight application in an existing or new Web Application, leave the "Enable WCF RIA Services" checkbox UN-CHECKED. The RIA Link will exist in the RIA Services Class Library.

Now right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "WCF RIA Services Class Library".
This will actually create two projects. The RIA Services Class Library Consists of a Windows Class Library and a Silverlight Class Library and the two projects created contain the RIA Link. The project ending in .Web is the Windows Class Library and will run on the server while the other is the Silverlight Class Library will run on the client. Your solution should now look something like this.
All you need to do now is:

  • Add a reference to the Silverlight Class Library in your Silverlight Application
  • Add a reference to the Windows Class Library in your Web Application

And you are now set up and ready to start adding Domain Services to your server project for consumption in your Web Project. When using this set up you should add your domain services to you Windows Class Library section of your RIA Services Class Library.

Creating and Consuming Domain Services

Now that we know how to set up our RIA Services Project, Lets take a look at adding a Domain Service and consuming it in out Silverlight client to test that we have everything wired up correctly. In all of the scenarios listed above you will always add your Domain Service on the server side and consume that service on the Silverlight Client.
To show you how quick and easy it is to get a Domain Service up and running we are going to create a Domain Service form and ADO.NET Entities Data Model.

  • Start by Creating a Database. Mine consist of only one table with a very simple schema for this example.
  • Now right Click on your Web Project and select "Add New Item", Select "Data" from the Tree Menu on the Left, and then Select "ADO.NET Entity Data Model".
  • Highlight "Generate From Database" and click "Next".
  • Select your Target Database and click "Next".
  • Select the tables you want to generate the Model from and click "Finish".
  • Now that your Entities Data Model has been created do a Rebuild on the project before you do any thing else. This is important because if you forget to rebuild what will happen is when you go to create the Domain Service it will not be able to find your Entities. So go ahead and rebuild now and then we can create out first Domain Service.
  • Now right Click on your Web Project and select "Add New Item", Select "Web" from the Tree Menu on the Left, and then Select "Domain Service Class".
  • Click "Add" and you will get a Dialog Box Allowing you to generate your Domain Service from your entities. Select Enable Editing if you want it to Generate Update, Insert and Delete methods as well.
  • Now Click "OK" and it will generate your Domain Service class. It will look something like this.


[EnableClientAccess()]  
    public class ContactDomainService : LinqToEntitiesDomainService  
    {    

        // TODO:  
        // Consider constraining the results of your query method.  If you need additional input you can  
        // add parameters to this method or create additional query methods with different names.  
        // To support paging you will need to add ordering to the 'Contacts' query.  
        public IQueryable GetContacts()  
        {  
            return this.ObjectContext.Contacts;  
        }    

        public void InsertContact(Contact contact)  
        {  
            if ((contact.EntityState != EntityState.Detached))  
            {  
                this.ObjectContext.ObjectStateManager.ChangeObjectState(contact, EntityState.Added);  
            }  
            else 
            {  
                this.ObjectContext.Contacts.AddObject(contact);  
            }  
        }    

        public void UpdateContact(Contact currentContact)  
        {  
            this.ObjectContext.Contacts.AttachAsModified(currentContact, this.ChangeSet.GetOriginal(currentContact));  
        }    

        public void DeleteContact(Contact contact)  
        {  
            if ((contact.EntityState == EntityState.Detached))  
            {  
                this.ObjectContext.Contacts.Attach(contact);  
            }  
            this.ObjectContext.Contacts.DeleteObject(contact);  
        }  
    }

Notice it created services methods to preform all the CRUD opperations we need against our Database.
Now in our Silverlight project we will create a Grid in our MainPage.xaml to display our data like so:

<sdk:DataGrid x:Name="DataGrid" Margin="12" AutoGenerateColumns="True" />

Then in the code behind (MainPage.xaml.cs) we will add the code to call our domain service and populate our grid.

  • You will need to add a using directive to the Namespace in your server project where your domain services are located.
  • Create a private instance of your DomainContext
  • In the constructor call the load method of your context and pass in your GetContactsQuery from your Domain Service
  • Set the ItemSource Property of your DataGrid to the Collection of Contacts now available in your DataContext.

using SilverlightApplication3.Web;    
namespace SilverlightApplication3  
{  
    public partial class MainPage : UserControl  
    {  
        private ContactDomainContext _context = new ContactDomainContext(); 

        public MainPage()  
        {  
            InitializeComponent();  
            _context.Load(_context.GetContactsQuery());  
            DataGrid.ItemsSource = _context.Contacts;  
        }  
    }  
}

Now hit F5 and run the application. TADA! You should now see your data in the grid!
I hope this helped you in getting started with .NET RIA Services. I will be covering more in future posts.



Windows Server Hosting - ASPHostportal.com :: Tips to Help Diagnose and Prevent Windows Server Crashes

clock August 15, 2016 20:12 by author Armend

Simple Tips to Help Diagnose and Prevent Windows Server Crashes

In an enterprise setting, server failures are never an issue to be taken lightly. Since servers are the backbone of most modern operations, being able to pinpoint the cause of errors rapidly is an essential skill for any Windows server administrator. Fortunately by following a few simple steps you can easily pinpoint the cause of most Windows Server errors.

 

Best Practice Analysis Automation

In Windows Server 2008 R2, Windows Server 2012 and Windows Server 2012 R2, Microsoft has included a tool known as the Best Practices Analyzer (BPA). BPA is an automated scanner which when run will check your server to ensure that it is configured for optimal performance, reliability and maximum security. While this tool is not a substitute for keeping atop of Windows Server trends, BPA helps to ensure that the most commonly exploited violations are blocked on your servers.

Proactive Actions to Simplify Troubleshooting

Enable Kernel Crash Dumps

One of the most important debugging tools within Windows is the kernel crash dump file. This file typically contains all the information necessary to pinpoint the cause of a server issue. Unfortunately this feature isn’t configured by default, making it crucial that you enable this feature before experiencing issues.
To enable this feature, follow the steps below:

  • Go into:  Control Panel > System and Security > System.
  • Click Advanced system settings.
  • Under Startup and Recovery, click Settings
  • In the box that pops up, under Write Debugging Information you can specify the location for the crash dump file
    • Additionally you can have crashes added to the Windows Event Log, and you can also trigger a restart automatically upon a crash

After configuring the Windows crash dump settings, you will need to setup Windows to enable your keyboard to cause a system crash.
With PS/2 keyboards, you must take the following steps:

  • In the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\i8042prt\Parameters, create a value named CrashOnCtrlScroll
  • Set it equal to a REG_DWORD value of 0x01.
  • Restart your system

With USB keyboards, you must take the following steps:

  • In the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\kbdhid\Parameters, create a value named CrashOnCtrlScroll
  • Set it equal to a REG_DWORD value of 0x01
  • Restart your system

Windows Debugging Tools

To help with common issues that might come up as a server administrator Microsoft has released multiple debugging tools to make the job easier.

Sysinternals Suite

The Sysinternals suite is like a Swiss Army knife for your troubleshooting efforts. This collection of seventy tools maintained by Microsoft ensures that you can easily pinpoint the source of virtually any error and take action accordingly. While this suite is best installed on a thumb drive to be used when errors occur, you can also load this suite on your servers early on as a proactive measure.

While there are many tools within the suite, there are a couple which you should keep on mind;

  • Disckmon – this tool monitors, logs and displays all hard disk activity on a Windows system. By using this tool, you can better pinpoint errors which might be caused by pending hard disk failures.
  • Procdump – this tool allows you to monitor applications for CPU spikes and generating crash dumps during a spike. Additionally the tool can serve as a general dump utility which can be included in other scripts. By using this tool, you can greatly expedite the process of diagnosing troublesome applications and figuring out where to start debugging efforts.
  • TCPView – this tool allows you to view detailed listings of all TCP and UDP endpoints on your system. By using TCPView, you can pinpoint server issues to specific ports, allowing you to more in-depth action accordingly.

Windows Memory Diagnostics

Since RAM is one of the most used components of any server, many system failures often are due to memory-related matters. While typical memory issues involve applications using too much resources, or a process running out of control, failing hardware also can be responsible for system crashes. Fortunately you can easily diagnose potential memory trouble spots by using the Windows Memory Diagnostics tool built into most modern Windows Server editions.

  • To use this tool, simply open the command prompt and use the following command C:\mdsched
  • From there, you should follow the prompts to complete the diagnostic process.

The Importance of Backups

Even with the best tools and skills, occasionally a professional will encounter an issue which is beyond repair. When situations such as these occur, having a solid backup system always pays off. Although there are many backup tools on the market, Windows has a backup tool built in which can be used to protect yourself from even the worst disasters.
For details on implementing Windows Backup in windows Server 2008 and Windows Server 2012, Microsoft has documentation here.

Clustering as a way to Mitigate Risks

Server clustering is the process of having a group of independent servers working together as a single system to deliver more reliability to your users. Such arrangements are designed to protect against the following types of failure:

  • Applications and service failures which can affect software and essential services
  • System and hardware failures which can affect low level server components
  • Site failures in multisite organizations  which can be caused by natural disasters and other significant situations
  • By using clustering, you can ensure that when disaster strikes, your systems can continue operating instantly by shifting responsibility from the failed systems to the functional ones.

Conclusion

Although there are many variables which impact the reliability of your Windows servers, by focusing on proactive actions to mitigate damage you can avoid the difficulties of troubleshooting server issues. Even with the best precautions however, failures still occur, which is why you should familiarize yourself in advance with the technologies Windows provides to make the debugging process much easier.

Best Windows Server 2012 Hosting Recommendation

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2012. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2012 Hosting, we should be your best choice.



SilverLight Hosting - ASPHostPortal.com :: How To clean up Broken SilverLight Installation

clock August 8, 2016 19:38 by author Armend

How To clean up Broken SilverLight Installation

In this article we will show you several tips to clean up broken silverlight after installation.  If Silverlight isn't working for you and you are getting errors trying to either uninstall, reinstall or upgrade Silverlight the steps below might help you. Note that I'm not listing all the steps to remove every trace of Silverlight from your machine. These steps are just meant to clean up enough so that future attempts to install, upgrade or uninstall don't fail.


Standard warnings about editing your registry apply. Be careful that you only delete what I say to delete below. If you delete too much by accident it is quite likely that you will break something and there is no way to undo accidental changes.

Steps to clean up a machine to fix a broken Silverlight installation:

  • In the Control Panel, open the Add/Remove Programs applet (Programs on Vista) and uninstall Microsoft Silverlight if it is shown as installed by clicking on it and then clicking Uninstall or Remove. If you get an error on this step (for example a dialog saying that the msi file cannot be found), just continue on to the next step
  • Using regedit, navigate to HKLM\Software\Microsoft\Silverlight and delete the key.
  • From an administrator command shell you can do this by running:

reg delete HKLM\Software\Microsoft\Silverlight /f

  • Using Windows Explorer, delete the “Microsoft Silverlight” directory from under Program Files.
  • From an administrator command shell on an x86 you can do this by running:

rmdir /s /q "%ProgramFiles%\Microsoft Silverlight
If you are on a 64-bit version of Windows, substitute ProgramFiles(x86):
rmdir /s /q "%ProgramFiles(x86)%\Microsoft Silverlight

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest SilverLight hosting, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.

 



Windows Hosting - ASPHostPortal.com :: How to Reset Admin Password in Windows Server 2012 R2

clock August 1, 2016 19:59 by author Armend

How to Reset Admin Password in Windows Server 2012 R2

Windows Server 2012 R2 brings a host of new features that greatly enhance the functionality of the operating system. Many of these improvements expand on existing capabilities of Windows Server 2012.  The new product also benefits from having the capability of performing at a much higher level than previous servers and comes equipped with an integrated virtualization platform.

 

In this article I will tell you about how to reset Windows Server 2012 R2 lost admin password. The answer is not absolute. For example, if you have password reset disk or another administrator available, Windows server 2012 r2 lost admin password would be reset instantly.
Or if you have backup Windows system status with disk, such as Windows system restore disc, you could restore Windows server 2012 r2 to early system point.
Even though there are not anything available for recovering server 2012 r2 password, Windows system 2012 r2 installation disk and third-party recovery tool would help you too.

First, Windows system installation disk reset Windows server 2012 r2 admin password.
Preparation: a copy of Windows server 2012 r2 installation disk
The key step of resetting server 2012 r2 admin password with installation disk is to replace Utilman.exe.

  • Boot off Windows disk and select the "Repair your computer" option from the lower left-hand corner.
  • Get to the option to open the Command Prompt.
  • Type the following commands to back up the utilman.exe file:
  • MOVE C:WindowsSystem32Utilman.exe C:WindowsSystem32Utilman.exe.bak
  • Copy cmd.exe and rename it Utilman.exe.
  • COPY C:WindowsSystem32cmd.exe C:WindowsSystem32Utilman.exe
  • Now you can go ahead and reboot your machine. When it's done booting up again and you are at the Logon screen click on the Ease of access icon.
  • Now you have replaced Utilman.exe with cmd.exe.
  • Command Prompt opens, type following commands:
  • .net user administrator *

Once you press Enter, you will be asked to set a new password and then confirm it. When entering new one, don't worry if you can't see it, because it is invisible, however it has been remembered.
Once you're logged in again, don't forget to delete Utilman.exe and then rename Utilman.exe.bak back to plain old Utilman.exe.

Second, reset server 2012 r2 admin password with third-party Windows password genius.
Windows Password Genius has four versions available, standard, professional, and advanced and raid. And the raid version is special, because it works for raid server Windows domain or local admin password reset. The advanced is general version, working on both server and client computers.

So choose appropriate Windows password recovery version to burn a password reset disk and then recover Windows server administrator password.
Preparation: Windows Password Genius Advanced/Raid, available computer and bootable USB drive.

  • Install Windows Password Genius Raid, and run it on available computer.
  • Insert bootable USB drive into this available computer and choose USB, click "Begin burning" to create password reset disk with USB.
  • Exit USB device after it is successfully burned with password reset disk.
  • Plug USB into server 2012 r2 and boot server from USB.
  • Recovery tool program runs, and then choose Windows system - Windows serve 2012 r2, and select user account - administrator.
  • Click "Reset Password", the administrator would be set with new password "[email protected]".

At last, reboot server computer to finish Windows password reset. But remember to exit USB reset disk from server before your server computer boots from hard disk successfully.

Best Windows Server 2012 R2 Hosting Recommendation

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.

 



Windows Hosting - ASPHostPortal.com :: Web Services with ASP.NET

clock July 25, 2016 20:35 by author Armend

Web Services with ASP.NET

A Web Service is programmable application logic accessible via standard Web protocols. One of these Web protocols is the Simple Object Access Protocol (SOAP). SOAP is a W3C submitted note (as of May 2000) that uses standards based technologies (XML for data description and HTTP for transport) to encode and transmit application data.
Consumers of a Web Service do not need to know anything about the platform, object model, or programming language used to implement the service; they only need to understand how to send and receive SOAP messages (HTTP and XML).

 

Soap Message

A SOAP message consists of several elements, most notably an envelope. The envelope encapsulates the data transmitted within the SOAP message. Below is a simple SOAP message complete with HTTP headers:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
               xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <soap:Body>
    <PerfCounters xmlns="http://tempuri.org/"/>
  </soap:Body>
</soap:Envelope>

In the example above, we see the HTTP headers for the request, including the HTTP SOAPAction header, which is optionally used by the server for routing the SOAP message. Following the HTTP headers we find the body of the HTTP message. The body of the HTTP message is the SOAP request for a PerfCounters Web Service, which we are going to build.

Best Windows Server 2008 Hosting Recommendation

ASPHostPortal.com

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.

 



ASP.NET Hosting - ASPHostPortal.com :: How To Configuring your .NET application to use the ASP.NET Session State Store Provider

clock June 27, 2016 19:55 by author Armend

How To Configuring your .NET application to use the ASP.NET Session State Store Provider

In this post I will show you how to configure the ASP.NET session state store provider, you must update the web.config file for the ASP.NET application to include the ASP.NET session state store provider and its configuration.

Before you begin

  • Configure a data grid to store ASP.NET HTTP session state.
  • You must have the catalog server host and port.

Procedure

Update the web.config file of your ASP.NET application with settings for the ASP.NET session state store provider. You must update or add the text in bold in the following example to the web.config file

<system.web>
    …
    <sessionState
        mode="Custom"
        customProvider="WxsSessionStateStoreProvider">
        <providers>
                <add
                     name="WxsSessionStateStoreProvider"
                    type="IBM.WebSphere.Caching.SessionStateStore.WxsSessionStateStore,
                        IBM.WebSphere.Caching, Version=8.6.0.2000, Culture=neutral,
                        PublicKeyToken=b439a24ee43b0816"
                    wxsPropertyFile="\optional\path\to\NET-client.properties"
                    wxsHostAndPort="optionalHostAndPort"
                    wxsGridName="session"
                    wxsMapName="ASPNET.SessionState"
         />          
        </providers>
        </sessionState>
    …
</system.web>

wxsPropertyFile (optional)Specifies the fully qualified properties file that the provider uses when it connects to the data grid with the Connect API. If this attribute is not specified or is an empty string, the provider looks for the Client.Net.properties file in the current runtime directory of the web application process. If the provider does not find the file in the runtime directory, it looks for the Client.Net.properties file in the net_client_home\config directory.wxsHostAndPort (optional)Specifies a comma-separated list of catalog server host and port pairs to which the session state store provider connects when it accesses the data grid. The format follows:

<host name or host ip address>:<tcp port>[,<host name or host ip address>:<tcp port>]

If no value is specified, localhost:2809 is used.

wxsGridName (optional)

Specifies the name of the data grid to which the ASP.NET session store provider connects. If you created a data grid for ASP.NET session states, specify the data grid name that you created. If you do not specify a value, the provider connects to the session data grid.

wxsMapName (optional)

Specifies the map to which the provider connects. If you do not specify a value, the provider connects to the ASPNET.SessionState map.

  • Restart the target web application. The web application must restart so that the provider can be loaded by IIS. In most cases, after the web.config file is modified and current HTTP request processing is complete, the restart occurs automatically.

Results

ASP.NET session state from your ASP.NET application is stored in the data grid.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions


Author Link


Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Sign in