Tuesday, February 26, 2013

How to Load c# object using XML data

It is very simple to read data from XML to object and only it requires your class should be in Serialization and the properties of the class should match with XML elements.

The below code will load object from XML

Sample XML

Sample Class

Note:- don't forgot to add xml attribute for class as below

Method To Load XML to Class Object


 

string sValue contans the above said xml
After execution of the steps overview will contains the data of Naveen Kumar Meeda.

Have Smart Coding Always...






Wednesday, April 4, 2012

The URL-encoded form data is not valid

Error Message: The URL-encoded form data is not valid or Blank screen or post back will not work. The above said error may not shown on screen you can see the error message only in event vwr.

Root cause:-
This is due to number of input element submitted to web form exceeds more than 1000. The same code may work fin in iis.6.0 it will not work on iis 7.0 because iis 7.0 will accept only 1000 element per request by default to increase this we have to use the below key in web.config.


Solution: add key in web.config

Wednesday, August 31, 2011

Could not find installable ISAM

Error Message:- Could not find install able ISAM

Root cause:-
The following cases the above error will occure
1. Syntax error in connection string
2. if you are using multiple extended properties

Reproduce:- using below connection string

string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sExcelPath + ";Extended Properties=Excel 8.0; IMEX=1;";

Solution:-
string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sExcelPath + ";Extended Properties=\"Excel 8.0;IMEX=1\"";



Friday, July 22, 2011

How to List RDP sessions

The following commands will help you when you are unable to log in into remotely to any computer on windows due to the exceeded terminal users.



1. List of running sessions by typing the following;
QUERY USER /SERVER:servername

2. To Kill perticular session using session ID is below
RESET SESSION sessionID /SERVER:servername

Thursday, May 26, 2011

File Upload PostedFile is NULL

Issue:- File Upload, file is null
Descritpion:- While uploading file from asp:fileupload or html input file type, posted file is coming as null.

Causes:- Might be inside update panel.

Solution:- Remove update panel then will work as expected
or
Use asp:postbacktrigger instead of asp:asyncpostbacktrigger in update panel

Happy coding....

Friday, May 6, 2011

Profile Null for IIS7 site

Problem:- Are you getting Object Null Reference for Profile object, So you are here for correct place to look.

I Got the same error and struggled a lot to indenify and searched on over net I got the solution and here it is.

Actually I have recieved environment issue means My site stage in IIS6 and we deployed on Production IIS 7 and it starts giving error...

Solution:-
If you can add following entry under System.webServer in web.config then it solves your problem.

Friday, October 29, 2010

PUNY Code character does not support in IIS 7.0 or "Value doesn't fall with in the expected range"

Hi All,

ISSUE:- "Value does not fall with in the expected range" or "Value does not fall within the expected range"

Today I have faced interesting issue. I have migrated my web server from 2003(IIS 6.) to 2008(IIS 7.0). We have multilingual sites installed in web server with Puny code characters like e.g (xn--66qx5dh7d2q4d.com) and moved this site into 2008(IIS 7.0) and with the same bindings then the site was stopped and unable to start the site.

Solution:-

Then I have investigated why this is happening then came to know this is because of PUNY CODE characters then I converted the PUNY code characters to UTF8 and given in bindings then it started working fine
Thanks this guy to helping converting charters http://mct.verisign-grs.com/conversiontool/convertServlet

so what else you need...

Keep visiting and find the solutions

Yours
naveen M