Sys is undefined error. (I can't add new products)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 лет назад
Hi All,

I'm new to NOPCommerce. I'm having issues with v1.60 on Arvixe hosting. I get the following error every time i try to add a new product or any other item. Do any of you happen to have a fix?

--------------------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Mon, 2 Aug 2010 03:13:20 UTC


Message: 'Sys' is undefined
Line: 3
Char: 347
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx?_TSM_HiddenField_=ctl00_sm1_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d3.5.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a065e08c0-e2d1-42ff-9483-e5c14441b311%3ade1feab2%3af9cec9bc%3aa0b0f951%3aa67c2700%3aa578e1b4%3a347641bc%3a5a15a1b0%3a5f7bdc4f%3a52352bec%3a4c797d40%3a3699b58e%3ac8f62c63%3a25452a86%3a47a6309d%3a54faba7a%3af2b15c81%3a2a44e3cc%3a1c9108b5%3ae70cd33d%3a42921c86%3a1177529e%3a8074c3f9%3a1eecc3f9%3a8d1c8c98%3a73671002%3a8a2dc8cf%3a737231d4%3a9a87c62e%3a66bd1a69%3a3def063d%3a11fb7995%3a5ec83a74%3a67f6b48f%3a983d445b%3a3fce0808%3a5e87ca19%3a4cbfbdb9%3aec89763d%3ab577cb0f%3ac72764b0%3abd1a3ba5%3a49d880ab%3ac156824%3ab399670c%3af51fc3d8%3ab4f826f2%3a1afc766f%3a5bea0edc%3aa68e3267%3afa404748%3a789343a%3a4fad5f49%3aa432d795%3ac5750145%3af14fa3a5%3abbb7ea0d%3af4cfcbf9%3ac99d32c9%3aea1c4087%3a58bb39a5%3a6fdc0f25%3a33a14b0b%3ac961e0ab%3a3868b074%3aa7175a9c%3abe682e2f%3a7a78d086%3a9a2789ea%3a7c33c41%3aa737f871%3a1226bbfb%3a6cba3bab%3ae48edae4%3a8cef1288%3a50a74782%3a8afeb62d%3a4b5e28d8%3ab3dc9e3%3acea4901c%3a414a2e6d%3a56de2be0%3af2c8e708%3a720a52bf%3a589eaa30%3a698129cf%3ae148b24b%3a8ad18101%3afcf0e993%3afb9b4c57%3accb96cf9


Message: 'Type' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/editors/HTMLEditor/HTMLEditor.scripts/InsertDate.js


Message: 'Type' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/editors/HTMLEditor/HTMLEditor.scripts/InsertPicture.js


Message: 'Sys' is undefined
Line: 76
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1665
Char: 110
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx


Message: 'Sys' is undefined
Line: 1
Char: 1
Code: 0
URI: http://aliendynamix.com/administration/ProductAdd.aspx
13 лет назад
Sys is undefined is usually a problem with MS AJAX.
Can you give me url to your site, I will test with firebug which files are not loaded

Another thing, you have to set the virtual directory where nopcommerce is to work on asp.net 2 - integrated pipeline
for nop1.6 on arvixe
13 лет назад
Thank you for the quick response. My website is www.aliendynamix.com. How do I change the virtual directory?
13 лет назад
I can't log in to the admin panel because I don't know our password.
Anyway you can download firefox and then install firebug and with it go to admin panel of your nop and see which files were loaded and which didn't. That way you can know which files didn't load and investigate ii from there.

To change virtual directory setting in arvixe go to admin panel (dotnetpanel):
Web sites->you website->extensions tab->change asp.net to asp.net 2 integrated pipeline
13 лет назад
Hey!

I also have my stored hosted on ARVIXE (great service in general) and just published my webapp and also have some issues with the Sys not defined error.

In my case it was because I published the whole webapp  from vsstudio 2008, and I don't know what it does but it changes some of the ajax configuration.

If you don't want to know how I found the solution, here it is: in the bin directory of your web site (usually the wwwroot folder) put the original AjaxControlToolkit.dll file that comes with the original nopcommerce source and that's it!  As I said before, I don't know why (if someone does please let us know) but when I compiled the webapp locally something in this file changed and the first time I published it on ARVIXE I couldn't see anything that used AJAX

Now, if you want to know how I find this solution.
NOTE: yes, sure after reading this one could say there could have been hundreds of faster solution alternatives, but in this case this is the order I used!
:)

1. Read info about the problem in the nopccomerce support  forum: thus I found out the "sys" not defined error had to do with AJAX (after reading some of the topics about it I freaked out because it looked like a complicated thing, so I decided to try by myself before trying what the topics said)

2. Copied all the files of my store from the wwwroot to a backup folder (I called mystore)

3. Deleted everything in ARVIXE: my db and my website
NOTE: I learned that, if you created a database in your ARVIXE host, you can't delete it by using SQL Server Management express 2008. The reason is when you're connected to your ARVIXE SQL Server using SSME, it doesn't matter if you're working on your master DB, you can't erase any "child" db. To do so you MUST use the ARVIXE control panel.

4. Installed a fresh copy of NopCommerce, no mods, only the original version: that way I got to see if with the original installation everything went fine. Because it was, then I discarded the Webhosting configuration as part of the problem

5. Restore all the data from my store's database (the one with all the information regarding with my store) to the original nopcommerce database. Since after doing this all continued to go just fine, then I discarded my database as part of the problem.

6. From my store files (saved in the backup mystore folder, point 2) I copied all the folders I new could'n have anything to do with the problem: images, scripts, themes and so on, an replaced the ones in wwwroot with this ones

