Problem to error

Hi,
Due to problem below
22m.png
how to identify reason of it, to this?
http://my-friend.co/HouseList4/Default.aspx?userid=mc1
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical Specialist/DeveloperCommented:
Can you post content of Default.aspx?
0
Sam Simon NasserIT Support ProfessionalCommented:
enable see detailed error
On IIS 6

<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

Open in new window

On IIS 7

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

Open in new window


this will help you figure out where is your problem.
0
HuaMin ChenProblem resolverAuthor Commented:
Thanks to all.

Shaun,
I currently added one more column to GetHouseList and then problem appeared. Last line below is the added column.

                                        ...
                                        .Select(dataRow => new HouseData
                                        {
                                            serial_id = dataRow.Field<int>("serial_id"),
                                            ...

Open in new window


Sam,
I am already with your mentioned codes in Web.config file.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
how you call the url of /HouseList4/Default.aspx/GetHouseList? is this a valid URL?

try use and catch the InnerException in your method to see if you can find more details there...

https://www.c-sharpcorner.com/uploadfile/puranindia/innerexception-in-C-Sharp/
0
HuaMin ChenProblem resolverAuthor Commented:
Here is StackTrace I get to error (within event). What to adjust?

at System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
   at Own_rec._Default.<GetHouseList>b__1(DataRow dataRow)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext
0
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
first, make sure your class: HouseData got declared with a property of serial_id ?

second, what if try something like this?

serial_id = Convert.ToInt32(dataRow.Field["serial_id"].ToString());

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HuaMin ChenProblem resolverAuthor Commented:
Sorry, here is relevant column

ROW_NUMBER() OVER (ORDER BY house_id ASC) serial_id

Open in new window


and it should be fine to this line below. Right?
                                                serial_id = dataRow.Field<int>("serial_id"),
                                                ...

Open in new window

0
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
is your method of "GetHouseList" connected to the right data source?

make sure it got selected the new field: serial_id ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.