visual-studio-2005

RESTful WCF hosting in IIS

I am currently writing a RESTful WCF service in C# using VS 2005. I am hosting the service through IIS and can browse to the .svc, but whenever I try to navigate to any of the URIs I get a 404 error. If I run the wcftestclient (included with VS 2008) then I am able to see the methods, so I know the service is functioning. The problem se...

In page error 0xc0000006

I have a VS 2005 application using C++ . It basically importing a large XML of around 9 GB into the application . After running for more than 18 hrs it gave an exception 0xc0000006 In page error. THe virtual memory consumed is 2.6 GB (I have set the 3GB) flag. Does any one have a clue as to what caused this error and what could be the...

w3wp crashes when starting debug in VS 2005

I know there were a couple similar questions, but none solved my problem. This issue just started within the last couple of days. I don't always hit VS everyday, so I can't say for sure when it began. When I start debugging, the app loads in IE, but the w3wp process dies with the message "The program '[9252] w3wp.exe: Managed' h...

How do I embed version information into a windows binary?

You probably know that Windows has that option where you can view the properties of a binary and it will display information about the author, the version number, the company etc... We would like to put this into our automated compilation system. Getting this version information into the binary after the binary is compiled is preferable,...

Is it possible to iterate over two IEnumerable objects at the same time?

If I have a List(Of x) and a List(Of y) is it possible to iterate over both at the same time? Something like for each _x as X, _y as Y in List(of x), List(of y) if _x.item = _y.item then 'do something end if next These lists may be of differing sizes. I am using .Net2.0 which I suspect is my downfall here as I ha...

SQL server management from visual studio

I need to make some permission changes on a MS SQL server (2005) database. Some tables read only for all but dbo, some tables read-write for all etc. In the past I used the management program that came on the SQL server disk. That is not an option for me right now. I cannot find a place in visual studio to alter table permissions. D...

Unable to apply publish properties?

I don't know what caused VS to start thinking it needs to publish my project, but now whenever I build it, I get several "Unable to apply publish properties for item 'blah'" warnings. How do I stop VS 2005's publishing facilities from working on my project completely? I use InstallShield so I have no use for VS's publishing system. ...

visual studio recognizing .asp properly or suggestion for classic asp editor/iDE

How do I get visual studio 2005 to work best with .asp files? I used to have this on my old PC but I can't get the settings right. I exported and important all my old settings and still no dice. alternatively I think there might be an even better choice for classic asp IDE editor. It'd be nice to have intellisense, completion, high...

odd "warning C4127: conditional expression is constant" under VS2005

I'm trying to compile LightZPng with warnings on level 4. I get a lot of C4127 on lines that are clearly not worthy of this warning. An example: #define MAX_BITS 15 int values_per_bitlen[ MAX_BITS + 1 ]; for ( int i = 0; i <= MAX_BITS; ++i ) // C4127 is here values_per_bitlen[ i ] = 0; How can this code be changed to avoid the ...

How to use vc++ class library in some other project?

Hi I have created a class library whcih has simple Dispaly(). I need to use that display function in some other Vc++ project how can i do this ?? Plz help me Thanks in advance ...

Register assembly in ASP.NET (VS 2005) and web.config

Hello, I am applying a new version of an assembly to a web project and have found that I am going to have to replace about 500 instances of the Register Assembly tag at the top of each web control. I considered registering it in the web.config but when I try this and remove the "Register" tag from the controls, i receive the "unrecognize...

Local help not working in Visual Studio 2005

The local help in Visual Studio 2005 never comes back with anything. Also, if I'm not connected to the Internet, of course I get nothing. When I run dexplore eventually it takes 100% of cpu. Also, the F1 help doesn't work (of course). I've repaired both VS 2005, MSDN in other orders. Any help will be appreciated! THanks -tim ...

Is it possible to reference a VS2005 website project from another project in the same solution?

I'd like to add nunit testing to a VS2005 C# ASP.NET website project - so that I can excercise methods in the App_Code directory. It's recommended that the tests are added as a seperate assembly so that the testing code does not get delivered with the website - in this lies my question: When I add a new project into the solution which h...

in c# how to assign a superscript to an equation ?

hi , i have an equation that requires a number to be multiplied by itself for the given number of times , like: 2 ^ 5 but if i implement the carrot '^' sign it doesnt give the required result ... am i doing it wrong ? if so what will be the correct expression for it? ...

Data Grid DataFormatString formatting not working

I came accross an issue a few days ago which I'd completely forgotten about, and noticed it wasn't mentioned on SO. In an ASP.Net document, a datagrid was created dynamically as part of a business intellgience tool. The data format string was being set in the code behind, but was not being shown correctly on the rendered page. As it t...

c# how to equate the elements of two array

hi , i am trying to tally two arrays like myArray{a,b,c} and urArray{a,b,c,c} i wanted to check if both the elements have same elements ,for example in above condition the second array that is 'urArray' has an extra 'c' . and the code should be able to equate two sets of array if they have the same elements or not and the order of th...

Publish option disabled in win Vista after converting a website to web application

I have converted a web site to a webapplication. In windows Vista, the option of publish is no more available. Any idea how to solve this problem. ...

SCons, Boost::ASIO, Windows Precompiled Headers, and Linker Errors

I'm investigating using SCons for our build process as we develop C++ for multiple platforms. I'm 99% of the way there in the build configuration, but I'm running into a VERY strange error on Windows having to do with the precompiled header file. Even stranger still is that it only happens on one project. In the SConscript file for th...

Visual studio: hiding ifdef blocks

Hi, When working in cross-platform project, most probably you will encounter a lot of #ifdef blocks in the code. This is actually very annoying and makes it hard to read the code. I wonder if there's a way to hide those non-related ifdef blocks? I'm using Visual Studio 2005. For example, if you have this code: #ifdef _PC_ do a #else d...

Forcing VS to compile using x86 on x64 platform

Possible Duplicate: compling assemblies on a 64bit plaform for a 32bit Currently I want to compile my project using x86 option since the application uses a 32-bit COM dll which fails since by nature 64-bit OS prefers 64-bit app. But the option of x86 to compile on VS2005 on a x64 platform is disabled. Any idea ...