visual-studio-2008

.NET CF 3.5 mobile app building slowly in VS 2008

纵然是瞬间 提交于 2019-12-20 15:32:50
问题 I have been working with a Windows Mobile 6 app that is built with .NET Compact Framework 3.5 in Visual Studio 2008. The application builds incredibly slow, spending a majority of the time doing the PlatformVerificationTask. How do I speed up the build? 回答1: The best way to stop the PlatformVerificationTask in a distributed development environment I would suggest adding the following to the mobile app's project file: <Target Name="PlatformVerificationTask"> </Target> This will overwrite the

Unauthorized access error to html pages in IIS 7.0

烂漫一生 提交于 2019-12-20 14:24:51
问题 I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I have created a new web site and put an html file into the directory. And when I use browse function in IIS manager to browse the html file, I met with the following error, any ideas what is wrong? BTW: I am very confused about unauthorized error since I run the worker process under administrator account. From the error message, I am confused why the logon method is anonymous and not using administrator account? HTTP Error 401.3 - Unauthorized

External editor in Visual Studio 2008

試著忘記壹切 提交于 2019-12-20 14:21:22
问题 Is there any way to set up external editor integration for VS2008? By this I mean when I double-click on a .CPP file in the Solution Explorer, it should open in the external editor, not the internal VS one. To keep it simple let's say I want it to open the file in Notepad++ (or how about Notepad to make it even simpler). 回答1: Right click on the type of file you want in the Solution Explorer, Then choose Open With... Pick your program, and choose "Set as Default" 回答2: Right click on any file

How to solve a “HTTP Error 404.3 - Not Found” error?

ε祈祈猫儿з 提交于 2019-12-20 12:08:42
问题 Simple problem. I start up VS2008 and create a new WCF Service application. This will create a default application with a few test methods showing it works. I press CTRL+F5 and it does indeed work! Great! However, it uses the Visual Studio Development server, which I don't want to support. So I go to the project properties, switch to using a local IIS Web server, create the virtual directory and press CTRL+F5 again. And this "HTTP Error 404.3 - Not Found" error is greeting me back. So

Visual Studio freezes when switching to debug mode

一曲冷凌霜 提交于 2019-12-20 11:28:08
问题 Strange Visual Studio (TS 2008) problem: The IDE completely freezes whenever I switch from Release to Debug mode in a specific project. It happens right as I switch, before I try to build or do anything else. The whole thing started out of the blue, without any abnormal change I can think of. I tried to clean the solution, but it didn't help. Anyone ran into this before? 回答1: If everything has worked fine and then stopped, usually it means there were some problem even though it had passed

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file … Access is denied

纵然是瞬间 提交于 2019-12-20 10:29:35
问题 I often have this problem even when I build a new C++ project and try to build a release file. I use Visual studio 2008. One thing that may cause this problem is my code is saved on the server disk, not on local hard disk. mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "..\Release\PGTS_version17C.exe". The process cannot access the file because it is being used by another process. Anyone know how to solve this? Thanks. 回答1: If you are embedding a

How to build solution using batchfile

試著忘記壹切 提交于 2019-12-20 10:24:12
问题 I want to build .NET solution using batch file. I am aware that I need to use following statement devenv /build release "D:\Source Code\Source\test.sln" But I do not know how to create batch file which will execute on VS command prompt. 回答1: The visual studio command prompt just loads some variables and path settings. That's all it is, it's nothing specially, it's not a different command prompt, it's the same command prompt with some settings configured. You can load the same settings in your

Computing CPU time in C++ on Windows

谁都会走 提交于 2019-12-20 10:15:11
问题 Is there any way in C++ to calculate how long does it take to run a given program or routine in CPU time ? I work with Visual Studio 2008 running on Windows 7. 回答1: If you want to know the total amount of CPU time used by a process, neither clock nor rdtsc (either directly or via a compiler intrinsic) is really the best choice, at least IMO. If you need the code to be portable, about the best you can do is use clock , test with the system as quiescent as possible, and hope for the best (but

Computing CPU time in C++ on Windows

ⅰ亾dé卋堺 提交于 2019-12-20 10:14:44
问题 Is there any way in C++ to calculate how long does it take to run a given program or routine in CPU time ? I work with Visual Studio 2008 running on Windows 7. 回答1: If you want to know the total amount of CPU time used by a process, neither clock nor rdtsc (either directly or via a compiler intrinsic) is really the best choice, at least IMO. If you need the code to be portable, about the best you can do is use clock , test with the system as quiescent as possible, and hope for the best (but

Why do I get an error 'Cannot resolve symbol <symbolname>' in ReSharper?

喜欢而已 提交于 2019-12-20 09:59:51
问题 Using VS2008 and R# 5 I'm running into an odd situation, where on an aspx page I keep getting Cannot resolve symbol 'symbolname' But the code compiles and runs fine. While having a fix for this would be great, I'm just trying to figure out if I'm losing my mind. The CodeFile directive and Inherits directives are fine. If I compile the app or just let devenv sit for a bit it'll go away, but as soon as I save the aspx [via ctrl+s] R# suddenly has trouble with the Inherits attribute and flips