Starting with Ajax.net

by vj 12. September 2009 12:10

Starting off with ajax.net development for a project requirement. To wet the legs I stated off with a hello world application, and faced few issues. Thankfully the workarounds were easy and took very little time. This post is for reference purpose to others who may face the same problem.

 

Tools:

Windows XP SP3

MS Visual Studio .NET 2008

MS SQL 2008 Dev. Ed.

 

Game:

  • Created an empty folder D:/Projects/Test/Ajax/Hello1
  • Created virtual folders /AjaxTest –> D:/Projects/Test/Ajax/ and /AjaxTest/Hello1 –> D:/Projects/Test/Ajax/Hello1
  • Opened VS, opened website /AjaxTest/Hello1
  • Added new AJAX Web Form (Default.aspx)
  • Went to design view and was presented with the following error on the design page:
    • image
  • Since it was reference error, I tried adding an empty Web Configuration file and reloaded the web form in design view and it solved the issue
  • Added an update panel, a label and a button to the web form
  • Added an event to the button click to display a message on the label
  • Loaded the web form on the browser and was presented with the following exception:
    • The path '/AjaxTest/Hello1/App_GlobalResources/' maps to a directory outside this application, which is not supported.
  • Did some research online and found that adding a trailing slash to any virtual application home folder in the current web sites path causes this problem.
  • Removed the trailing slash of AjaxTest virtual folder
  • All is well now! :)

Happy coding!

Tags:

Tech | Basics | References

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.0.0
Theme by Mads Kristensen

About Me

wondering ... seeking ... discovering ... Smile

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Page List

    RecentComments

    Comment RSS

    Most comments