I am new to this service and would like to know if it is appropriate to post an open job requirement on this discussion board? I have an immediate need for a Senior .Net Architect with experience developing in C# for the Compact Framework. The position is located in Orlando, FL. I can receive resumes at: firstname.lastname@example.org. If this type of posting is not welcomed then just let me know and it will not be repeated. Thanks in advance.
The problem I have seems simple at first:
I have a bunch of data (strings, int etc.) and a XSD file. I need to create an Xml compliant with the XSD and having the data inside.
(The whole thing is command basically parsing and creating custom Xmls based on the command type and parameters.)
"Simple" ends here.
I am currently creating a Web application that uses a master page, a .aspx page and then a couple of user controls. Depending on the choice the user selects, I load the selected control into a placeholder. Everything works when I debug but when the application goes live I get the following error at runtime when trying to load the controls:
System.InvalidCastException: Unable to cast object of type 'ASP.customer_details_ascx' to type 'Details'.
This is what the code looks like, and the error is thrown on this line: Details ctrl1 = (Details)LoadControl( "~/Customer/Details.ascx" );
I have changed the "batch=false" in the web.config, and have changed all the <%@ Reference %> directives to <%@ Register %> directives in the Main .aspx page. But none of this seems to fix the problem. Please help with any suggestions, I have searched the web for hopeful answers to the problem but they did not work (they were the <%@ Register %> and "batch=false"). It seems to be a problem that many people are facing.
- A remoting object
- A server that instanciates the remote object and registrates it in a
- A client that retrieves the object from the channel and executes methods.
When that happens, the results affects the server application.
Well, my scenario is a bit different.
I have a server that is a windows service and receives some messages that
inserts in a database.
I want to add a interface monitoring that messages, so I write another
application and I want to use remoting to communicate with the server.
Then I added a message class, that is remotable. I use that class in my
server, and I registrate that object in a channel.
The client should retrieve the object and show the messages in a control,
but when I get the object from the channel it is empty.
The difference is that in the example scenario, the client executes methods
that affect the server, but I need the opposite.
My only idea is moving the message class to my actual client, but then the
service won't work if the client isn't open.
Do you understand the problem? Any solution please?
i am currently using c# window application on visual studio .net 2005
for those remoting pro out there should know what singleton at server is used for in the remoting
i am currently trying to instead let the client initialise the creation of the remotable class
but instead, create the remotable class once the server start up and inherite it to my window application form so that i can use the values within it.
i am not sure if this method will work so please advice me or give me tips about this way.
also does anyone know how i can create the remotable class once the server start up and inherite it to my window application form so that i can use the values within it.
i cant find any sample codes that does something like that
is this extention to dot net framework necessary to use WPF , I am interest in this technology but i cant use it i have installed .net framework 3.0 but it does not appear when i make new project using visaul stodio can you help me ...\
I use VB.NET 2003 on Windows XP pro and .NET framework 1.1 SP1. VS2005 and .NET 2.0 are also installed.
I am using a combobox on a tabcontrol. When I select a value at runtime directly in the dropdown list of the combobox, it works normally. But it abnormally fires events (SelectionChangeCommitted, SelectedIndexChanged, SelectedValueChanged) when I use the scrollbar of the combobox : events get fired even if I have not selected anything, just after releasing the mouse button above the scrollbar. Then, the application runs into the dispose method of the form and complains about an unexisting instance addressed by reference, and exits on this bug. I observe this behaviour whether I bind it at runtime or I fill its rows at design time. I have tried to solve it and to work around this behaviour without success. Is this a known bug ? I have not found any report on such behaviour in .NET 1.1.
I would greatly appreciate help and explaination ! Thank you.
This property looks to be available for web applications with ASP.NET. I am working on a desktop application written in VB.NET 2003 and no such property exists for combobox.
Furthermore, the problem I describe is really weird and inconsistant : events like SelectionChangedEvent get fired despite the fact that I do not select anything. I just release the mouse button above the combobox scrollbar, which should not fire such event as no selection was already made. I suspect something got wrong on my machine and I need to reinstall VS and .NET. I hope not. Has anyone a suggestion ?
Yes, this is a peculiar problem which I've faced too. The event seems to fire when the control is initialized. I haven't really dug too deep into this, but one way to workaround this is to check for the SelectedIndex property. It's usually -1 or 0 when the event fires unwanted. Put your whole logic inside a if condition that checks for SelectedIndex > 0.
Dim DV As DataView<br />
Dim DVRow As DataRowView<br />
DV = ADO_BDGlobale.Tables(NOM_TBL_Enseigne).DefaultView<br />
DVRow = DV.AddNew<br />
DVRow("Libelle_Long") = " Toutes les enseignes"<br />
DVRow("Cod_Enseigne") = 0<br />
DV.Sort = "Cod_Enseigne"<br />
Me.ComboBox_PanelPV_Enseigne.DisplayMember = "Libelle_Long"<br />
Me.ComboBox_PanelPV_Enseigne.ValueMember = "Cod_Enseigne"<br />
Me.ComboBox_PanelPV_Enseigne.DataSource = DV<br />
1) The bug described before occurs (abnormal events during interaction with scrollbar)
2) The combobox item list does not get sorted first . After a few selections without the scrollbar, the combobox item list finally gets sorted ( !!!).
I've been looking at the configuration class and the connectionsettings property and have noticed that when I look at the zeroth element in the collection and then do a .name on it I get back something like "LocalSqlServer". I then get "data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" as the connection string value.
Is this some sort of default given automatically as part of this property or is it getting something from off my development machine?
VS.NET installation also installs the Express edition of SQL Server. If this is not true in your case, it's probably the ASP.NET User and Role management DB, guessing by the DB Name. You'll find the mdf in your App_Code directory.
Here's a new wrinkle... I put the code on a non dev machine and get the same results. Does anyone have any explaination to this behavior, because the only conclusion I can come to is that it's some kind of default?