Google

Friday, July 11, 2008

BC30456: 'InitializeCulture' is not a member of XXX

Recenly I was developing my first ASP.Net app which was in ASp.Net 3.5.
After completing the app and uploading to server i found that i got error saying that "BC30456: 'InitializeCulture' is not a member of xxx".Bcoz i m beginner i could not find the source of this error so I had searched a lot on the net and found this solution which really worked for me.

If you use Visual studio to publish your site, during the publishing stage on framework 2.0 uncheck the "allow this precompiled site to be updatable".

Monday, May 12, 2008

Return ArrayList from Web Service

Recently i have tried to return an ArrayList collection from a Web Service.I had to face lots of difficulties.
Whenever i tried to return an ArrayList from my simple web service i got an error saying
"Value of Type '1-dimensional array of Object cannot be converted to System.Collections.ArrayList".
I searched a lot on the internet but found nothing.Then I posted my problem to some forums.
One expert from one forum gave me the solution.and This really works fine for me.

So i m puting the solution here for others

Here is the method code of my simple web service.


_
_
Public Function Test() As ArrayList

Dim lst As New ArrayList

lst.Add("Abc")
lst.Add("bca")
lst.Add("ahy")
lst.Add("fkc")

Return lst

End Sub



and Below is a code for consuming web Service.

Dim ws As New localhost.Service

Dim aList As New ArrayList(ws.Test)

ListBox1.DataSource = aList

Friday, May 2, 2008

Fifteen Cool Features in WPF 3.5

re's a non-exhaustive list of improvements:
  • Performance
    • Fixed animation glitching issues.
    • Layered windows are now hardware accelerated.
    • Many other fixes to improve cold start, data binding, etc.
  • Data Binding
    • Support for XLINQ binding.
    • Improved data validation on binding (ValidatesOnDataErrors and ValidatesOnExceptions binding properties).
    • Much better debugging (PresentationTraceSources.TraceLevel can be set on bindings or providers).
  • Graphics and Text
    • UIElement3D (enables interactive 2D content on 3D surfaces).
    • Improved support for IMEs (input method editors).
    • Indic script support.
    • TextBox now supports a limited undo history.
    • RichTextBox now fully supports inline elements (e.g. a Button).
  • XBAPs
    • Introduced support for the Firefox browser.
    • WCF now operates in partial-trust mode.
    • Can now read/write HTTP cookies.
  • App Model
    • System.AddIn provides support for isolated visual and non-visual add-ins, allowing for discovery, versioning, activation and lifecycle management.

Fix : Error 18452 Login failed for user ‘(null)’. The user is not associated with a trusted SQL Server connection.

Recently i have faced this error.
I have searched a lot on the net and got this solution which is really working.

Error: 18452 Login failed for user ‘(null)’. The user is not associated with a trusted SQL Server connection.

Fix/Solution/Workaround:
Change the Authentication Mode of the SQL server from “Windows Authentication Mode (Windows Authentication)”
to “Mixed Mode (Windows Authentication and SQL Server Authentication)”.

Run following script in SQL Analyzer to change the authentication

ALTER LOGIN sa ENABLE
GO
ALTER LOGIN sa WITH PASSWORD =
GO

OR

In Object Explorer, expand Security, expand Logins, right-click sa, and then click Properties. On the General page, you may have to create and confirm a password for the sa login. On the Status page, in the Login section, click Enabled, and then click OK.

Wednesday, March 19, 2008

.Net PE File Format

Microsoft's .NET Framework has extended the PE format with features which support the Common Language Runtime (an implementation of the .NET virtual machine). Among the additions are a CLR Header and CLR Data section. Upon loading a binary, the OS loader yields execution to the CLR via a reference in the PE/COFF IMPORT table. The CLR VM then loads the CLR Header and Data sections.

The CLR Data section contains two important segments: Metadata and Intermediate Language (IL) code:

  • Metadata contains information relevant to the assembly, including the assembly manifest. A manifest describes the assembly in detail including unique identification (via a hash, version number, etc.), data on exported components, extensive type information (supported by the Common Type System (CTS)), external references, and a list of files within the assembly. The CLR environment makes extensive use of metadata.
  • Intermediate Language (IL) code is abstracted, language independent code that satisfies the .NET CLR's Common Intermediate Language (CIL) requirement. The term "Intermediate" refers to the nature of IL code being cross-language and cross-platform compatible. This intermediate language, similar to bytecode in Java, allows platforms and languages to support the common .NET CLR. IL supports object-oriented programming (polymorphism, inheritance, abstract types, etc.), exceptions, events, and various data structures. IL code is assembled into a .NET PE for execution by the CLR.

Wednesday, February 20, 2008

Types of JIT ( Just In Time Compiler )

(1) PRE JIT Compiler।
(2) ECONO JIT Compiler.
(3) NORMAL JIT compiler.

(1) PRE JIT Compiler :

Pre-JIt compiler compiles complete source(MSIL)code to Native code in a single Compilation.

(1) ECONO JIT Compiler :

This compiler compiles only MSIL code of those methods that are called at Runtime.

3) NORMAL JIT compiler:

This compiler compiles only MSIL code of those methods that are called at Runtime and that converted (native) code is stored in Cache.This happens beccause,when these methods called again it will retrieve code from cache itself without sending request to CLR.Thus,inturn saves much of Executiom time

Friday, February 1, 2008

A Little biography of James Gosling - The Creator of java Language

Something about James goslings - The Creator of Java








In the early 1990s, James Gosling understood the need for a universal computer programming Language: A vocabulary and set of grammatical rules to instruct a computer to perform specific tasks.')">language , a language that would allow for communication between all sorts of machines. He mustered his talents and went to work, emerging with Oak, the precursor to Java.

Years later, Java, the first general purpose programming language, was born. Java’s success was quick and lasting, and since it has been introduced to the market, Gosling has gained enormous recognition.

One of three children, James Gosling was born in 1955, just outside of Calgary. Electronically proficient at an unusually young age, it should not be surprising that he has advanced the world of computing so profoundly. When he was 12, his parents found him constructing an electric tic-tac-toe game from spare parts taken from a telephone and television. Deciding to encourage this burgeoning interest, family friends took Gosling to the computer lab at the University of Calgary—he was 14.

A major turning point in his life, Gosling found himself participating less in his high school classes and spending more time in the computer lab at the university. After graduating from high school, Gosling began studying at the University of Calgary. While earning his Bachelor of Science degree, he developed a text editor called Emacs, which became the most widely used UNIX text editor in the world. He continued his education at the University of Alberta, achieving a Master’s degree before he moved to Pittsburgh to obtain his doctoral degree at Carnegie Mellon University.

His first job out of university was writing software at IBM. Though he remained with the company for a number of years, they never produced any of his work. So, in 1984, when Sun Microsystems Inc. offered Gosling a position, he accepted their offer. Today, almost 20 years later, he is a vice-president in the company.

Gosling admits he is the sort of person who gets terribly excited with new technology, but he also knows that success is driven by the market and its customers. He understands people will buy a product if it solves a problem and improves their life in some way. That said, Gosling takes pride in being able to deliver technology, such as Java, as it does its job without the user being aware of it.

Gosling currently lives in Redwood City, California with his wife Judy and their two daughters, Kate and Kelsey. Although he has lived in the United States for over 20 years, Gosling continues to feel Canadian and returns often to visit the rest of his family.