I'm getting an error when trying to activate a webpart. It activates fine in one setup , but fails in a different one. Administrator in both. Seems like it fails because it's not able to create the list. The error is: Message: Value cannot be null. Stack Trace: at Microsoft.Sharepoint.SPRoleAssignment..ctor
at ClientRequestHandler.C...
I have 2 projects that share some appSettinsg and config sections. Let's say :
ProjectA has it's own app.config that contains its unique settings/config sections.
ProjectB ditto...
Now in each app.config I want to point to a third shared .config file that contains some common appSettings AND config sections, used by both ProjectA and...
Why when I only do SELECT on a .sdf file, it's checksum changes ?
How can I avoid that ?
...
I would like to change the presentation of hyperlinks to related tables in the List.aspx view to show the display name of the associated table, not the raw association property name.
E.g. I have the following entity associated with Products, but despite the DisplayName attribute, when I view Products in the standard List.aspx page tem...
Many MVC frameworks (e.g. PHP's Zend Framework) have a way of providing basic state management through URLs. The basic principle is this:
Any parameters that were not explicitly modified or un-set get copied into every URL
For instance, consider a listing with pagination. You'll have the order, direction and page number passed as URL p...
For me it a little bit hard and frustrating to understand how app.config, web.config files work on deep level.
Is it any document which can describe format, internal implementation and parsing of .config file.
...
I'm trying to connect to an oracle database with .net but i get the error:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
however, when I enter add a new database connection through tools>connect to database. it works fine. even after copying the connection string which is:...
How would you design an application (classes, interfaces in class library) in .NET when we have a fixed database design on our side and we need to support imports of data from third party data sources, which will most likely be in XML?
For instance, let us say we have a Products table in our DB which has columns
Id
Title
Description
Tax...
Is there any way to enable debugging from within the Windows Forms Designer in Visual Studio (any version, up to and including 2010)?
What I mean is, say I have some custom user control, and this control has certain validation that it performs when I set a particular property. I'd like to be able to set a breakpoint somewhere within tha...
I have a msbuild file that I'm trying to run from Hudson CI. It outputs like this
"C:\Program Files\Gubka Bob\PartCover
.NET 2\PartCover.exe" --target
"C:\Program Files\Microsoft Visual
Studio 9.0\Common7\IDE\MSTest.exe"
--target-args "/noisolation" "/testcontainer:C:\CI\Hudson\jobs\Video
Raffle\workspace\Source\VideoRaffl...
With the addition of the Tuple class in .net 4, I have been trying to decide if using them in my design is a bad choice or not. The way I see it, a Tuple can be a shortcut to writing a result class (I am sure there are other uses too).
So this:
public class ResultType
{
public string StringValue { get; set; }
public int IntV...
I have a complex page with several forms on it. The page is divided into sections, and each section has a continue button on it.
The page is bound to a pageViewModel, each section addresses a different set of properties on the model.
The continue button makes an ajax call to the controller, and the model binder binds it appropriatel...
I have a WCF service deployed in a server machine. We are using claims based authentication to authenticate the WCF service caller. The WCF service is restricted by using IIS Authorization rules.
How do I programmatically invoke the WCF service using .NET? The client app uses a proxy generated using SVCUtil. calling the service reads ...
Hey guys,
Perhaps I'm missing something real simple here, but I've been struggling to change the RTF property of my RichTextBox in order to apply some color coding to my text. Probably the most straight-forward example of the problem I'm having is setting the Rtf property to include a color table in its header.
The default RTF string r...
Hi,
I have a simple web service running and I have a console application client consuming the service. I did have issues getting this running and I had been helped by some wonderful people in this community.
I have another problem: if I want to call the service from the client in a loop, it doesn't work. It works only for the first tim...
Im trying to build an Item Template for my list-view and im bound to a list of Entities. The entity I have has a System.Drawing.Image that I'd like to display, but so far I cannot for the life of me figure out how to bind it to the <Image> block.
Every example and documentation I can find on the internet pertains to Images accessible vi...
This might be a dupe. I did not find enough information on this.
I was discussing memory allocation for collections in .Net.
Where is the memory for elements allocated in a collection?
List<int> myList = new List<int>();
The variable myList is allocated on stack and it references the List object created on heap.
The question is wh...
I have a .NET Windows application with a CrystalReportViewer on form. I load various reports into the viewer that were created in Crystal Reports 2008. When the user is previewing a report (an invoice), as they move their mouse around over the report each field on the report is highlighted by a thin red rounded corner box as around the N...
If I have a .NET Font object, is there a way to programmatically determine which ttf file in the C:\Windows\Fonts directory it was created with?
...
I'm a bit confused as to what a viewmodel's role is beyond databinding. I have a menu built in silverlight. The menu has x number of menu items which is determined at runtime. One of the features I would like to add to this is that each menuitem has a different text colour when hovered over.
Is it the role of the view to have a colour s...