Thursday, April 26, 2012

Windows Server keeps changing the time/date back




Problem
When I try to change the date, say from 4/26/2012 to 4/25/2012, it automatically changes back within a few seconds.

Solution
This turned out to be because the server is a virtual, and it's set to sync with the virtual host in Hyper-V.

1. Open Hyper-V
2. Right-click on the virtual
3. Select Settings
4. In Integration uncheck Time synchronization, and save

CD will not AutoPlay

Problem
CD won't AutoPlay.

Solution
I tried many proposed solutions but it ultimately ended up being a program that was interfering with AutoPlay.

I followed the steps here: http://support.microsoft.com/kb/929135, and by process of elimination determined it was HP Update causing the problem.

Steps:
1.  Start->type msconfig

2. In General tab select Selective Startup

3. Click Services tab

4. Check Hide all Microsoft Services

5. Uncheck half of the checked services

6. Click Apply

7. Restart

8. If the CD still won't autoplay, repeat steps 3-7 until all of the services have been disabled or until it works. If you've tried all the services and it won't work do the same thing in Startup.

9. If the last disable batch caused it to start now reverse the process, by enabling half of the ones you just disabled, and continue to do this until it stops working again. Keep enabling/disabling until you narrow it down to one item.

Once you find the culprit keep it disabled. In my case it was a program that wasn't vital or necessary so i uninstalled it.


Other Solutions to try
http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-AutoPlay-problems 


 References
1. http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/6820cb67-9353-4cf4-bcbb-df3ddbe61107/

2. http://support.microsoft.com/kb/929135

Wednesday, April 25, 2012

XML File Changes not updating to new [PROPERTY] in Installshield

Problem: XML File Changes feature is not properly updating an element's content to a [PROPERTYNAME] changed value. This can be found by navigating to "XML File Changes" -> Click on a node -> click on "Advanced tab"

Workaround: First set the content to "[PROPERTYNAME]" (with qutoation marks), build it, and then remove the quotation marks, and build again.

Note: This is a bug and it's not known why this workaround actually works, but it does.

Friday, April 13, 2012

ASP.NET Your login attempt was not successful. Please try again.



Problem
When logging into my website on my dev machine, i was getting "Your login attempt was not successful. Please try again."

I verified that my username/password were correct. No other settings in the web.config changed since the last time i logged in.

Solution 
For some reason I had double-clicked on the Login control and created   
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {

    }

and left it empty. So this means when I was trying to login it was literally doing nothing, which is why the login was not successful. Since I didn't need to customize the authentication process the solution was simply to delete this method.

References

1. http://www.codeproject.com/Articles/27682/Your-Login-Attempt-was-not-Successful-Please-Try

There was an error in this gadget