Questions tagged by ".net"


$0
 bounty
1
answers
.NET - compile all DLL dependencies into one standalone portable EXE file for console or a desktop project in Visual Studio
5 years ago • lampego1@qrid
I have a small console project in Visual Studio 2010 and I want to build and publish console application as a standalone EXE file or package with a small number of files to be copy-paste deployed if possible. There is of course an .EXE file with a bunch of .DLL files in ProjDir/bin/Release but this folder contains multiple files(DLLs, config file, resource etc.), and I would prefer to have just one .EXE file if possible. If anyone knows a goo ...
$0
 bounty
0
answers
Owin. How can I get current App context?
5 years ago • lampego1@qrid
Hello :) For example. Startup project: I configure and create Owin App. Core project: This project is core. In this project, all the magic happens. But! I want to configure DB connection for Core project in Startup project and have these settings in classes of a Core project project. I believe that it should be done like this: class Strartup { public void Configuration(IAppBuilder app) { app.Properties.Add("ConnectionStri ...
$0
 bounty
1
answers
.Net - Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
5 years ago • lampego1@qrid
I am creating an object in C#, populating it with some data and then trying to save it into SQL Server table: User someUser = new User() { UserName = "TestUser", CreateDate = DateTime.MinValue }; I am getting the following error from MS SQL Server: > Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM Please help! Thanks!
1 - 3 of 3 items