Monday, March 22, 2010

Enabling / Disabling Client Based Globalization

For Client Based Globalization :-

globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Rubik.IB.Common.Resource.CustomResourceProviderFactory, Rubik.IB.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=
aafffa"

For Server Based Globalization : -

globalization enableClientBasedCulture="false" uiCulture="en-AU" culture="en-AU" resourceProviderFactoryType="Rubik.IB.Common.Resource.CustomResourceProviderFactory, Rubik.IB.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=
aafffa"

Thursday, December 10, 2009

When Logs are crated get created under C:\Windows folder

When Logs are crated get created under C:\Windows folder

Solution :

System.IO.Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);

Thursday, November 19, 2009

Unable to login when both Form Authentication and Windows Authentication is implmented

Error we were receiving :

Event code: 4006
Event message: Membership credential verification failed.
Event time: 19/11/2009 12:43:51 PM
Event time (UTC): 19/11/2009 1:43:51 AM
Event ID: 1bedfdd7dd734d0c8cbba1a3ae61c019
Event sequence: 112
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/80145796/Root/RubikIBS-23-129029908738237500
Trust level: Full
Application Virtual Path: /RubikIBS
Application Path: C:\Inetpub\wwwroot\mobi\RubikIBS\
Machine name: SWIFT_HOMEBANK

Process information:
Process ID: 8352
Process name: aspnet_wp.exe
Account name: SWIFT_HOMEBANK\ASPNET

Request information:
Request URL: http://10.11.3.17:4747/RubikIBS/Login.aspx
Request path: /RubikIBS/Login.aspx
User host address: 10.10.9.99
User:
Is authenticated: False
Authentication Type:
Thread account name: SWIFT_HOMEBANK\ASPNET

Name to authenticate: 1938113

Custom event details:

For more information, see Help and Support Center at


Well the issue was caused since the password in the database was changed hence it was authenticated via the forms authentication but it failed on Windows authentication

Saturday, November 7, 2009

Login failed for user 'username'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)

Cause::

The SQL server has been configured to operate in "Windows Authentication Mode (Windows Authentication)" and doesn't allow
the use of SQL accounts.


Resolution::
Change the Authentication Mode of the SQL server from "Windows Authentication Mode (Windows Authentication)"
to "Mixed Mode (Windows Authentication and SQL Server Authentication)".

Friday, November 6, 2009

Display decimal value as 2 decimal places in DataGrid

BoundColumn
<asp:BoundColumn ...... DataFormatString="{0:f2}"/>

TemplateColumn
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label Text='<%# String.Format("{0:f2}", DataBinder.Eval(Container.DataItem,"testfield") %>' ...../>
</ItemTemplate>
</asp:TemplateColumn>


BoundColumn as Currency
DataFormatString="{0:c}"/>

1 ==> $1.00

Tuesday, October 20, 2009

Sample Databases in SQL Server 2005

Sample Databases in SQL Server 2005

SQL Server 2005 doesn't include the classic Pubs and Northwind databases. You can, however, download them from Microsoft. You'll get both binary database images (*.mdf and *.ldf) as well as SQL scripts.

If you plan to use the binary database files (*.mdf and *ldf), first copy those files to the correct default location for database files in a typical SQL Server 2005 installation:

c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\

This path varies somewhat depending how many instances of SQL Server you have on your machine.

You can either install from the Management Studio GUI if you have SQL Server 2005 Standard or Developer, or install from the command line if you have SQL Express. There is, however, a downloadable add-on version of the Management Studio GUI specifically for SQL Express.

Installing sample databases from the command line:

If you're using the binary files:

osql -E -Q "exec sp_attach_db @dbname=N'Northwind',
@filename1=N'C:\path\northwind.mdf',
@filename2=N'C:\path\northwind.ldf'"

If you're using SQL scripts:

sqlcmd -S .\SQLEXPRESS -E -I -i instpubs.sql

Installing sample databases from the Management Studio GUI:

If you're using the binary files:

  • Right-click the root database
  • Click "Attach"
  • Click the "Add" button and choose the *.mdf file from the \Data folder
  • Click OK

If you're using SQL scripts:

  • Click the "New Query" toolbar button
  • cut and paste the contents of the instnwnd.sql or instpubs.sql scripts in the query window
  • hit F5 to run.

There's also a rather large new sample database in SQL Server 2005 called AdventureWorks. Unfortunately, it's not installed by default. Rather than going through a tedious Add/Remove Programs cycle, you can download the standalone database from Microsoft. There's also a handy AdventureWorks schema diagram in HTML and Visio format.

Wednesday, September 23, 2009

.NET Runtime version 2.0.50727.3074 - Fatal Execution Engine Error (73FE5FC0) (80131506) - WCF

VS2008 was crashing when I started debugging with WCF TestClient.

The Event Viewer as displaying the following : -

.NET Runtime version 2.0.50727.3074 - Fatal Execution Engine Error (73FE5FC0) (80131506)

Fix :

As suggested here : -
http://englestone.blogspot.com/2009/08/net-runtime-version-20507273082-fatal.html

http://blogs.msdn.com/webdevtools/archive/2009/03/03/hotfix-available-for-asp-net-mvc-crashes-with-azure-power-commands-resharper.aspx

https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16827&wa=wsignin1.0

"Windows6.0-KB963676-x86.msu "