View Source Restriction Error

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Hello,

since about 1 week ive been having this error when trying
to view a page source, being; "Windows cannot access the
specified device, path, or file. You may not have the
appropriate permissions to access the item.".. Well I
have an administrator account and I can open notepad the
normal way, I already tried cleaning my cache/temp files
and change my tmp directory, neither worked, I checked
the registry to see if all settings are still how they
should be and for as far as my knowledge goes it looked
fine.

But im still having this damn problem, so my question..
does anyone know how to fix this??

thanks in advance! :-)
 
From Mike Burgess, MVP

There may be several reasons .........

If a shortcut exists on the Desktop for Notepad, rename it.
[or]
Close all instances of OE and IE
Control Panel | Internet Options | General tab | Delete Files button
Also select the option: "Delete all offline files"
Then click the "Clear History" button, while you're at it ......
Reset the TIF cache size to 50mb. Click Apply\Ok
--
Make *sure* Notepad.exe exists and is NOT a 3rd party replacement.
In some cases a Registry entry may prevent "View | Source" from working.

Start - Run (type) "regedit" (no quotes)
Click Edit (up top) select: Find (type) "NoViewSource" (no quotes),
Click "Find Now" *if* located, highlight the entry "NoViewSource" in the
right pane
Right-click and select: Modify, change the value from "1" to "0" (no quotes)
Press F3 to continue searching until completed, repeat as needed.

--
Open Regedit to the following location:

HKEY_CLASSES_ROOT\.htm
"PerceivedType"="text"
@="htmlfile"
"Content Type"="text/html"

HKEY_CLASSES_ROOT\.htm\OpenWithList

HKEY_CLASSES_ROOT\.htm\OpenWithList\notepad.exe

If the above key doesn't exist, create it.

The below Registry key does NOT normally exist,
Tweak UI (XP) or some other app may have added the key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source
Editor\Editor Name]
@="C:\WINDOWS\notepad.exe"

If exists, make sure the correct program and "Path" is indicated.

Note: always Export before editing.

[more info]
Source Code Is Not Displayed When You Click Source on the View Menu in IE
http://support.microsoft.com/default.aspx?scid=kb;en-us;306907


--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Hello,

since about 1 week ive been having this error when trying
to view a page source, being; "Windows cannot access the
specified device, path, or file. You may not have the
appropriate permissions to access the item.".. Well I
have an administrator account and I can open notepad the
normal way, I already tried cleaning my cache/temp files
and change my tmp directory, neither worked, I checked
the registry to see if all settings are still how they
should be and for as far as my knowledge goes it looked
fine.

But im still having this damn problem, so my question..
does anyone know how to fix this??

thanks in advance! :-)
 
I already tried cleaning temp/cached files, didnt work..
also I dont have anything similair to 'NoViewSource' in
my register and "view source editor" is configured as it
is supposed to.. and still I get the error =\

also my homepage has been hijacked by about:blank, I dont
really care as I usually dont have a homepage set anyway
but it might have something to do with it?

I already tried scanning for adware/spyware but without
any luck, also I have kaspersky running all the time so
it cant be a virus..
 
hmm my virus scanner just detected something
called 'notepad.com'.. its been deleted but view source
still doesnt work, anyone have some more info on this?
 
Problem fixed! :D

deleted notepad.com and it just worked :|

odd stuff, thanks for the help anyways! :)
 
It's a good idea to scan for spyware first. Also, make sure you don't have shortcuts to notepad in the desktop or anywhere withinin your user profile area.

--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

I already tried cleaning temp/cached files, didnt work..
also I dont have anything similair to 'NoViewSource' in
my register and "view source editor" is configured as it
is supposed to.. and still I get the error =\

also my homepage has been hijacked by about:blank, I dont
really care as I usually dont have a homepage set anyway
but it might have something to do with it?

I already tried scanning for adware/spyware but without
any luck, also I have kaspersky running all the time so
it cant be a virus..
 
I checked all the things you mentioned, but everything was ok. Then, I did a search for all occurances of "notepad" and came up with two 65K versions in the c:\windows and c:\program files\internet explorer\connection wizard. There was a third file in c:\windows\system32, but it was only 3K. I opened it with an editor and found an "MZ" file identifier (which means nothing to me). But, renaming this file to "Xnotepad.exe" made the HTML code suddenly reappear when I click on View Source. I have no idea how it got there.


--
Regards,
B Samstag
Culver City, CA


Ramesh said:
From Mike Burgess, MVP

There may be several reasons .........

If a shortcut exists on the Desktop for Notepad, rename it.
[or]
Close all instances of OE and IE
Control Panel | Internet Options | General tab | Delete Files button
Also select the option: "Delete all offline files"
Then click the "Clear History" button, while you're at it ......
Reset the TIF cache size to 50mb. Click Apply\Ok
--
Make *sure* Notepad.exe exists and is NOT a 3rd party replacement.
In some cases a Registry entry may prevent "View | Source" from working.

Start - Run (type) "regedit" (no quotes)
Click Edit (up top) select: Find (type) "NoViewSource" (no quotes),
Click "Find Now" *if* located, highlight the entry "NoViewSource" in the
right pane
Right-click and select: Modify, change the value from "1" to "0" (no quotes)
Press F3 to continue searching until completed, repeat as needed.

--
Open Regedit to the following location:

HKEY_CLASSES_ROOT\.htm
"PerceivedType"="text"
@="htmlfile"
"Content Type"="text/html"

HKEY_CLASSES_ROOT\.htm\OpenWithList

HKEY_CLASSES_ROOT\.htm\OpenWithList\notepad.exe

If the above key doesn't exist, create it.

The below Registry key does NOT normally exist,
Tweak UI (XP) or some other app may have added the key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source
Editor\Editor Name]
@="C:\WINDOWS\notepad.exe"

If exists, make sure the correct program and "Path" is indicated.

Note: always Export before editing.

[more info]
Source Code Is Not Displayed When You Click Source on the View Menu in IE
http://support.microsoft.com/default.aspx?scid=kb;en-us;306907


--
Ramesh - Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

AumHa VSOP: http://www.aumha.org

Hello,

since about 1 week ive been having this error when trying
to view a page source, being; "Windows cannot access the
specified device, path, or file. You may not have the
appropriate permissions to access the item.".. Well I
have an administrator account and I can open notepad the
normal way, I already tried cleaning my cache/temp files
and change my tmp directory, neither worked, I checked
the registry to see if all settings are still how they
should be and for as far as my knowledge goes it looked
fine.

But im still having this damn problem, so my question..
does anyone know how to fix this??

thanks in advance! :-)
 
Back
Top