I am attempting to test a feature error in an operational asp.net website. I have copied the website to my local machine and setup an associated site in IIS. When I attempt to open the site in Firefox, I get "XML Parsing Error: no root element found
Location: http://localhost:8000/default.aspx
Line Number 1, Column 1:"
I am trying to figure out how to get it going. There are no llog errors???
Thanks
Abbott
Related
I use IIS 8 on windows server 2012 R2 .
when I Browse pages on IIS, some of them was shown, and some of them has occurred to 404 error:
The resource cannot be found.
Description: HTTP 404. The resource
you are looking for (or one of its dependencies) could have been
removed, had its name changed, or is temporarily unavailable. Please
review the following URL and make sure that it is spelled correctly.
I know that pages are exist and the name is correct.
I have this site on another computer too, that works well and open all pages correctly, but in this computer some pages have the above error. both computer have the same role and features on IIS .
what should I do ?
I have a user's website giving an error in a global.asa file but it does not exist in their web root. It looks like the account has been hacked as it's giving an error about not connecting to a server, and at the same time I see the firewall block outbound connection requests.
msxml3.dll error '80072efd'
A connection with the server could not be established
/LM/W3SVC/6510/ROOT/global.asa, line 66
I've deleted the IIS instance and had the control panel recreate it, but the issue still exists. I've even created a dummy asp file which only displays some text and it happens.
I'm at a loss where this could be being picked up and looking for suggestions. Where might this be set?
I've had the same problem on a w2k3 server (iis6) with many sites, where just one had the fake global.asa;
I've not still found cause but a workaround solution, for me, has been:
open MMC Console (IIS manager)
stop IIS
double click on Web Sites (confirm reload offline configuration)
under every site delete "ghost" global.asa (that you don't find under phisical websites folder)
start IIS
I've got so far with this and hit a brick wall. I have set up 4 web sites on one server in IIS:
Default Web Site (myserver.mydomain.com)
D:\websites\default\
Apple (apple.mydomain.com)
D:\websites\apple\
Orange (orange.mydomain.com)
D:\websites\orange\
Pear (orange.mydomain.com)
D:\websites\pear\
I have configured the site bindings using the command line as per this guide and it now looks like I want it to. When I do appcmd list sites it returns the following:
SITE "Default Web Site" (id:1,bindings:net.tcp/808:*,net.pipe/*,net.msmq/localhost,msmq.formatname/localhost,https/*:443:,state:Started)
SITE "apple" (id:2,bindings:https/*:443:apple.syfire.gov.uk,state:Started)
SITE "orange" (id:3,bindings:https/*:443:orange.syfire.gov.uk,state:Started)
SITE "pear" (id:4,bindings:https/*:443:pear.syfire.gov.uk,state:Started)
Results:
"myserver.mydomain.com" returns the error Server Error in Application "DEFAULT WEB SITE"
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory. despite there being a Default Document configured (index.html). EDIT: If I switch Directory Browsing on it shows the contents of D:\websites\default\ (as it should) and I can navigate to index.html, but when it's off it can't seem to find the file itself.
"apple.mydomain.com" works fine and shows the default page stored in D:\websites\apple\.
"orange.mydomain.com" and "pear.mydomain.com" return error Server not found (Firefox), Internet Explorer cannot display the webpage (IE).
I'm sure I've missed something critical to this operation! Thanks.
Try replacing * with the ip address that you are listening on. This is what I used to get something similar to work in IIS 6 on Windows 2003.
Windows 2008 R2 Standard x64, with IIS 7.5
When trying to load any ASP page (in IE right on the server), I instantly receive a "HTTP/1.1 500 Server Error". I have un-ticked "show friendly error messages" in IE.
IIS Logs show:
"ASP_0147|500_Server_Error".
Event Viewer->Application gives me:
Error: ASP will not serve requests because it could not perform the first request initialization..
And finally, the usually helpful Failed Request Tracing gives me 2 entries:
ASP_LOG_ERROR (Labeled as ERROR)
LineNumber:
ErorrCode: ASP 0147
Description: 500 Server Error
MODULE_SET_RESPONSE_ERROR_STATUS (Labeled as WARNING)
ModuleName: IsapiModule
Notification: 128
HttpStatus: 500
HttpReason: Server Error
HttpSubStatus: 0
ErrorCode: 0
ConfigExceptionInfo:
Notification: EXECUTE REQUEST HANDLER
ErrorCode: The operation completed successfully. (0x0)
I have double-checked all permissions and accounts. I have switched the app pool pipeline mode back and forth. And of course, I removed the IIS role from the server, and reinstalled that and the ASP Role Service about 5 times. I also have the Error Pages setting at the site level to show "Detailed Errors". I get the same errors for every ASP page, including a test one that is nothing but a response.write.
The real kicker is that I had this working when I came in this morning. I don't know if I clicked something in IIS by mistake or what. I have scoured the web for the past 8 hours. Experts -- what happened?
A few steps that you may try:
Ensure that there is no global.asa file of 0 bytes.
Try creating a new web site only for test and see if that is also not working. Then put a text file and try browsing it. If a text file comes up good, it would mean your IIS is okay. Now, try ASP file with <%=Now%> and see if you get the latest time. If this doesn't work, then it is related with permissions. In that case, use Process Monitor to find out any Access Denied and fix it. Check this blog post.
The download links have changed: http://technet.microsoft.com/en-us/sysinternals/bb896645
Note: in case you don't see any access denied, try this
Start ProcMon
IISRESET
Browse .asp page again and check for Access Denied.
I copied my ClickOnce deployment to my C:/Inetpub/ folder on my webserver and I deleted my Virtual directory. I deleted the WpfApplication1 folder beneath wwwroot in Win Explorer. Then I turned on Web Sharing for this folder. Then I viewed my IIS Manager and this new Share name appeared under wwwroot.
So now under Inetpub folder on my web server I have the following directory path:
C:\Inetpub\WpfApplication1\
with contents:
Application Files
publish.htm
setup.exe
WpfApplication1.application
Next, I remapped both the publishing and installation URL's for the project to http://myserver/WpfApplication1/
And I clicked Publish Now.
But after I performed a Publish Now operation, I got the following error on my development server (D610-M):
Error 1 Failed to connect to 'http://myserver/WpfApplication1/' with the following error: Unable to create the Web site 'http://myserver/WpfApplication1/'. The Web server does not appear to have any authentication methods enabled. It asked for user authentication, but did not send a WWW-Authenticate header. 1 1 WpfApplication1
On my webserver, when I click Browse from the IIS Manager on the WpfApplication1 directory, it shows me the Install page. But after I click the Browse button, it returns an error which says:
The remote name could not be resolved: 'd610-m' (D610-M is the name of my development server).
How do I fix this?
Try using the IP address of the machine instead of the DNS name...