in

Dotnetpanel Forums

Community support forums for DotNetPanel products

AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

Last post 04-25-2008 10:58 AM by Matt Morrison. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-10-2008 3:40 PM

    AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    I have setup AWStats as per help.dotnetpanel and I can get to login screen but am presented with this when logging in...

    System.InvalidCastException: Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'. at DotNetPanel.AWStats.Viewer.Default.GetWebDocument(String url)

    Any ideas?

    Cheers, Matt Morrison

    Managing Director
    Opal Logic Ltd
    Filed under:
  • 04-14-2008 4:34 AM In reply to

    Re: AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    Ok I found out what ws happening here but I still have an issue... I get as far as logging into viewer but then it gives me a 404 message as follows:

    Error while opening 'http://stats.opallogic.co.uk/cgi-bin/awstats.pl?config=mattshome.co.uk': The remote server returned an error: (404) Not Found

    Cheers, Matt Morrison

    Managing Director
    Opal Logic Ltd
  • 04-14-2008 8:45 AM In reply to

    Re: AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    Can anyone help please?

    Cheers, Matt Morrison

    Managing Director
    Opal Logic Ltd
  • 04-15-2008 3:57 AM In reply to

    Re: AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    Ok, I really need help with this now...I've checked elsewhere on the net and it mentioned the perl web service extensions being prohibited, which they were but after allowing them and restarting IIS I still have exactly the same issue; doh!

    Cheers, Matt Morrison

    Managing Director
    Opal Logic Ltd
  • 04-24-2008 2:15 PM In reply to

    Re: AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    As I can see this URL http://stats.opallogic.co.uk/cgi-bin/awstats.pl?config=mattshome.co.uk gives 404 error - the problem is in it. AWStats.Viewer works as "tunneler" only.

    I guess you either didn't correctly install AWStats (e.g. Perl is not working) or didn't configured "stats" A record.

    Why don't you use SmarterStats?

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 04-25-2008 10:58 AM In reply to

    Re: AWStats setup issue - to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'

    To be honest i'm quite happy with awstats, I may upgrade to SmarterStats at some point but it's roughly £150 for Pro as I'd need lots of stats on the same box.

    I have checked my perl install and it seems fine, I can run perl awstats.pl -config=mattshome.co.uk -update which executes fine and parses the logs ok; that's when I run it from the same location as the web awstats.pl (in cgi-bin) by command prompt.  I've also got a record pointing to right place otherwise you wouldn't be able to resolve to stats.opallogic.co.uk ?

    Cheers, Matt Morrison

    Managing Director
    Opal Logic Ltd
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems