Question:
Has anyone used NUnitLite with any success? | I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is *ok*, but debugging the tests is a nightmare and the test runner is *so* slow.

I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's also in the roadmap for NUnit 3.0, but who knows when that will come out. Has anyone had any success with it?


Question:
Can a Windows dll retrieve its own filename? | A Windows process created from an exe file has access to the command string which invoked it, including its file's path and filename. eg. `C:\MyApp\MyApp.exe --help`.

But this is not so for a dll invoked via `LoadLibrary`. Does anyone know of a way for a function loaded via dll to find out what its path and filename is?

Specifically I'm interested in a Delphi solution, but I suspect that the answer would be pretty much the same for any language.


Question:
Runtime Configuration in .Net (specifically the EntLib) | I'm looking for a way to configure a DB connection at runtime; specifically using the Enterprise Library. I see that there's a \*.Data.Configuration (or something close to this ... don't recall off the top of my head) assembly but am finding not much on the interwebs. Complicating matters is the fact that the API help is broken on Vista.

Now, I found this work-around:

```
Configuration cfg = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
ConnectionStringSettings connection = new ConnectionStringSettings();
connection.Name = "Runtime Connection";
connection.ProviderName = "System.Data.OleDb";
connection.ConnectionString = "myconstring";
cfg.ConnectionStrings.ConnectionStrings.Add(connection);
cfg.Save(ConfigurationSaveMode.Modified);

ConfigurationManager.RefreshSection("connectionStrings");
var runtimeCon = DatabaseFactory.CreateDatabase("Runtime Connection");

```

And although it gives me what I want, it permanently edits the App.config. Sure I can go back and delete the changes, but I'd rather not go through this hassle.


Question:
SQL Server 2005 For XML Explicit - Need help formatting | I have a table with a structure like the following:

---

| LocationID | AccountNumber |
| --- | --- |
| long-guid-here | 12345 |
| long-guid-here | 54321 |

To pass into another stored procedure, I need the XML to look like this:

```
<root>
    <clientID>12345</clientID>
    <clientID>54321</clientID>
</root>

```

The best I've been able to do so far was getting it like this:

```
<root clientID="10705"/>

```

I'm using this SQL statement:

```
SELECT
    1 as tag,
    null as parent,
    AccountNumber as 'root!1!clientID'
FROM
    Location.LocationMDAccount
WHERE
    locationid = 'long-guid-here'
FOR XML EXPLICIT

```

So far, I've looked at the documentation on [the MSDN page](http://msdn.microsoft.com/en-us/library/ms345137.aspx), but I've not come out with the desired results.

---

@KG,

Yours gave me this output actually:

```
<root>
  <Location.LocationMDAccount>
    <clientId>10705</clientId>
  </Location.LocationMDAccount>
</root>

```

I'm going to stick with the `FOR XML EXPLICIT` from Chris Leon for now.


Question:
Upgrade to ASP.NET 3.x | I am currently aware that ASP.NET 2.0 is out and about and that there are 3.x versions of the .Net Framework.

Is it possible to upgrade my ASP.NET web server to version 3.x of the .Net Framework?

---

I have tried this, however, when selecting which version of the .Net framwork to use in IIS (the ASP.NET Tab), only version 1.1 and 2.0 show.

Is there a work around?


Question:
Locking a SQL Server Database with PHP | I'm wanting extra security for a particular point in my web app. So I want to lock the database (SQL Server 2005). Any suggestions or is this even necessary with SQL Server?

**Edit on question:**

The query is failing silently with no errors messages logged, and does not occur inside of a transaction.

**Final Solution:**

I never was able to solve the problem, however what I wound up doing was switching to MySQL and using a transactional level query here. This was not the main or even a primary reason to switch. I had been having problems with SQL Server and it allowed me to have our CMS and various other tools all running on the same database. Previous we had a SQL Server and a MySQL database running to run our site. The port was a bit on the time consuming however in the long run I feel it will work much better for the site and the business.


Question: Better windows command line shells | Is there a better windows command line shell other than `cmd` which has better copy paste between Windows' windows and console windows?


Question:
Minimize javascript HTTP calls from AjaxControlToolkit controls? | I love the ease that the ASP.NET Ajax control Toolkit provides to ASP.NET developers. However, I've not found it to be a scalable solution at all. I have a page with 2 date input fields. By putting a TextBox and an CalendarExtendar control attached to it for each date field, I get several (11, in fact) external Javascript calls to /ScriptResource.axd?d=xxxx

Is there any way to control this? Why does it suck so much? What's a better Ajax toolkit for .NET that can provide equal (or better) set of functionality that is more scalable, straight forward and completely customizable? NOT looking to reinvent the wheel here.


Question:
Best Practice: Collaborative Environment, Bin Directory, SVN | What are the best practices for checking in BIN directories in a collaborative development environment using SVN? Should project level references be excluded from checkin? Is it easier to just add all bin directories?

I develop a lot of DotNetNuke sites and it seems that in a multi-developer environment, it's always a huge task to get the environment setup correctly.

The ultimate goal (of course) is to have a new developer checkout the trunk from SVN, restore the DNN database and have it all just 'work'...


Question:
ASP.NET URL Rewriting | How do I rewrite a URL in ASP.NET?

I would like users to be able to go to

```
http://www.website.com/users/smith

```

instead of

```
http://www.website.com/?user=smith

```


Question:
How to schedule a batch process in asp.net | I want to run a weekly batch process in an asp.net page. How can that be done?

Thanks