Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prod Server gives a new error on a Public member.

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I have a data grid that creates a checkbox ONLY for specific records. (ex.
Code:
<ItemTemplate>
 <asp:CheckBox id=&quot;cbSpray&quot; runat=&quot;server&quot; Visible='<%# isSpray(container.DataItem (&quot;spPrice&quot;)) %>'>
 </asp:CheckBox>
</ItemTemplate>

This works fine on my test server (WinXP) but on my productioin server I get this message:
System.MissingMemberException: Public member 'isSpray' on type 'weddings' not found.


Why do I get this?

Here is the code for isSpray:
Code:
 Public Overloads Function isSpray(ByVal spPrice As DBNull) As Boolean
  Return False
 End Function

 Public Overloads Function isSpray(ByVal spPrice As String) As Boolean
  If spPrice = &quot;&quot; Then
   Return False
  Else
   Return True
  End If
 End Function
 
Possibly not an up to date .dll on the production box?
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Well, I copy the current copy of the .Dll over to the server before I try. I copy it from the Bin folder on my test system to the bin folder of the app on the server. That's what confuses me...
 
I suppose you've restarted IIS on the production box, just to make sure the application restarts?

If that doesn't work, then I'd try restarting the whole machine...

Sounds like something just isn't getting updated and restarted properly. Just start kicking things off one by one manually till it works.

I mean, if the method is there, then surely it's just a glitch that a good ole reboot will fix.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Tried restarting. Since this is Beta, and the live site is running fine, I may hold off on restarting the Server. BTW, How am I supposed to read this:

System.MissingMemberException: Public member 'isSpray' on type 'weddings' not found. at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) at ASP.weddings_aspx.__DataBind__control31(Object sender, EventArgs e) in C:\Inetpub\secure\weddings.aspx:line 101 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at secure.weddings.bindSizes(String flmType) in C:\Inetpub\ 348
 
That's your stack trace that lets you &quot;unwind&quot; the events that led up to the error.

All the classes, methods, properties, datatypes, line numbers, etc... etc... that led up to it.

Read it top down (just like anything else) to see what was going on, what calls were made, and what classes were involved in the crash.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
So it's still saying can't find the Public Member... is it because of the way I've declared it? (Note my first post.) I have rebooted the server, verified that this is the latest copy of the .dll, I don't know what else to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top