Problem Silverlight Application Hosting
BOSL said 1 year ago:
I have developed a application which tries to connect to sql server database and displays data in silverlight application with silverlight enabled wcf service,
everything was working great in local machine After that i have change my connection string with remote server and database name
Like( Data Source=174.36.80.38,1750;Initial Catalog=DB2132_iSBBackoffice;User ID=DB2132;Password=******* ) it is also same database which i test in local server.
and i was ready to deploy on to our godaddy server. But when i have deployed my silverlight application on to godaddy server my silverlight user interface is working fine but when i browse my wcf services it gives me following error:
Server Error in ‘/test’ Application.
There is no build provider registered for the extension ‘.svc’. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value ‘Web’ or ‘All’.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: There is no build provider registered for the extension ‘.svc’. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value ‘Web’ or ‘All’.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
After that modify web.config file below the code:
<buildProviders>
<remove extension=”.svc” />
<add extension=”.svc” type=”System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089″ /> </buildProviders>
Then browse my silverlight application and got some error:
Server Error in ‘/test’ Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The element ‘buildProviders’ cannot be defined below the application level.
Source Error:
Line 31: <compilation debug=”true”>
Line 32:
Line 33: <buildProviders>
Line 34: <remove extension=”.svc” />
Line 35: <add extension=”.svc” type=”System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089″ />
Source File: D:Hosting6242877htmltestisbweb.config Line: 33
JasonP said 1 year ago:
@umbertoii
Sorry to hear that you are getting errors with your application. While I am unable to review the files for the site, here is a link that may help you:
http://forums.asp.net/p/1003713/1327386.aspx
If further assistance is required, I would recommend contacting our Support Team directly to review the hosting account.
Jason
BOSL said 1 year ago:
Dear JasonP
Thak you for your reply, Still now i am facing some problem. After getting your reply i have following changes: Below my web.config file
<?xml version=”1.0″?>
<configuration>
<buildProviders>
<remove extension=”.svc” />
<add extension=”.svc” type=”System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089″ />
</buildProviders>
…………
…………
<connectionStrings>
<add name=”iSBBackOfficeEntities” connectionString=”metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="Data Source=174.36.80.38,1750;Initial Catalog=DB2132_iSBBackoffice;User ID=DB2132;Password=******;MultipleActiveResultSets=True"” providerName=”System.Data.EntityClient” />
</connectionStrings>
<system.web>
<customErrors mode=”Off”/>
<compilation debug=”true”>
<!–<buildProviders>
<remove extension=”.svc” />
<add extension=”.svc” type=”System.ServiceModel.Activation.ServiceBuildProvider,System.ServiceModel, Version=3.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089″ />
</buildProviders>–>
</compilation>
…….
…….
My application web link:http://www.istockbroking.com/test/isb/InvestorProfileTestPage.aspx
After browsing above link it will show this error: 500 (Internal Server) Error
In this case what should i do.
JasonP said 1 year ago:
@BOSL
Thank you for the additional information. As the 500 error is showing, please enable the detailed erroring on the account:
How do I enable Windows hosting accounts to show more detailed error messages?
Jason
6 min expected wait time