visual

Can't view Visual Web Developer Websites when copy to web server

Hi, As far as I can work out I should be able to copy a web project/application to my IIS Web server and be able to see it as I do when designing it on my development computer. The problem is once I copy the folder over to my web server and then try to view it the browser it says Error 404 not found. There must be a real simple fix for...

sql performance, visual studio

Hi there I'm using linq2sql and .net 3.5 with vs2010. I'm experiencing bad sql performance when i run my program through vs2010, but not when i execute the same debug enabled exe outside vs. Whats going on here? Any ideas? ...

Visual Studio 2008 ASP.Net Debugging Zombie Breakpoints Come Back After Being Deleted

In Visual Studio 2008 while debugging an ASP.Net website I set a breakpoint in the codebehind page. I refresh the page or submit to call the method, the breakpoint is hit. Then I delete the breakpoint and continue execution. I make a change to the codebehind page and save it. I submit or refresh again and the deleted breakpoint is back! ...

Why is there no web service project template for VS2010 targeting 4.0?

I'm trying to create a simple web Service in the 4.0 framework, but the project template is only available in 3.5? Have the MS team done this for a particular reason? Are they pushing us to WCF services? ...

Build website deployment package as a postbuild event

I am using visual studio 2010. I have a website project that I would like to build a website deployment package every time I build a the project. Basically I am looking for some example of a post build MSBuild command that will basically do the same thing as the "Build Deployment Package" option from the right click menu of the website. ...

Importing Excel Table into a MS SQL Table

I have software for STOCK and SALES that can give me an Excel price list, I wanna write a small web app that will enable users to check prices, I don't have any access to that software's database, so I wanna import that Excel data (one worksheet, 5 columns, almost 10000 rows) into an MS SQL database table, keep in mind that the price lis...

Visual Studio 2008: How to view “Advanced” properties in the Properties window?

Whenever I click on an object in the Solution Explorer, in the Properties Dialog, all I can see are the "Misc" properties, usually File Name and File Path, but I need to see the "Advanced" section. Under Tools -> Options -> Text Editor -> C#, there is a checkbox labeled "Hide advanced members". This was unchecked by default, and I've tri...

FileNotFoundException on file that exists - C#

Hi I am trying to read a plain text file named "test.txt" from my system but all the attempts File.Exists(), StreamReder are not getting the file, that is not a new task for me but i am irritated due to this strange behavior. I have given full permissions to the file but in vain. I am doing the test in a C# console application. The syst...

Compiling and Deploying Web Application Projects

Can I build a web application project with aspnet_compiler or do I need to use devenv too? If I use devenv, do I then need aspnet_compiler? I'm a little confused as to whether I need aspnet_compiler or not with the new web application projects. ...

Creating shortcut to an exe file in C#

I have a program that when I build on release mode in visual studio it will copy the .exe file and all required file to a shared location for multiple users to access. Inside the folder that was copied i created automatically created a shortcut to the .exe file using C# when the project builds. Problem I want to be able to copy that ...

How to package website and database projects

I am using Visual Studio 2010. I have a solution that has 2 SqlServer Database projects and Web application projects. When I build each of these projects they generate SQL scripts and zip files for websites that can then be imported in IIS with MSDeploy. I want to create a setup project of some sort that will package these sql and zip f...

ASP.NET Development Server Restart EVERY Time

If I make a change in my ASP.NET project using VS2008 or VS2010, I must stop the ASP.NET development server and restart it (usually by "View in Browser") to see the change reflected. I'm having the exact same problem as this guy: http://stackoverflow.com/questions/1733926/asp-net-development-server-needs-restart-every-time Except for m...

I need a simple source code vault for use with vs2010. is there a bare bones version of TFS?

I thought I heard that there was going to be a entry level, low cost version of TFS that is targeted at VSS users who want repository and versioning functionality only. But I can't find the link anymore...does it exist? Or do I need to figure out how to use subversion? ...

Visual C#: Adjust Form Size

I've been trying to use a button to extend the size of my form. However, for some reason, it won't let me do this. I'd think this would be an easy thing to accomplish, but I get the error: "An object reference is required for the non-static field, method, or property 'System.Windows.Forms.Control.Width.get' The code I'm using that caus...

Visual C# - Write contents of a textbox to a .txt file.

I'm trying to save the contents of a textbox to a text file using Visual C#. I use the following code: private void savelog_Click(object sender, EventArgs e) { if (folderBrowserDialog3save.ShowDialog() == DialogResult.OK) { // create a writer and open the file TextWriter tw = new StreamWriter(...

Team Foundation Server 2010 - Legacy Code & VSS

Going to install TFS 2010 today, however have few doubts here: In our current setup, we use: ASP.Net 1.1 ASP.Net 2.0 VSS VB 6.0 Classic ASP 3.0 and DB objects that contains SPs, Functions,Triggers and DML codes. We have our VSS folder like : FrontEnd - Classic ASP - All module wise classic asp files and JS files ...

Accessing the property inside Dynamic control gives Null reference exception.

Hi I have an app with 24 different Forms. They have some security options based on which the 5 different buttons Submit, Approve, 2nd Approve, 3rd Approve, Reject etc get enabled disabled. Now I designed a MainForm that has all the buttons and the security code for them. I have created eachform as a usercontrol and load them dynamical...

Service-based Database in Visual Studio 2008

Hello Everyone, I'm creating a Windows Application in Visual Studio 2008. I've got experience developing business applications using SQL Database and Access Databases as well. But, I've seen "Service-based Database" in Visual Studio 2008 and I've made my whole application working with that Service-based Database. and It works pretty fin...

wpf (too many drawing visuals) cause jittery pan and zoom.

in a canvas, i have around 2000 framework element derived items.. which inturn consist of around a total of 12000 drawing visuals. This canvas represents a 2d view of a complex machine. And this canvas has pan and zoom logic. The drawing comes in a jiffy.. but when the machine/drawing is fully loaded.. then the pan and zoom is very j...

VS 2010 Express - Web - Very slow in debugging

I have got a pretty good config machine and VS 2010 Web Express edition debugging is very slow. it gets stuck between lines. I dont face this issue with Visual studio 2010 prof edition. Any hotfix or patches or solution for this? ...