I have developed a asp.net website in visual studio 2008, I have Sharepoint server 2010 installed n configured.
In my asp.net website I have a function which will create a folder in the sharepoint site.
My problem is when I have published the website, the folder is not being created.
But when i am debugging it, the folder is being created in the sharepoint site.
My Code is as follows: