Whenever I add the Jabber-net RosterTree control to my form, I can see that the PresenceManager and RosterManager property values for it have this error listed:
Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.ComponentModel.Component'.
I can compile the solution and all but this error ...
I have a page that has 3 variables. They look like this:
String[] Headers = new String[] { "Max Width", "Max Length", "Max Height" };
String currentHeader = (String)HttpContext.Current.Request.QueryString["ItemHas"] ?? "";
String checkString = (String)HttpContext.Current.Request.QueryString["ItemIn"] ?? "";
The checkString is a list ...
I have a WCF web service, and I want to use Basic authentication. I am getting lost in the authentication options:
In IIS 6 Manager, I can go in to the properties of the web site and set authentication options.
In the web site's web.config file, under system.web, there is an <authentication mode="Windows"/> tag
In the web site's web.co...
I need to read webpage and store its content in string for further processing.
Sounds simply but I have problem with cookies support.
Opened page says I need browser supporting cookies (or turned on).
I've made method trying do that via httpWebRequest - which normally works to me but I've come to a standstill with those unfortunate cook...
I have an automatic property
public int GearCount { get; set; }
when i try to initialize it like this-
Tandem t = new Tandem(GearCount = 5);
It gives an error as below
The name 'GearCount' does not exist in the current context
Whats wrong here ?
Also if i do normal intantiation it works fine.
Tandem t = new Tandem();
...
I'm about to write a Wrapper for a COM interop IStream so that code that expects a standard .NET Stream can use it.
However it occurs to me that this sort of thing may already have been done before (although I haven't been able to find it myself with web searching).
So I'm just putting this out here in case I'm about to re-invent the w...
I am writing a small application that does a lot of feed processing. I want to use LINQ EF for this as speed is not an issue, it is a single user app and, in the end, will only be used once a month.
My questions revolves around the best way to do bulk inserts using LINQ EF.
After parsing the incoming data stream I end up with a List o...
I have an entity model that has audit information on every table (50+ tables)
CreateDate
CreateUser
UpdateDate
UpdateUser
Currently we are programatically updating audit information.
Ex:
if(changed){
entity.UpdatedOn = DateTime.Now;
entity.UpdatedBy = Environment.UserName;
context.SaveChanges();
...
I have a ListView with a GridView that's bound to the properties of a class that implements INotifyPropertyChanged, like this:
<ListView Name="SubscriptionView" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" ItemsSource="{Binding Path=Subscriptions}">
<ListView.View>
<GridView>
<GridViewColumn Width="24" CellTe...
1- Resource files suppose to be added on adding some resource in application like image or audio or video etc. But if I just change size of form a .resx file incleded under that particular form. Changing size of form does not add any resource so why this .resx file?
2- I dropped a button on form and a resource file is included; again th...
I am trying to run this code:
ItemTaxonomy iTaxonomy = from itemTaxonomy in connection.ItemTaxonomy
where itemTaxonomy.Item.ID == itemView.ID
orderby itemTaxonomy.Taxonomy.Name
select itemTaxonomy;
When I compiled it I get the error:
Cannot implicitly conve...
Solution
I had also moved ashx and asmx files at the same time as this. The Class attribute of the WebService/WebHandler directives were pointed at the wrong namespace. The moral of the story is to make sure you view the markup for all as*x files you change the namespace for by right-clicking on them and choosing "View Markup".
I'm e...
.NET 4 introduced Code Contracts as a new feature. I'd like to use CC, but provide files that can still run in 3.5 SP1. Is that possible? Can I only use parts of the new functionality? Apparently it is possible to have CC only do static checks without being included in the binary files, is that correct?
I'm aware CC was available for 3....
Hello All...
I have created Web Service using Asp.net 3.5. Now it's working perfectly in live windows server, and giving me perfect xml while invoking it using some url like :
http://www.somedomain.com/Service.asmx?op=fetchData
Now My question is when I am accessing url like :
http://www.somedomain.com/Service.asmx
it's listing my c...
Hello,
I currently develop an application in C# with framework .NET 3.5 SP1.
In my app, I have satellite assemblies which are not in the same folder as the exe, and that causes me some trouble with FullTrust, as explained here.
In order to solve that problem, I wish to use .NET 4.0 whose Code Access Security Policy should allow my sa...
I have pretty much the same problem as this question http://stackoverflow.com/questions/970741
but in windows forms, can anyone help me solve it?
this is my code, so you don't have to check the other question:
public class Material
{
public virtual int id { get; private set; }
public virtual string nombre { get; set; }
publi...
I have created a test Winforms application in Visual Studio 2008 (SP1) to see just how "RAD" C# and .NET 3.5 can be. So far I have mixed emotions.
Added a service-based database to my application
(MyDB.mdf) and added two tables -
Contact (id [identity], name [varchar] and number [varchar] columns) and Group (id [identity] and name [var...
My application needs control displaying bitmaps (jpg) but also zooming and panning them (so if you press mouse button you can 'move' zoomed picture inside frame)
What I did was placing panel at the Form, then pictureBox inside panel (anchored Top,Left).
So if I need zoom it I'm just executing below code from Zoom buttons events:
pr...
I am BATTLING to get the selected values (please note VALUES not TEXT) from a Winforms Listbox that has multi-select enabled and has been bound to a database table getting the Name (as DisplayMember) and ID (as ValueMember) - I need the ID of the selected items.
The listbox control has properties for SelectedValue to get one of the sele...
I have a .Net 3.5 application that needs to load a string from settings.settings or app.config. I made sure I have a reference to ConfigurationManager but a very simple call from form load value returns null.
Here is the code:
void LoadSettings()
{
// I expect to get from my app.config or settings.settings
// Settings file s...