Sys and Get_Cookie not defined

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/17/2013 12:10:30 PM
Gravatar
Total Posts 36

Sys and Get_Cookie not defined

Hi,

I'm still having problems signing in on my website. The web console is showing 'Sys is not defined' then 'Get_Cookie is not defined'. On my local machine these errors do not appear. It indicates that it is using ASP.NET version 4.0 integrated mode which is the same as my local machine. I think this is why I cannot sign in. What would cause these errors to appear?

Regards

Barbara

 

9/17/2013 12:32:27 PM
Gravatar
Total Posts 18439

Re: Sys and Get_Cookie not defined

I suggest google for  'Sys is not defined'

research and solve that problem, once it is fixed the other error about Get_Cookie may also be fixed as it may be caused by that one

9/17/2013 3:33:01 PM
Gravatar
Total Posts 36

Re: Sys and Get_Cookie not defined

The error is this:

Request URL:
    http://www.ulgham.org.uk/ScriptResource.axd?d=E6huzatYy3jQWWIagmajffCawHJMAmW_0Lmpv85Rska_7URzz6dgqN_HuUkvJZhYm20I_bQd6PzRCu8R3Y4j9OXy374dX5tJCUz5laGiZ2dfGrBjNyKhc9mTGlTY71f12rS-5KG2aA09c4Q5FHU-LdgWTZSEflZAQM9HYBajLasWNgTKUbOOOhkHbTXjehUgNTeLCuS1yiwO7Vvux0LD6uRPaVPuknY0OXFinF7HDj_S2N_EjxIWlw-dKCWAQ4e1FMbasnZpZtrs51t9ygjbN2qewfkRWiDtIriNYT9qpiSr3EnBIyfOFbmEHrOVcdoZMWs7aJ8bpkGofHDs990IwohAVeSA1PVmauI9jmRn0Uvlfg8xpKoz4r0482v-5QXDn7PDEA2
 
 
    Request Method:
    GET
 
 
    Status Code:
    HTTP/1.1 404 Not Found

I do not understand why the file cannot be found, as I think it is created on the fly. Other research indicates that changes to web.config should be made, but that is surely not required.

Regards

Barbara

 

9/18/2013 7:12:00 AM
Gravatar
Total Posts 18439

Re: Sys and Get_Cookie not defined

I tried to look at your site but it currently does not show the page so I cannot try to diagnose it further.

I would make sure you are using .NET 4.5 and have all the windows updates installed, possibly something is messed up with the installation of .NET framework on the server.

I would try different skins to see if it makes any difference.

 

9/18/2013 8:26:22 AM
Gravatar
Total Posts 36

Re: Sys and Get_Cookie not defined

If you type ulgham.org.uk/default.aspx in the browser, it will take you to the home page and you can navigate the website. The ISP says that it does host other mojoportal websites. I only need to know where the problem lies. I cannot see what I can do to fix this problem as the website on my local machine does not exhibit this problem.

Regards

Barbara

 

9/18/2013 8:43:01 AM
Gravatar
Total Posts 18439

Re: Sys and Get_Cookie not defined

Google for "scriptresource.axd not found" you will find lots of information about this and possible things to try.

one thing you could try is creating an empty text file in the root of the site named scriptresource.axd becuase it seems like IIS is returning a 404 without giving .NET a chance to handle the request, by putting a fake file there it may prevent IIS from returning a 404 and give  .NET a chance to handle the request 

9/18/2013 9:21:21 AM
Gravatar
Total Posts 36

Re: Sys and Get_Cookie not defined

I have tried the empty scriptresource.axd and I still get the 'sys is not defined' error in the web console.

Regards

Barbara

9/18/2013 10:22:41 AM
Gravatar
Total Posts 18439

Re: Sys and Get_Cookie not defined

I would try re-installing .NET framework on the server, something is wrong with your .NET installation

9/18/2013 10:25:00 AM
Gravatar
Total Posts 36

Re: Sys and Get_Cookie not defined

I followed your advice Joe and I finally made amendments to the web.config file as recommended at http://geekswithblogs.net/lorint/archive/2007/03/28/110161.aspx. This seems to have fixed the problem. I hope this helps anyone else with similar problems.

Thank you for your help.

Regards

Barbara

9/18/2013 1:00:02 PM
Gravatar
Total Posts 18439

Re: Sys and Get_Cookie not defined

Glad you got it sorted out, some days technology can be a real struggle but you struggled through and prevailed in the end.

Still think there must be something not quite right with your .NET installation since this should not be needed in Web.config. I'm pretty sure stuff like that is supposed to be in machine.config in .NET 4 so it isn't typically needed in web.config. This was one of the changes in .NET 4 whereas back in .NET 3.5 we had to have those things in web.config, in .NET 4 they moved that stuff to machine.config and we cannot usually have it in Web.config because it causes an error if it is in both places. So your machine seems to somehow not have that in machine.config.

I think sometimes things go wrong when .NET is installed before IIS is installed, sometimes not everything gets wired up correctly when IIS is added later. If IIS is installed first then things usually get wired up correctly for ASP.NET by the .NET installation but if done the other way it doesn't always. Anyway that is one theory of how some machines don't work as expected for ASP.NET.

You must sign in to post in the forums. This thread is closed to new posts.