Serviced Component
-
hi, i created a serviced component but i cant run the program it says: Access is denied. and i cant send a message to the application log. i even tried shutting down the serviced component in the com+ catalog, i just installed it in assembly (using gacutil.exe) but i'm still getting the error and no message is being created on the application log. i tried configuring my HKEY_.... but nothing happened :sigh:....please help!
-
hi, i created a serviced component but i cant run the program it says: Access is denied. and i cant send a message to the application log. i even tried shutting down the serviced component in the com+ catalog, i just installed it in assembly (using gacutil.exe) but i'm still getting the error and no message is being created on the application log. i tried configuring my HKEY_.... but nothing happened :sigh:....please help!
Hello There What you are doing is creating a reference by the keyword New like Dim obj as new myproject.Myclass but infact you have to use this dim obj as object obj=createObject("myproject.myclass") ' secondly are you registering the component through Vs.Net Command prompt. then dont do that. I had a problem with this that even if there is some thing wrong with the component it registers it by force. so register it through Component Service in GUI environment. hope this helps.. if not then I am still here cheers........
-
Hello There What you are doing is creating a reference by the keyword New like Dim obj as new myproject.Myclass but infact you have to use this dim obj as object obj=createObject("myproject.myclass") ' secondly are you registering the component through Vs.Net Command prompt. then dont do that. I had a problem with this that even if there is some thing wrong with the component it registers it by force. so register it through Component Service in GUI environment. hope this helps.. if not then I am still here cheers........
thanks for your reply :) i figured it out already i unchecked the Enforced acess check box in the service component i created. i thought registering it in the command prompt is safe...oh well still need to learn a lot of things... btw, do you know how can i create a new table in a sql server database?
-
thanks for your reply :) i figured it out already i unchecked the Enforced acess check box in the service component i created. i thought registering it in the command prompt is safe...oh well still need to learn a lot of things... btw, do you know how can i create a new table in a sql server database?
for creating a table use the same way as you use to execute any query for insert or update. like this ' where cmd is command object cmd.commandtext=="Create table tablename ....." cmd.executenoquery()