visual-studio-2008

publishing asp.net website give “Object reference not set to an instance of an object.” error

时光怂恿深爱的人放手 提交于 2019-12-21 04:22:12
问题 I am getting fed up with this error. I have search all over the web and tried every possible suggestion to this error I could find. delete app_code, build, add files back, publish. (did not work) delete temporary asp.net files (did not work) In the end I even tried the command line and get the following stacktrace. error ASPRUNTIME: Object reference not set to an instance of an object. [NullReferenceException]: Object reference not set to an instance of an object. at System.Web.Compilation

Why is [AssemblyInitialize] and [AssemblyCleanup] being called twice in same test project assembly?

喜欢而已 提交于 2019-12-21 04:10:51
问题 I thought the whole purpose of these attributes was to run them only once per assembly. I have a simple class as follows: [TestClass] public class AssemblyIntegrationTestSetup { public AssemblyIntegrationTestSetup() { } public TestContext TestContext { get; set; } [AssemblyInitialize] public static void SetupIntegrationTests(TestContext context) { WindowsServiceService.Instance.StartService("Distributed Transaction Coordinator"); } [AssemblyCleanup] public static void TeardownIntegrationTests

IE8 and VS2008: How do I disable script debugging?

偶尔善良 提交于 2019-12-21 04:10:45
问题 IE8 is out and apparently it automatically turns on script (JavaScript) debugging whenever you launch your project in debugging mode. Does anyone know how to turn this ofF? I scoured the IE8/VS2008 settings but didn't see anything. Edit: You can't just go into Internet Options and disable debugging: http://blogs.msdn.com/webdevtools/archive/2008/03/05/jscript-debugging-made-easy-with-ie8.aspx This is so you can leave debugging off for regular web browsing, but have it automatically come on

Dataset Designer Issue - Visual Studio 2008

佐手、 提交于 2019-12-21 04:10:15
问题 We're using a dataset to throw a small amount of data around amongst various nodes within our application. The dataset is in an assembly by itself as it is reference from many other components. The Visual Studio dataset tool has developed a strange habit of creating a new designer everytime a build is done. So, the project looks like this MyDataSet.xsd - MyDataSet.cs - MyDataset.designer.cs - .... Then a build is performed and the result is MyDataSet.xsd - MyDataSet.cs - MyDataset.designer.cs

Why are all files in AnkhSVN solution marked as new after installing TortoiseSVN?

会有一股神秘感。 提交于 2019-12-21 03:53:11
问题 After installing TortoiseSVN 1.6.0, all files loaded into an AnkhSVN enabled Visual Studio 2008 project are marked as new (blue +). I have tried re-installing AnkhSVN 2.0.6347 and checkout the repository into a new "clean" folder. However neither seem to resolve the problem. My question is kind of two fold, is there a resolution to this issue and if there is an in-compatibility between the two products (i.e. different SVN bindings?) is there a way to tell which combination of AnkhSVN and

Is there a ASP.NET web site administration tool in IIS?

半世苍凉 提交于 2019-12-21 03:40:52
问题 I am using asp.net web site administration tool to manage the different roles in my project (currently Customer and Administrator). During the development, in vs 2008, its very easy to manage the roles. (Project -> Asp.Net configuration). How do I manage my roles and users when the system is deployed (IIS)? Is it possible to run a "asp.net web administration tool-services" on IIS? 回答1: Supposedly, developers are intended to admin the site using the visual studio web site administration tool.

How do I stop SQL Server 2008 R2 trying to install some package when I build my setup project?

一世执手 提交于 2019-12-21 03:37:22
问题 I have a WPF Linq-to-SQL project which I have been developing using MS Visual Studio 2008. I was running SQL Server 2008, and recently upgraded it to version R2. Now, whenever I build my SETUP project (not the app itself), the build process causes a window to launch: SQL Server 2008 R2 Management Studio Please wait while Windows configures SQL Server 2008 R2 Management Studio Which after a progress bar and some delay, complains: "The feature you are trying to use is on a network resource that

Can't get Log4Net to work in my ASP.NET website :(

旧巷老猫 提交于 2019-12-21 02:52:19
问题 really simple question -> i can't seem to get any data from Log4Net in my ASP.NET application. I've got a simple ASP.NET website, which references a class library. In this class library, I have some lines that call the logger. I'm trying to read the log4net output data in my Visual Studio 2008 debugging Output window . Here's my code and my configuration... //Class Library project //File: Foo.cs public class FooService { private static readonly ILog log = LogManager.GetLogger(typeof

Designing Windows.Form with multiple panels -> How to hide one panel (like a PS layer)

老子叫甜甜 提交于 2019-12-21 02:35:13
问题 How can I hide one panel in Visual Studio 2008 Form Designer like a layer in PS? Otherwise, can someone recommend another better method to design multiple "screens" that must be clicked through by the user? 回答1: What you describe is a wizard, and you might want to investigate the approach from Eric J. However, when I have cases where I want to have multiple panels in the same space within my UI and I want to switch between them in the designer, I like to use a TabControl and hide the tabs on

Why does generating pdb files increase the size of my native C++ exe?

若如初见. 提交于 2019-12-21 01:48:08
问题 Just by turning on Configuration Properties > Linker > Debugging > Generate Debug Info the size of my exe has increased from 2.11MB to 2.34MB What is that extra ~230KB being used for? I thought the exe should be roughly the same size (give or take an extra path to the pdb file) but not that much. Would there be any performance hit from this "bloat"? I've also seen Configuration Properties > C/C++ > General > Debug Information Format set to disabled in release mode while the pdb files are set