Using SubSonic v2.x: The first issue is the error discussed here:
Server Error in '/......' Application.
Cannot serialize member '.....' of type System.Nullable
I'm not sure where to place the code in my DAL from this post to get this working. I tried placing it in one of the partial classes I created for a table, but no go.
Another ...
I want to add the option to export to a new file format in Word 2007. Ideally it would be nice if the option could be another file format in the Word 2007 Save As dialog that the user could select in the file format dropdown box.
Although I have a lot of .NET experience I haven't done much development for MS Office. At a high level what...
Dear all,
I have written a simple hello world .net web service which will accept 2 parameters and return the parameters as a string.
The web service is hosted by IIS on a windows xp pc.
I am able to access the web service using safari on the iphone simulator, successfully tested the operation using HTTP POST by clicking the "invoke" bu...
Thanks to the awesome people that answered my previous post, I was able to make a .NET Class Library and run the library from a button on my webpage.
The program is designed to run on the server constantly. It checks the database to see if there are any pending actions, then sleeps for 10 minutes. When I click the button on my webpage t...
Hi,
I'm submitting a command to a ssh session and getting an XML response back which is variable depending on the type of query I'm running. I get the following type of XML returned...
<CLIOutput>
<Results>
<ReturnCode>0</ReturnCode>
<EventCode>23000</EventCode>
<EventSummary>CLI command completed successfully.</EventSumm...
This is one of those things that is so simple that no one ever just comes out and says it in any of the tutorials I've read.
I've been creating a few stand alone .NET applications as well as a few DLL based plug-ins for other programs. I've noticed that a project in Visual Studio, at least with Windows applications and class libraries,...
Microsoft reports that Enumeration member values are treated as numbers in JSON.
We're building the WebMethod output into a table by hand, so converting the member number into it's name on the client is possible, but it smells and would be less robust than converting it on the server, using Enum.GetName. For example, if we add or change...
Hi,
I am helping out a local school out with some projects involving .Net and S3.
Of which I am new to both. We want to upload a file via a flash upload form then via .Net to store it on Amazon S3. I have downloaded and gone through the examples but have got myself stuck at this point.
public string postFile(HttpPostedFile file)
{
...
I'm working on a side project for HAM Radio examination where the user enters text and Morse Code is played back utilizing .NET's Console.Beep().
I'm looking for possible solutions to export this as a recording (audio file) for later playback using standard audio players (Media Player, etc.). Any recommendations on existing code or fre...
I have an ASP.NET web application developed in Visual Studio 2008, composed of 3 different projects (one for UI, one of BO and the third for DAL).
How can I generate a single assembly file which holds all 3? Now it's generating 3 DLLS each for each project in the solution.
...
Hello everyone,
I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5. I have defined a custom list manully on a SharePoint site (all column types of the custom list are SharePoint built-in types), and I want to define ...
I just converted my .net 2.0 application to a .net 3.5 application
there was an error converting the website project
so i recreated the website project
added the website files again (which converted successfully) and got added to the project
No build errors
but on runtime I get this error:
Server Error in '/' Application.
P...
Dear sirs and ladies.
First, a little introduction.
I have to functions:
static class C
{
static void F1(Type type)
{
// Do something to invoke F2<T>
}
static void F2<T>()
{
// bla bla bla
}
}
I wish to invoke F1(Type), which in turn should transition to the generic context pertinent to the given type parameter a...
Say I have a method Foo() and I want to measure the time in milliseconds it took to execute which type of Windows Performance Counter should I be using?
var stopwatch = new Stopwatch();
stopwatch.Start();
Foo();
stopwatch.Stop();
counter.RawValue = stopwatch.TotalMilliseonds;
Currently I'm using NumberOfItems64 but that persists the l...
How can i make asp.net control cross browser compatible?
it is compatible with IE only.
Let me know the best steps to do this.
...
A WPF application should be a visualizer front-end for a ERP database (in fact only small part of it). They are connected trough web services.
What are main rules for designing a data model class structure for mapping database tables? For example, should it be a one big flat class with lots of members, or lots of classes representing di...
For some reason, my call to IEnumerable.Where() using String.StartsWith() appears to be giving different results depending on whether it's being used in LINQ-to-SQL or standard LINQ (-to-objects). If I add in a call to ToList() on what's otherwise the same call, I get different results back:
var withToList = MyDataContext.MyEntities.ToL...
I'm deploying a .NET applications to another machine.
in console application, the value of
DateTime.Today.ToLongDateString();
is
10 December 2009
while in web application the value is
23 ذو الحجة 1430 < equivalent in higri calendar
How does the web application get the culture from, and why is it different than the console a...
Hi guys,
I have an application (.net 3.5 app) that depends on odp.net (11g). I had installed the odp.net on the production machine, i deployed my binaries. The program works fine, however it displays an error like this:
This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix the pro...
Hi,
I need to compile code conditionally by the CLR version.
e.g there's a code that I need to compile only in CLR 2 (.NET 3.5 VS2008) and not in CLR 4 (.NET 4 VS2010)
Is there a precompiler directive for the current CLR version that I can use inside an #if clause?
Thanks.
...