7. Finally started to paste one by one each folder I though could have something to do with the problem: modules, master pages, etc. But just one at a time, so I could go and check the admin page and verify that the AJAX info blocks where still working (but they didn't)

8. Because nothing of this seamed to work, I tried to sleep for a while, and just when I was about to fall asleep, in mind showed a crystal clear,  neon-like word: bin!

9. Despite the fact that my brain already had found the answer, but since I couldn't have had not even some sleep, I was a little bit irritated, so I I saw a movie with my wife to settle down (yes, today is sunday!), and when the movie ended I was almost certain about the word my mind had been playing with since when I was trying to sleep (point 8)

10. After the movie, I copied all the files I haven' before, except by the AjaxControlToolkit.dll in the bin folder, thus leaving the one that comes with the original nopcommerce source, restarted my webserver and   voila! If worked like a charm!

Sorry about all this text, even though the story is true...  I'm just happy I could solve this!
;)
13 лет назад
Hi, I followed what you told - replace the AjaxToolkit.dll file with the orignal dll file, it is still not working.

I am using Nop1.6 at Arviex as well.

Thanks.
13 лет назад
Hey Birdren

Did you try publishing the original nopcommerce solution without any modification? did it work?
If you did and it did work, then you can be sure the problem is one of the project's dll
If you did and it did NOT work, then it is something about ARVIXE configuration.

Now, if you haven't done it, go ahead and give it a shot, it should'n be difficult and in that way you can be sure that everything will work fine. Don't forget to backup all your files before replacing them with the nopcommerce's original ones.

Now, I have discovered some things since my last post.

First, despite the fact that I have re-published my site a couple of times since my last post, not in all those publishing I had to replace the ajax control (dll), so I don't have clear how does MVS publish all the files.

Second: I've also learned the importance of alwas re-generate the entire application before trying to publish any change, no matter how "light" it is.

So, if I were you, I'd try something like this:
1. Try with the original nopcommerce and check everything works fine
2. Copy all those files on a backup folder
3. Delete everything from your wwwroot folder (whatever it is)
4. Generate again my entire web application  (Menu Build -> Build Solution)
5. Publish it using MSVS  (Menu Build -> Publish <<web_app_name>>
6. Once MSVS says it is done, CHECK FOR ALL THE FILES BEING PUBLISHED IN YOUR ARVIXE CONTROL PANEL: I have discovered that either MSVS or ARVIXE go nuts with the deep level folders and sometimes they appear in a different location from where they are supposed to be, this is very important)

7. Restart the website: in ARVIXE control panel -> websites -> <<your_website>> -> Stop and then Start
8. Check your site. If you still have the problem, then copy the ajax control from your original nopcommerce backup folder to your wwwroot/bin folder
8. Restart again the website (it is important to restart your web server everytime you change code files and dlls). Then give it a couple of minutes and try browsing your site.

Finally, in one of my last updates, a new error message showed about "can't find URLRewrite.xxx", and I had done every one of the steps I wrote just above, so I copy the file mentioned in the error from my original nopcommerce backup folder, and pasted it on its correspondent folder in my wwwroot and it worked, so I thing it is MS VS messing with the files of the application.

Please let me know how it goes.
13 лет назад
I have tried a fresh install of nopCommerce using the Microsoft Web App Gallery in Arvixe host many times. The install goes through just fine but when I try to use the Front or Back-End I get the "Sys is undefined error". Arvixe support has not been able to help me at all so far. However, someone did mention that they knew about this issue.

It would be nice to get some attention on this matter, especially if Arvixe is a recommend host. Thank you all of your recommendations so far.
13 лет назад
netspec239 wrote:
I have tried a fresh install of nopCommerce using the Microsoft Web App Gallery in Arvixe host many times. The install goes through just fine but when I try to use the Front or Back-End I get the "Sys is undefined error". Arvixe support has not been able to help me at all so far. However, someone did mention that they knew about this issue.

It would be nice to get some attention on this matter, especially if Arvixe is a recommend host. Thank you all of your recommendations so far.


I have not heard good reviews about Arvixe in these forums. I have heard good reviews about SoftSys.

I had a "Sys is undefined error" in a custom application I was building. For me, it was an issue with the URL Rewrite module and the Ajax Control Toolkit.
13 лет назад
deccks wrote:
I have not heard good reviews about Arvixe in these forums. I have heard good reviews about SoftSys.

I had a "Sys is undefined error" in a custom application I was building. For me, it was an issue with the URL Rewrite module and the Ajax Control Toolkit.


I have to disagree with you: after reading A LOT about the web hosting provider, I decided ARVIXE and it has been a good decision: first at all great customer service, they are very agile about doing their job and providing you even more alternatives.

Second: great customer service: the chat customer service is very fast, they provide you with great value information, they treat you well (I really like the fact that somebody respect a question even if it is simple and common for them, but perhaps not for me)

Third: great hardware! my store runs really fast, updating is really easy and there are a lot of tools to do all your admin work (even though those tools are not complex ones)

Finally, because this post is about the sys is undefined, it has nothing to do with the hosting provider, it is most because of MS VS and the way files are published. I guess that if we search on the web this error will happen in several other applications differente to nopcommerce.

Please note that I have not agreement with ARVIXE whatsoever so I'm writing this because of my own experience with them.

Finally, I have interesting the fact that your application also showed the error regarding with the URL Rewriting module. When this happens to me, I checked out the bin folder and, in effect, it wasn't there so I just copied it from the original nopcommerce store.

Take care!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.