"Unable to cast object of type 'System.String' to type 'System.String[]'."

hi

i'm using the following statement in my application

string[] strTArray = new string[5]; 

strTArray = (string[])(Session["TextDataArray"]);

when i run the application its giving the below error

{"Unable to cast object of type 'System.String' to type 'System.String[]'."}

can anyone say how to solve this

thanks in advance

Archu

0
archu136
10/5/2007 5:24:49 AM
asp.net.futures 1064 articles. 0 followers. Follow

1 Replies
1189 Views

Similar Articles

[PageSpeed] 57
Get it on Google Play
Get it on Apple App Store

What are you storing in the TextDataArray session? What is the data type you are storing?

 

Regards


Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
0
haidar_bilal
10/5/2007 5:47:39 AM
Reply:

Web resources about - "Unable to cast object of type 'System.String' to type 'System.String[]'." - asp.net.futures

Resources last updated: 12/15/2015 10:23:17 AM