.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > Text To Speech Com object error.
 

Text To Speech Com object error.

Hi All !

I am developer of the site www.buzzmenow.net

i have a web application folder"Members" in root directory where i am using a Text to speech Convertion code.Application is running well & generation speech on my local server(windows XP with MS .Net 2003).

But when i uploaded the site on live server I am getting the following error.

I have alsovisited many forums but never got aexact solution.

Please help me.. I am really getting frustrated.

Thanks in advance....

Server Error in '/members' Application.

Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80070005.

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.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80070005.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

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.

Stack Trace:

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80070005.]
   TextToWavLib.Converter.TextToWav(String inputText, String filePath, String voiceIdString) +504
   Buzzmenow.members.MemberModule.callsetup.GenerateVoice(String theText) +231
   Buzzmenow.members.MemberModule.callsetup.btnsubmit_Click(Object sender, EventArgs e) +605
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


Version Information:Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Praveen Ratnakar

Many hosting providers host applications with restricted permissions. It appears that your hosting provider has not granted your application the permissions necessary to succesfully use your COM object from their hosted environment. You should raise the issue with your hosting provider and ask about options for full-trust hosting.
-steve


Brain.Save() -- http://hyperthink.net/blog
Steve Maine

You may want to ask this question in IIS related forum. This is forum for SourceSafe related questions.

Looking at the error message however it seems that you do not have impersonation turned on for your web site. Your web service is likely running under Network Service account which is likely does not have proper rights to the DLL you are trying to use.

Roman Golovin MSFT

Hi Roman!

Thanks a lot for your reply.

I have also posted it in IIS related forum but didn`t get any reply till yet.

My site is hosted on Discountasp.net.

What should i do for the permission?

Please help me if you have any idea.

Thanks

Praveen Ratnakar

You are trying to make your web service to execute some code from the DLL. I’d say you need to configure impersonation (just like it says in the error message), turn anonymous user off and set file access permissions to this DLL(s) so that users of your web site can read and execute it. If you need anonymous access to this web site then Network Service user must have read and execute access to this DLL. It does not sound good from the security point of view though�/font>

Roman Golovin MSFT
Hi Ratnakar,

I am also in the process of creating a Webservice which will convert the Text to Voice.
Cld u share me your Code
nikesh_k

Many hosting providers host applications with restricted permissions. It appears that your hosting provider has not granted your application the permissions necessary to succesfully use your COM object from their hosted environment. You should raise the issue with your hosting provider and ask about options for full-trust hosting.
-steve


Brain.Save() -- http://hyperthink.net/blog
Steve Maine

You can use google to search for other answers

Custom Search

More Threads

• error : R2304: Operation name overloading-webservice
• an externally defined array of structs as a parameter to a web service?
• Transfer large zipped file by MTOM or FTP?
• SOAP Validation Tool?
• Casted object still the old type???
• WSE 2.0 SecureConversation and Routing
• are you missing a using directive or an assembly reference?
• Add items to a checkbox by using a button control handler
• About Web Serivces articles?
• XML Serialization/Deserialization with an already Serializated/Deserializated element