VS 2008 or Win 7?


  1. Posts : 12
    Win 7 Pro 64 Bits
       #1

    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 Win7 but I have no idea where.

    I'm hoping someone here can help.
    Thankyou.
      My Computer


  2. Posts : 8,383
    Windows 10 Pro x64, Arch Linux
       #2

    You could upgrade to VS2010 :)
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    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 Computer


  4. Posts : 12
    Win 7 Pro 64 Bits
    Thread Starter
       #4

    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 Computer


  5. Posts : 5,092
    Windows 7 32 bit
       #5

    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 Computer


  6. Posts : 3
    Windows 7 Ultimate (x64)
       #6

    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 Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    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. W7 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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 22:14.
Find Us