Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2012, 02:37 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile Sys is undefined - Imar Imar Help me!!

Hi Imar

In our company we use ASP.NET. in our projects we used ajax controls. our projects was working while yesterday that we re-installed Windows Server 2003 on development machine. now when i run the project Sys can not be loaded:

[img]
http://rezabaiat88.persiangig.com/im...sUndefined.GIF
[/img]

in IIS I have created a virtual directory named: GS.RDM_NEW that project runs on it.

in main asp.net configuration file 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Con fig\Web.Config' , WebResource and ScriptResource are added (by default), but I can't run my project.

HTML Code:
<httpHandlers>
    <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="true" />
    <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
    <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
    <add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="true" />
</httpHandlers>
I can't continue working until this error disppears.

what configurations i should set?

I created a new WebProject and add an update panel and some other controls. there is no problem with this kind of projects, but when I run the project through IIS (Set Project to be ran over IIS virtual Directory)

Help me Imar!! customers are waiting ...

I'm online here and waiting for F1-man !!!

[edit]
we are using ComponetArt componts too, but I dont think that it makes this problem
[/edit]

=================

Hi again.
as I guessed the problem was with Virtual Directory. In my project settings (Right click on project -> properties), in Web section, I turned on 'Use Visual Studio Development Server' and know Sys it defined and it works but even now 'WebForm_InitCallback(); is undefined' error occurs (but I can avoid this error).

BUT

my problem is not solved. because I should run my project on Virtual Directory because all application settings and tasks are based on this.


==================

Hi again.
in the project property page, Web section, I set Virtual_Path to '/GS.RDM_NEW/' to provide Virtual Path to my app.

BUT my problem is not solved yet. and occurs too.


===============

Hi again

i think 'WebForm_InitCallback(); is undefined' error's source is Telerik Controls.

HTML Code:
<script type="text/javascript">
//<![CDATA[

WebForm_InitCallback();Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":350,"_height":0,"_isTemplated":true,"_showMoreResultsBox":true,"_skin":"Office2007","_text":"كد","_uniqueId":"uclUserCompanyList1$RadComboBox_Code","attributes":{},"clientStateFieldID":"uclUserCompanyList1_RadComboBox_Code_ClientState","collapseAnimation":"{\"duration\":450}","enableLoadOnDemand":true,"expandAnimation":"{\"duration\":450}","itemData":[]}, {"selectedIndexChanged":ComboBox_IndexChanged}, null, $get("uclUserCompanyList1_RadComboBox_Code"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":350,"_height":0,"_isTemplated":true,"_showMoreResultsBox":true,"_skin":"Office2007","_text":"سازمان / سمت","_uniqueId":"uclUserCompanyList1$RadComboBox_Pos","attributes":{},"clientStateFieldID":"uclUserCompanyList1_RadComboBox_Pos_ClientState","collapseAnimation":"{\"duration\":450}","enableLoadOnDemand":true,"expandAnimation":"{\"duration\":450}","itemData":[],"loadingMessage":"در حال بار گذاري اطلاعات.."}, {"selectedIndexChanged":ComboBox_IndexChanged}, null, $get("uclUserCompanyList1_RadComboBox_Pos"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":350,"_height":0,"_isTemplated":true,"_showMoreResultsBox":true,"_skin":"Office2007","_text":"نام شخص","_uniqueId":"uclUserCompanyList1$RadComboBox_UserName","attributes":{},"clientStateFieldID":"uclUserCompanyList1_RadComboBox_UserName_ClientState","collapseAnimation":"{\"duration\":450}","enableLoadOnDemand":true,"expandAnimation":"{\"duration\":450}","itemData":[],"loadingMessage":"در حال بار گذاري اطلاعات..","offsetX":400}, {"selectedIndexChanged":ComboBox_IndexChanged}, null, $get("uclUserCompanyList1_RadComboBox_UserName"));
});
//]]>
</script>
__________________
happy every time, happy every where

Reza Baiat

Last edited by irProject; February 26th, 2012 at 03:53 AM..
 
Old February 26th, 2012, 07:01 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

Hi there

WebForm_InitCallback() error was about ComponentArt controls. I was forgotten to register my license.

BUT

my problem about Virtual Directory is not solved yet
__________________
happy every time, happy every where

Reza Baiat
 
Old February 26th, 2012, 11:00 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
my problem about Virtual Directory is not solved yet
And what's the problem?

BTW: this seems to be unrelated to my book, so please post messages like this in a more general ASP.NET category here at p2p.wrox.com.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old March 1st, 2012, 07:47 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile problem is solved

Hi Imar

my problem is solved now.

BUT

what was the problem? (!!!)

ajax library was not loading when I was using IIS. I searched multiple times and surfed all pages and did all suggestions (!!), but they was not useful. in a forum (i forgot the name and link) a person said that you should remove your website from IIS and add a new one. I did and the problem vanished. ajax library was loading without any problem.

my second problem was with telerik controls. all controls was working properly but RadComboBox. with unknown issue it did not working. I re-installed telerik components and all errors are chocolates!

Cheers
__________________
happy every time, happy every where

Reza Baiat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed please Imar leemark2k3 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 June 2nd, 2010 03:15 AM
Imar! help me shankhan Dreamweaver (all versions) 1 March 20th, 2005 05:45 PM
Imar - Please look at this larry Javascript How-To 4 July 8th, 2004 12:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.