.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

When you register a web service with a Script Manager, does it have a lot of overhead?

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :ASP.Net
Hey all - I've got some UserControls that need to invoke their own Web Services to get some JS work done.  I know I need to register the Web Service with the ScriptManager if I want to call the Web Service from my JavaScript... but is there an overhead with registering the Web Service for every User Control?  There is a chance the user controls aren't even called in the system and I'd hate to have all that extra overhead if there is a lot... otherwise, I'll just register them with the Script Manager. Currently, I'm operating under the idea that the Script Manager does have an unnecessary overhead.  If that's right, how do I dynamically register a script with the Script Manager when Script Manager is stored on the Master Page and I need to register from the User Control.

View Complete Post

More Related Resource Links

Using JSON to Call a WCF Service with no Script Manager


I have a business requirement to create a thin client component using only JavaScript and HTML to asynchronously call WCF web service methods.  I cannot use any .NET code or server-side scripting, and I would prefer not to rely on the AJAX client library if I don't have to.  All of the examples I'm finding use a ScriptManager component to achieve calling a WCF service with JavaScript, but as I said, I can't use any server-side technology.  Can anyone point me in the right direction or give me a simple example to get me started?  I'm new to working with WCF.

Also, if I'm unable to achieve this with WCF services, is there an alternative technology I can use such as REST web services that will enable me to accomplish this?

Thanks in advance,


CRUD Operation should be Part of BO or Service/Manager Classes?



I am developing an application which has a general structure similar to what Scott has described at http://nhibernateasp.codeplex.com

Thanks to Scott for developing such a nice architecture which can be used for most of the projects!

It uses Service Layer which contains service classes (like Product Service) which actually talk to the repository layer (ProductRepository) and these service classes are responsible for CRUD operations while the BO (Product) contains just the data and the validation methods.

As I have read, in OO design, you should design a class which contain both data and behavior, in which case, the BO (Product) should be responsible for doing its own CRUD and it should not be a responsibility of Service classes.

Which approach you think is better design and what could be the reasons?

Any help is this regard is appreiciated.




Cannot register a service type without attaching the source assembly to the host process

I'm wondering if there is any way I can register a service type without attaching the source assembly to the host process. When I register the service type, the source assembly (which has the type) cannot be written.   I appreciate your attention.. 

FIMSynchronizationService can not start (event id:6324) and The Forefront Identity Manager Service c

Hi, I have this two issuses 2 days. I tried lots of ways, I can not fixed it. I have fully permission accunt to create User Proflie Sych. Even last week, everything is fine, but since I deployed the Sql2005 maintenance for our database. It shows those two issues. Please help!

Windows service not showing up in service manager

I wrote a WindowsService application using C# on .NET 3.5, there I used a project installer and set up program to package the application. When I installed this, it worked well, succefullyt installed and event viewer says it success. When I goto add/remove Programs on the contro pannel there it shows the applicaiton to remove.BUT, this is not showing up in the Service Manager.. Can someone please help me to fix this?NOTE: I have tested this applicaion through a test clinent application (Windows Forms app) and there I didn't find any issues.Thx

spid3 SQL Server is terminating due to 'stop' request from Service Control Manager

Installing MSDE (SP3) on a clean updated Win-XP system with all the latest fixes installed unsuccesfully. A clean systems means a fresh installed Win-XP, updated all using webupdate. And Excel 2003 installed. Thats all (not even AntiVirus (yet))No UI in the end. Only when examining the Log files at the installation location does show that there was an error: <DateTime> spid3 SQL Server is terminating due to 'stop' request from Service Control Manager is found at the end of the logfile.This error is often encountered by others as found on any respected seach engine on the web. Most have no answer and some say it is because of MDAC. But I got the latest Mdac installed (v2.8 (.1)) RTM. checked it using 'Component Checker' if nothing missing. All seems ok and in place except for MSDE. Anybody?

Report Manager Security: If a user login to Report Service than he should be able to see only a fold

Report Manager Security: If a user login to Report Service than he should be able to see only a folder for which he has role assing and rest of the folder should be hidden for him. How this security i can achive with c#

Add AJAX Script Manager to Master Page?


I've read that I must add the AJAX Script Manager to the Application.Master page in order to get my custom page to render properly.   Would someone please confirm?

Secondly, can I add the markup to the application.master without messing up my existing application pages?

Sharepoint 2010 Live Id Integration, Configuring Microsoft Service Manager.


Hi guys i have been following the post:


To implement Sharepoint 2010 Live Id Integration.

I am lost at configuring the microsoft service manager, for this values:


