Close

Page 1 of 2 12 LastLast
Results 1 to 20 of 32
  1. #1
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Info advice or help with a visual basic program/code

    ive got a website blocker which used to work fine, however after a recent microsoft update everytime i run it and try to block a site it brings up an error.

    the program edits the hosts file to add a site to block, when i click on block now it brings an error up saying "access to the hosts file is denied".

    if i run the program itself in visual basic and debug it, it works but if i try to run the stand alone program it brings up this error. visual studio does ask to be restarted under admin.

    now ive changed the requirements to require admin in the manifest file but its not made any difference

    anyone able to have a quick scan for me?
    A wise man once said " "

  2. #2
    DF VIP Member mysterym's Avatar
    Join Date
    May 2002
    Location
    90210
    Posts
    1,615
    Thanks
    70
    Thanked:        59
    Karma Level
    346

    Default Re: advice or help with a visual basic program/code

    If your running windows 7, what happens if you right click the exe and run as administrator?

  3. #3
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    tried all that m8 same thing, im sure M$ has implimented some new security feature in one of their latest updates

    i can set the program to require "run as admin" so that it does this auto when run.

    but for some reason whatever i try it does not work standalone, it runs if i run visual studio in admin mode and then debug so im guessing its something to do with M$
    A wise man once said " "

  4. #4
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    672

    Default Re: advice or help with a visual basic program/code

    had this before mate (with c# not vb tho) and it ended up being the anti virus on the workstation, try disabling, you might need to create an exception as it might sandbox your app as it will most likely detect it as a threat
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.

  5. #5
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    nope, same with or without antivirus m8
    A wise man once said " "

  6. #6
    DF VIP Member ap0c's Avatar
    Join Date
    Sep 2007
    Location
    UK
    Posts
    937
    Thanks
    132
    Thanked:        38
    Karma Level
    259

    Default Re: advice or help with a visual basic program/code

    Have you tried turning off UAC to see if it is deffo a user authentication issue on the pc?

    http://www.mydigitallife.info/how-to...-in-windows-7/

  7. #7
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    yes, plus it does the same thing on other peoples pc's now too where it once worked fine.

    i need someone with knowledge of visual basic to have a look at the code for me, im happy to sort a drink out if you can help me fix the issue
    A wise man once said " "

  8. #8
    DF VIP Member flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    474

    Default Re: advice or help with a visual basic program/code

    Are all files for the prog and dependencies on the C / Local drive?

  9. #9
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    it uses the .Net libs which i have all the latest packs installed m8
    A wise man once said " "

  10. #10
    DF VIP Member akimba's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,846
    Thanks
    1,034
    Thanked:        783
    Karma Level
    369

    Default Re: advice or help with a visual basic program/code

    I can have a look if you want I been a VB.net developer for several years now

    Thanks to akimba

    Detector (19th September 2012)  


  11. #11
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    cheers m8 will zip code up
    A wise man once said " "

  12. #12
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    i cant understand why its stoped working as ive not changed any code recently.

    link sent
    A wise man once said " "

  13. #13
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    672

    Default Re: advice or help with a visual basic program/code

    im a c# man myself but started with VB many years ago, happy to have a look too Det if your still stuck
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.

  14. #14
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    cheers m8 pm sent
    A wise man once said " "

  15. #15
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    672

    Default Re: advice or help with a visual basic program/code

    well here is an interesting bit of info mate, it works fine on mine, just tested it with the yahoo.com webpage

    when i loaded it into Visual Studio i started it up and it asked for elevated Privileges which i said yes to and it reset itself

    tried www.yahoo.com and it worked fine
    blocked it with your app and i couldnt access it
    unblocked it and it worked fine again

    tried the same thing with the .exe on its own and got the same thing, was denied access to yahoo.com

    now im using this on 64-bit so its possible that MS have issued an update for 32-bit only machines, if i have time today i will have a look through what updates have been released in the last month and see if i can find out some more info, i work at a uni so have a few machines i can test this on for you
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.

  16. #16
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    Quote Originally Posted by Mystical_2K View Post
    well here is an interesting bit of info mate, it works fine on mine, just tested it with the yahoo.com webpage

    when i loaded it into Visual Studio i started it up and it asked for elevated Privileges which i said yes to and it reset itself

    tried www.yahoo.com and it worked fine
    blocked it with your app and i couldnt access it
    unblocked it and it worked fine again

    tried the same thing with the .exe on its own and got the same thing, was denied access to yahoo.com

    now im using this on 64-bit so its possible that MS have issued an update for 32-bit only machines, if i have time today i will have a look through what updates have been released in the last month and see if i can find out some more info, i work at a uni so have a few machines i can test this on for you
    if you could test m8 appreciated im using windows 7 64bit and my sons is 32bit and it wont run on either. ive not messed about with UAC settings on either pc and nothing has changed apart from updates hence i cannot understand why they stopped working now
    A wise man once said " "

  17. #17
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    ive just had a thought, would it be easy to change the code so that the program reads the host file into a text file, does the changes then copies it back into the folder instead of modifying the original if that makes sense.

    ill happily pay if someone can get this working on my machine (the guy who is wanting this program is having the same problem as me)
    A wise man once said " "

  18. #18
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    672

    Default Re: advice or help with a visual basic program/code

    Quote Originally Posted by Detector View Post
    ive just had a thought, would it be easy to change the code so that the program reads the host file into a text file, does the changes then copies it back into the folder instead of modifying the original if that makes sense.

    ill happily pay if someone can get this working on my machine (the guy who is wanting this program is having the same problem as me)
    I am happy to have a go of re-coding this for you mate, if you can give me a day or two and wont accept anything for it, you've made me laugh on here too much

    i have some suggestions for you too from looking at your code, i will PM them over

    p.s. i highly doubt you would be able to over-ride the hosts file but if you can then yes reading it in as a text and then outputting it to a file then over-riding should work
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.

    Thanks to Mystical_2K

    Detector (19th September 2012)  


  19. #19
    DF VIP Member akimba's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,846
    Thanks
    1,034
    Thanked:        783
    Karma Level
    369

    Default Re: advice or help with a visual basic program/code

    Hi

    I have ran the exe on my win 7 pc and it did the update but Microsoft Security Essentials has flagged your program as a SettingsModifier:Win32/PossibleHostsFileHiJack
    Alert level = Medium

    I think AV is going to be your biggest bugbear as if you click the clean computer button on the warning it emoves the entry of www.yahoo.com from the hosts file.
    I dont think MSE is the only AV that will watch the hosts file either as this is such an easy target for ScareWare software to attack

  20. #20
    Inactive
    Detector's Avatar
    Join Date
    Jun 2001
    Location
    Grim North
    Posts
    7,484
    Thanks
    2,587
    Thanked:        2,713
    Karma Level
    1041

    Default Re: advice or help with a visual basic program/code

    hi m8, yeah thats the only problem such as a false positive, im not sure of another way to do the same job?
    A wise man once said " "

Page 1 of 2 12 LastLast

Similar Threads

  1. Code for Blaupunkt Car 300 Radio?
    By fais in forum Radio Decoding
    Replies: 8
    Last Post: 30th March 2004, 03:38 PM
  2. visual basic 6 enterprise
    By spade2001 in forum Programming
    Replies: 21
    Last Post: 14th September 2002, 10:51 AM
  3. New to this game! Advice please
    By TKay in forum Microsoft Consoles
    Replies: 10
    Last Post: 2nd September 2002, 02:22 PM
  4. Mobo advice for athlon 1900
    By dodgy in forum PC Hardware
    Replies: 8
    Last Post: 31st August 2002, 08:19 PM
  5. The best Program ever...
    By Mr E Nigma in forum Cars & Motorbikes
    Replies: 9
    Last Post: 30th August 2002, 03:06 AM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •