Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: VS 2008 or Win 7?


20 May 2010   #1

Win 7 Pro 64 Bits
 
 
VS 2008 or Win 7?

I am taking a couple C# classes at school and I finally got VS 2008 set up on my home computer. I am having one issue that I'm not sure where to go looking.

At school, the program is installed on XP Pro.
At school, I can read, output, and create files that are saved on my hard drive. I know any code I have used is correct because I can open up the files my code creates with other applications without issue on the school computers.

At home, I have the program installed on Win 7 Pro x64. (I just upgraded my home comp so I'm still figuring out this new platform honestly.)

At home, everything runs, etc, but it will not create files. I can see the drives working, but nothing is written. I have tried several drives - all failing.

I'm assuming this is a flag or an environment setting somewhere on my installation or either VS or Windows 7 but I have no idea where.

I'm hoping someone here can help.
Thankyou.

My System SpecsSystem Spec
.

20 May 2010   #2

Windows 8.1 Pro x64
 
 

You could upgrade to VS2010
My System SpecsSystem Spec
20 May 2010   #3

Windows 7 32 bit
 
 

Are you using the C# express version? If you look around you should be able to find an .iso image for download with all the Visual Studio 2008 SP1 express editions. I tried VS2008 on Vista64 and took it off. But this SP1 express installed easily and works fine.
My System SpecsSystem Spec
.


21 May 2010   #4

Win 7 Pro 64 Bits
 
 

I dont think its VS thats causing the troubles.
Here is a screen shot of some error messages.

VSErrors.jpg picture by tnickle - Photobucket

PS: I updated to VS 2008 Service Pack 1 with the Express C# added. This ss was taken with those additions installed.
My System SpecsSystem Spec
21 May 2010   #5

Windows 7 32 bit
 
 

What do you mean you updated to service pack 1? What I suggested was getting an .iso download that has SP1 slipstreamed/integrated. That's a different ball of wax. It just goes on smooth. Don't try manually adding SP1 to something that's already broken.

Edit: I'm pretty sure this is the .iso I used. Remove the crap and just install clean after burning a CD from it:

http://www.microsoft.com/downloads/d...displaylang=en
My System SpecsSystem Spec
21 May 2010   #6

Windows 7 Ultimate (x64)
 
 

The error messages in the image are hidden, so I'm assuming it states 'Cannot find or open file...". Do these files actually exist (the ones in C:\Windows\assembly\.....)? These are not created during compilation they are installed. If they do not exist, then either the required .NET SDK is not installed, or your project or VS configuration is incorrect. I don't personally do any .NET development but to me it seems that it is unable to locate the required dependancies. Try to create a new (blank) C# project and add the most basic "hello world" code to it. If that runs then it's definitely your project file or VS config.

Also, from your screenshot it seems like the executable (C:\Users....\Debug\ICA5.exe) is created and loaded successfully - in fact it's the only file in the list that actually loads!

Other things to try:
Always run your Visual Studio as Admin (right-click, 'Run as administrator').
Ensure that you develop with a user account that has Admin rights.
Disable UAC.
(these are not required but I find it helps minimize problems on my dev machines)

Also, the files that are missing in your screenshot (C:\Windows\...) actually exist on my system (Win 7 Ultimate x64). I have VS2008 with SP1 installed afterwards, as well as VS2010.

Hope this helps
My System SpecsSystem Spec
21 May 2010   #7

Windows 7 32 bit
 
 

If you could install SP1 afterward you probably didn't have the problem in question. If he can't install the slipstreamed disk is the best shot. Windows 7 may be a bit different than Vista but with Vista64 I could not get the thing to install no way no how. With the slipstreamed disk the stuff went on without a hitch.

It's probably a minority of PCs with the issue.
My System SpecsSystem Spec
Reply

 VS 2008 or Win 7?




Thread Tools



Similar help and support threads for2: VS 2008 or Win 7?
Thread Forum
Does A x64 Sys' Needs x86 Updates? (C++ 2008 SP1 x86) Windows Updates & Activation
Best Antivirus in server windows 2008 server 2008 r2 System Security
Fax Server 2008 with Win 7 and XP Network & Sharing
SQL 2008 not loading Microsoft Office
MS SQL 2008 Express Software
VS 2008 & SQL Server 2008 compatibility Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 04:29 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33