Domain Name:

DNS Name:

Default Return Url.

I don't understand what i have to put under those values.

My domain name is Sharepoint.


I would like somebody to explain me with a practical exemple what is the right way to configure those values succesfully, if you need more information about my specific scenario please let me know.

Many thanks



Web script enabled service - AJAX problem


I have the following REST GET service which is web script enabled using <enableWebScript /> attribute in Web.config.


[WebInvoke (Method ="GET" , BodyStyle =

Deplying SQL Analysis service database using script problem with Impersonation


I have a problem with deploying SQL Analysis database from dev server to production , because I do not have an admin privileges , I cannot use Create script

The only action that I have , is to execute Alter Script against Any Empty database,


However I cannot use ImpersonateServiceAccount because it needs  Admin privileges

So, I always use ImpersonateCurrentUser as you know, I have to supply my credential.


are there any way that I can Deploy the db to the production  with the same impersonation type ImpersonateServiceAccount

as it was before?


thank you

System center service manager



I have a task to create visual web part that creates simple request on System center service manager. Is there any code about that or references?


Trouble installing SSRS 2008 R2, XP Pro SP3, can't access Web Service or Report Manager URLs


I found a great thread by Uday titled "SQL 2008 Reporting Services Win XP SP2" and worked through it, but I am still stumped.

I am using port 8080 cause this was default.  I tried changeing to 80, but it didn't help, so changed back.  IIS is using port 80 and is currently stopped.

I see both databases in SQL Server and can query while logged in as Account that is used for the service account.  SSRS is running. 

URL reservations look good in the rsreportserver.config file.  In Native mode.

While in RS Config Manger I can test database connection and it is good.  When I click the webservice URL or the Report Manger URL in the Config Manager I get errors "Web site can not be found" and "Website can not display page"  I just upgraded to IE 8.  Can't figure out what to do next.

When I use httpcfg.exe I see a URL for http://+:8080/ReportServer/   and http://+:80/Reports/.  This could be the problem.  How can I chages seconfd to port 8080?

Any help would be appreciated.



Register Java-Script Events on SharePoint 2010 Gantt View



did someone of you already try to implement dragging and dropping items in Gantt View for SharePoint 2010?

I was trying to register some JavaScript-Events on the vml-Elements (<v:shape class="jsgrid-vml".../>) representing events in the gantt-view. The problem is that i can not access theese items through DOM... Theese Elements are also not included in the html-code of the page (right click-> view source)...

Before I start to write a SilverLight-WebPart I just wanted to ask, if there are better Ideas...:-)



Register a script block to page without added to view source


Hi Experts,

I want to know do is there any way to register a script block to web page without the script code is added to view source?


Error: The SQL Server Service account does not have permission to register the supplied URL on the e



I've developed a SQL webservice which works absolutely fine on the server but it doesn't work on my VMware. It generates following error:

"The SQL Server Service account does not have permission to register the supplied URL on the endpoint.  Use sp_reserve_http_namespace to explicitly reserve the URL namespace before you try to register the URL again. An error ('0x80070005') occurred while attempting to register the endpoint."

Here's my webservice:

WEBMETHOD 'GetCountries'( NAME=N'[TestDatabase].[dbo].[GetCountries]'
WEBMETHOD 'GetCities'( N

Forefront Identity Manager errors when starting the User Profile Synchronization Service Application

I have seen several people who are having trouble getting the User Profile Synchronization Service to start.  None of those threads have the set of errors that I am seeing.  I have all the prerequisites installed and I am using the farm administrator account which has admin rights both on the SP server and the SQL box.  This is a split back-to-back extranet topology and there is a one way trust between the extranet domain and the internal domain.  The administrator account is an internal domain account.  I receive the following two Forefront errors every five seconds in the event log after starting the User Profile Synchronization Service Application:

.Net SqlClient Data Provider: System.Data.SqlClient.SqlException: HostId is not registered
   at Microsoft.ResourceManagement.Data.Exception.DataAccessExceptionManager.ThrowException(SqlException innerException)
   at Microsoft.ResourceManagement.Data.DataAccess.RetrieveWorkflowDataForHostActivator(Int16 hostId, Int16 pingIntervalSecs, Int32 activeHostedWorkflowDefinitionsSequenceNumber, Int16 workflowControlMessagesMaxPerMinute, Int16 requestRecoveryMaxPerMinute, Int16 requestCleanupMaxPerMinute, Boolean runRequestRecoveryScan, Boolean& doPolicyApplicationDispatch, ReadOnlyCollection`1& activ
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend