Solved

MVC using stored procedures with the view

Posted on 2013-11-27
11
249 Views
Last Modified: 2014-05-08
I am passing an object from the controller to a view from a stored procedure.  This is the error I receive (attached). I don't know what I am doing wrong.
0
Comment
Question by:katrinyDesertrat
  • 4
  • 3
  • 2
11 Comments
 

Author Comment

by:katrinyDesertrat
ID: 39681955
I am passing an object from the controller to a view from a stored procedure.  This is the error I receive (attached). I don't know what I am doing wrong.
0
 

Author Comment

by:katrinyDesertrat
ID: 39681957
?
0
 
LVL 35

Expert Comment

by:girionis
ID: 39711238
Where is the attachment?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 31

Expert Comment

by:Marco Gasi
ID: 39711314
@katrinyDesertrat there is no attachement in your question: after you have browse for the file you have to click orange Upload button and then wait for upload finish.
If, as I think, your attachement is a screenshot, you can also use the Insert Image command in the toolbar (is the last icon at the right), browse for the image and embed it i your question.
0
 

Author Comment

by:katrinyDesertrat
ID: 39711531
Sorry.  Here is the attachment
Need-Help.docx
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 39713771
This is a class cast error. You are expecting an object of type x but you are passing an object of type y. Check that you pass the correct object.
0
 

Author Comment

by:katrinyDesertrat
ID: 40026661
I've requested that this question be deleted for the following reason:

No good answer
0
 
LVL 35

Expert Comment

by:girionis
ID: 40026662
My answer is valid, the problem is that a wrong type of object is passed.
0
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 40039616
Technically, the girionis comment ID 39713771 is correct and points should be awarded to it.

@katrinyDesertrat: if you are not satisfied with an expert comment/answer, you shouldn't shut up. On the contrary, you should ask for more comments, provide more code and interact with experts to help them to help you. We're not mind-readers: if our replies are unsatisfying, probably this is due to the fact we don't have enough information to give a better help.

As a side note, when you post code, use the code tag provided by EE, please: the image in your docx file is practically unreadable, but all details about the error iare in that image.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question