How to change the ASP.NET version of a website or virtual directory without restarting IIS


I was asked to create a new website that would require ASP.NET version 4.0.30319. As the IIS server only had APS.NET versions 1.1.4322 and 2.0.50727 I needed to install .Net Framework 4.0.

After I installed .Net Framework v 4.0 I created the new website but when I chose the ASP.NET version 4.0.30319 I got the message:

Changing the Framework version requires a restart of the W3SVC service. Alternatively, you can change the Framework version without restarting the
W3SVC service by running: aspnet_regiis.exe -norestart -s IIS-Viirtual-Path

Do you want to continue (this will change the Framework version and restart the W3SVC service)?

As we host a large number of criticial websites I didn’t want to restart IIS but when I tried to run the command line that they suggested would make the change dynamically I couldn’t seem to get the ‘IIS-Virtual-Path’ syntax correct.

After a search similar issues pointed to using the aspnet_regiis -lk command to display site id’s but this command only displays high level ID’s rather than individual websites or virtual directories that are in sub directories.

I finally found this excellent post which put me on the right track:

http://www.techulator.com/resources/4487-How-change-NET-Framework-version-IIS.aspx

I followed the advice and right clicked on my new website and selected All Tasks > Save configuration to a file

Unlike the post I didn’t have an ‘IIsWebServer Location’ but instead an ‘IIsWebVirtualDir Location’ which was in the format /W3SVC/1/Root/MyNewWebsite

I then ran the command (from C:WINDOWSMicrosoft.NETFrameworkv4.0.30319 or whichever ASP.NET version you wish to register from)

aspnet_regiis -norestart -s W3SVC/1/Root/MyNewWebsite

This registers the .NET version change recursively to the website.

Finally in the ASP.NET tab of the website check that the ASP.NET version has been changed.

Advertisements

How to free up internal device space on a Samsung Galaxy Android phone


I was receiving various updating errors such as ‘unable to install in default location’ and ‘not enough space to update’ when apps where attempting to update.

After much searching found http://forums.androidcentral.com/samsung-galaxy-s-ii/272384-galaxy-s2-cannot-download-updates-new-apps.html

Following the advice of dialing *#9900# on the phone it presents a menu. Selecting the second option of Delete dumpstate/logcat cleared an additional 450MB on the internal storage!

How to correctly rename a default instance of SQL Server 2005


After we did a migration from an earlier version of SQL to a new server we needed to rename the Windows server to match the old one.

It does actually seem to rename the SQL instance when you open SQL SSME but there is an extra step to complete fully:

Run the following in Query Analyser:

SELECT @@SERVERNAME

Which will return the old name of your SQL Server

Then using the quotes if needed (esp if your server name includes a hyphen) :

sp_dropserver ‘old server name’
GO
sp_addserver ‘new server name’, ‘local’
GO

Run SELECT @@SERVERNAME again should return the name of the correct server

How to set the Access 2003 Security Level to Low for all user profiles


By default the Security Level in Access 2003 is set to Medium (Tools > Macro > Security). If a database has macros built in then you will be prompted with a couple of messages regarding ‘blocking unsafe exceptions’ and ‘do you want to continue to open.’

My particular issue was with an Access 2003 database that was to be accessed by a large number of users via a Terminal Server.

To suppress these messages you need to set the security level to ‘low’. Although you can do this in Access itself, this only applies to that user profile.

To set across all user profiles you need to add the following registry key (obviously take a backup of the registry before making any changes)

I had to create the Security key as it didn’t already exist.

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice11.0AccessSecurity]
"Level"=dword:00000001

Error ‘The Logon User Interface DLL NWGINA.DLL failed to load’ instead of a login prompt


I had removed the Novell Netware client from an XP workstation and received this error message after a reboot. It’s simply a registry key that hasn’t been deleted during the Novell client uninstall process.

Restart the PC in Safe Boot mode. Open the registry and locate the following key:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogonGinaDLL

The value is set to NWGINA.DLL

Double click the GinaDLL key and change the value to MSGINA.DLL

Restart the PC and you should now have a Windows login prompt.

Error “Windows cannot install required files. The file may be corrupt or missing. Make sure all files required for installation are available, and restart the installation. Error code: 0x80070570” when installing Windows 7


I have had this frustrating problem whenever I try to deploy via MDT or directly via DVD. The installation copies the Windows files but fails at xx% during the expanding Windows files process.
I first assumed that it was a faulty hard drive but diagnostics stated that it was fine. I reset the BIOS to use the defaults and reset the CMOS battery but to no avail. Finally I looked at the memory which was 2 x 2GB modules. I removed 1 module and restarted the Win 7 installation and hey presto the installation then was fine!

Zenworks does not allow client login with the error ‘Unable to log into the Zenworks realm because the system has disconnected from the network and the specified credentials did not match the credentials cached on the system’


Unable to log into the Zenworks realm because the system has disconnected from the network and the specified credentials did not match the credentials cached on the system.

I had this error on a client PC that wasn’t displaying the correct number of application icons in the Zenworks Application Window. Right clicking on the taskbar icon showed that the client wasn’t logged in – when an attempt to login was made the error message above was produced.

I followed advice on the Novell forums which amounted to:
– Clearing the cache by running this command rd C:Program FilesNovellzenworkscachezmd" /q /s
– Then running a refresh from the command prompt zac ref

After a restart this still didn’t allow the client to login so I could find no other way than removing and reinstalling the Zenworks application which then went on to work as normal.

How to change a linux account password


I don’t dabble in Linux very much but had an issue with an account on a CentOS server and I’d forgotten how to reset a password

You need to be logged in as superuser i.e. root so that you are then able to change the password for any account.

The command is passwd:

passwd joebloggs

You should then be prompted to enter a new password and asked to confirm

Java error ‘Application Blocked by Security Settings’


Received this error earlier when accessing a section of an application that required Java to run. ‘Application Blocked by Security Settings – Your security settings have blocked an application from running with an insecure or expired jre’

You may also receive a second error this time a ‘Security Exception’

I think the cause of the problem is profile based. A different Windows profile works fine so it’s a local issue caused probably by accidentally selecting ‘No’ if ever prompted to run the application – probably the first time after a Java update.

This page mentions accessing the Java applet in Control Panel then selecting Tools>Internet Options>Security tab, click "Reset all zones to default"
http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/did-java-update-and-now-windows-states-application/29fdfc22-e594-413a-b1de-c6eb4954e4a4

Unfortunately the Java applet seems different for each version of Java and I couldn’t find the "Reset all zones to default" option

I updated Java to the latest version which then prompted again the first time I opened my application through a web page and I was then able to access the content without any errors.

Desktop shortcuts disappear in Windows 7


On a couple of occasions I have lost a number of my Excel and Word shortcuts from my Windows 7 desktop inexplicably.

This is apparently normal behavior as Windows 7 cleans up what it believes to be broken or unused links. However this is infuriating as I regularly use the links hence their existence on the desktop in the first place!

To stop this from automatically occurring:

– Open up Task Scheduler (Start > All Programs > Accessories > System Tools)
– In the left hand pane expand the Task Scheduler Library
Select Microsoft > Windows > Diagnosis
– In the middle pane a task should be displayed as Scheduled. Right click this and select Disable
– Exit the Task Scheduler