Sunday, March 18, 2012

Remote Desktop Full Screen in Windows 7

I have been having problems doing a full-screen mode in Remote Desktop Connection in Windows 7 for a while now and it is pretty annoying. This happens every time I minimize the RDC Window. I tried to google solutions to this and Microsoft suggested some fixes which you need to download and install. Luckily I came across this solution.

Apparently, you only need to press CTRL+ALT+BREAK on your keyboard to force the Remote Desktop screen into full screen. I can't believe Microsoft didn't put this into once of their resolution options on their website. And if your keyboard doesn't have a BREAK key in it, there is another option.

References:

Thursday, March 8, 2012

Solution to: An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode error

I'm starting to blog every error that I encounter (with the solution of course), in the hope that they will become useful to other developers like me.

Today as I was deploying SQL Server Reporting Services 2005 in an IIS 7.5 environment, I encountered the following errors:

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Error Summary

HTTP Error 500.23 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Detailed Error Information
ModuleConfigurationValidationModule
NotificationBeginRequest
HandlerPageHandlerFactory-Integrated
Error Code0x80070032
Requested URLhttp://localhost:80/Reports/Pages/Folder.aspx
Physical Pathc:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\Pages\Folder.aspx
Logon MethodNot yet determined
Logon UserNot yet determined

The solution to this is to change the Managed Pipeline mode of the Application Pool the SSRS sites are running and change it from Integrated to Classic.


In details, the following are the steps I did to do this:

- Open IIS Manager
- Browse for the SSRS Sites (usually located at Default Website\Reports and Default Website\ReportServer)
- View site settings and find out in which application pool are they using
- Click the Application Pool section in IIS and open the properties of the Application Pool the SSRS sites use
- Set the Manage pipeline mode to Classic and click OK

After this last step, go back and check the SSRS Report Server or Report Manager and it should be working now.

Hope this helps.





Wednesday, March 7, 2012

How to Add JavaScript Validation/Attributes/Properties to Forms using Html.BeginForm()

To add a JavaScript validation, an attribute or properties to an HTML form generated in ASP.NET MVC using Html.BeginForm(), you can pass null values to the action and controller parameters to get the same result as Html.BeginForm():

Sample:

using (Html.BeginForm(nullnull, FormMethod.Post, 
            new { onsubmit = "return validateForm();" }))
{
}


Source: http://stackoverflow.com/questions/216600/html-beginform-and-adding-properties

Sunday, March 4, 2012

Installing SQL Server Management Studio 2005 When SSMS Did Not Install Properly

There are some cases when the SQL Server Management Studio 2005 fails to install after installing all the components of SQL Server.

To fix this you can manually install this tool, by browsing on Disc 2 of the installation disks and executing the setup file for this tool:

[Disk 2 Root]\Setup\SqlRun_Tools.msi


During the setup just select the option to include the SQL Server Management Studio and install.