I have downloaded and setup umbraco on IIS 7.5. I got a 404 page error when I tried running umbraco with Visual Web Developer 2008 Express Edition.
Here is the error:
Server Error in '/umbraco4' Application.
HTTP Error 404 - Not Found.
Version Information: ASP.NET Development Server 9.0.0.0
umbraco4 is the webroot directory where I ...
How do I instruct Nant to tell MySql to run ddl scripts from a particular location and then run other scripts as instructed?
Google let me to many sites which unfortunately do not work...
...
Hello,
I wrote a c# code that creates new local user
DirectoryEntry localMachine = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");
DirectoryEntry group = localMachine.Children.Find("administrators", "group");
DirectoryEntry user = localMachine.Children.Find(accountName, "user");
Console.WriteLine(user.Properties...
How can I catch an arbitrary string between defined words using regular expressions in .Net, e.g. @”…DEFINED_WORD1 some_arbitrary_string DEFINED_WORD2…”? Unfortunately my experiments with “(?=)” and other patterns are unsuccessful :(
...
What exactly happens when i perform casting on reference types and values types and vice versa (boxing and un boxing) at the compiler or runtime level?
Can any body explain for the below four conditions ?Please feel free to add conditions ,if i miss any.
1. Stream stream = new MemoryStream();
MemoryStream memoryStream = ...
Hi,
Using extension methods for C#, how can include an AddNode method (see below) in the ExtensionMethods class for reuse, as opposed to having to put it in the implementation class itself (where I couldn't reuse it). The AddNode extension method needs to be able to access the List parameter in the implementation.
I've tried the bel...
I am new to resources.resx and related concept. I need some tutorial to use resource and localization for windows forms.
...
I’m implementing a simple HttpModule, where I want some code to run when the web application is started. But I’m surprised to find that the Application_Start event I would normally use from Global.asax is not available from a HttpModule. Is that correct, or am I missing something here?
How do I hook into the Application_Start event from...
public class Program
{
delegate void Srini(string param);
static void Main(string[] args)
{
Srini sr = new Srini(PrintHello1);
sr += new Srini(PrintHello2); //case 2:
sr += new Srini(delegate(string o) { Console.WriteLine(o); });
sr += new Srini(deleg...
I am just wondering if these code blocks gets compiled into .dll
I don't think this one gets compiled at all
#if SOMETHING_UNDEFINED
// some code - this is ignored by the compiler
#endif
Now what about these?
1.
if(false) {
// some code - is this compiled?
}
2.
const bool F = false;
if(F) {
// some code - is this compiled?
}...
When using regasm and caspol to register and grant trust to assemblies, will it matter under which user account these utilties are executed?
Could there arise a situation where assemblies are registered and/or granted trust only for certain users on a machine or domain?
...
I have created a simple c# Winforms program that uses SQL Server and several DLLs. What steps should I do in order to get the program run on another computer?
I.e. should I transfer the exe file + the dlls I used?
Should I also install .net framework 3.5 on the other pc?
I used visual studio 2008 to compile.
...
Hello everyone,
I am using SQL Server 2008 Enterprise with VSTS 2008, and I am developing a simple web application using ASP.Net and Forms Authentication.
When I am using the configuration tool/menu of VSTS of my ASP.Net project (I want to use this tool to manually add some Forms authentication users), I met with the following error (S...
What should I call a variable instantiated with some type of array?
Is it okay to simply use a pluralised form of the type being held?
IList<Person> people = new List<Person>();
or should I append something like 'List' to the name?
IList<Person> personList = new List<Person>();
Also, is it generally acceptable to have loops like thi...
Hello,
We have an .NET client app working against SQL Server 2005 (clustered), do I need to do something special in the client app to make it cluster aware?
Thanks.
...
I'm trying to run Microsoft's .NET Framework Configuration Tool (Mscorcfg.msc). I have Visual Studio 2008 installed. I also have the following installed on my PC:
Microsoft .Net Framework v1.0.3705
Microsoft .Net Framework 2.0 Service Pack 2
Microsoft .Net Framework 3.0 Service Pack 2
Microsoft .Net Framework 3.5 SP1
Microsoft .Net Fra...
i have one id and more filepaths.forexample:
id:123456
FilePath:
C:/a.jpg
C:/b.jpg
C:/c.jpg
C:/d.jpg
C:/e.jpg
Result must be:
123456|C:/a.jpg
123456|C:/b.jpg
123456|C:/c.jpg
123456|C:/d.jpg
123456|C:/e.jpg
How can i add more than one path for one id
But My result is :
123456|C:/e.jpg
i need others
public bool AddDCMPath2(...
Is there any 'slimmer' alternative to the System.Web.HttpUtility.HtmlEncode/.Decode functions in .net 3.5 (sp1)? A separate library is fine.. or even 'wanted', at least something that does not pull in a 'whole new world' of dependencies that System.Web requires.
I only want to convert a normal string into its xml/xhtml compliant equival...
Hi, I have a 3rd party non-signed assembly that I want to reference in several projects.
So I created a snippet to add the reference and the relative imports
I tried the following, and several variations with full paths, without file:// etc, to no avail.
Any ideas?
...
<Snippet>
<References>
<Reference>
<Assembl...
I'm often frustrated by the System.Diagnostics.Debug.Write/WriteLine methods. I would like to use the Write/WriteLine methods familiar from the TextWriter class, so I often write
Debug.WriteLine("# entries {0} for connection {1}", countOfEntries, connection);
which causes a compiler error. I end up writing
Debug.WriteLine(string.For...