COM+ Web Services (ie remoting com+ from IIS)

dotnet framework

    Sponsored Links

    Next

  • 1. Concurrency Help
    I need a little help figuring out how to design my database/web services for a bidding system. I'm not sure how to solve the problem of concurrency. I'll give an analogous example of what the system is supposed to do. In a nutshell, there are 10,000 computers with 10 gigs of hard drive space each, which are sold to the highest bidder in 1 gig chunks. The bidder simply tells me how much they are willing to spend and what state or country the computer should be located in. The system should fill their order if they have the highest bid on a gig with their criteria. How the hell do I assign those chunks to the highest bidder efficiently. The problem with concurrency would be when two or more people are getting data and submitting data at the same time. If its not done synchronously or isn't thread safe, then the amount of available space may be incorrectly read or written, for example. Is there a standard way to solve this type of database/web service design problem?
  • 2. FrontPageExtension and UNC.
    Hi All, I want to deploy my windows service on out production server. I am not completely famililar with frontpageextension and UNc. Can anyone tell me what exactly it means and what is better way of deploying it. I have IIS on my PC where i created virutal directory and in that directory i created windows service. I am confuse what exactly frontpage extension is. Please help me. thanks in advance.
  • 3. Serialization
    I have a Web Service that handles all the logic from my websites. Part of that logic will be the processing of all the cookies. What I want to do is pass a structure that I have created: Public Structure SUserInput Public IsPlacement As Boolean Public ReleaseID As Integer Public IPAddress As String Public BrowserType As String Public Referrer As String Public cCookies As HttpCookieCollection End Structure I get the following error: "The type 'System.Web.HttpCookieCollection' cannot be serialized because its default accessor is decorated with declarative security permission attributes. Consider using imperative asserts or demands in the accessor." I would like to know exactly what this means, I have researched it a bit, but I would really appreciate if someone could help me understand exactly what is going on. Any input will be appreciated. Brian

COM+ Web Services (ie remoting com+ from IIS)

Postby U2hhdW4 » Wed, 17 Aug 2005 18:15:04 GMT

Whilst I await a response for the problem I have getting this working for me 
I would like to ask another question related to enabling COM+ components to 
be called as web services (checking the SOAP checkbox on the activation tab 
of the com+ application properties).

Are there any performance issues with this method, instead of wrapping up 
the classes and exposing webmethods yourself?  If so what can be done to 
minimise these?

All com+ applications in this scenario are c# (managed code).



--------------------------
Shaun Venus

emailid:  sunevnuahs
domain:  hotmail.com
--------------------------

Similar Threads:

1.Com, Dcom, com+, web service questions

Dear al
i have a question about the difference of com, dcom, com+, web servic

First com is some class that can only call by local machine? ex.  vb with dll on locally and asp with dll on server

Second dcom is same as com but it can call by other machine remotelly

third, com+ is added some add-in function to com, such as transaction, resource pooling etc and it can not be call remotely

Fourth, web service is component that can be called by any machine (including unix) with all function with com, dcom, com+

if i want to have a middle-tiers for data access, business logics in asp.net,  what can i write now?

2.How to access the com+ service with .NET Remoting

 How to access the com+ service with .NET Remoting? Any ideas would be appreciated.

     



   
             zhenghuan
              XXXX@XXXXX.COM 

3..Net remoting and Com+ enterprise services problem

Hi,

Here is the situation:
I have business layer that runs as com+ component (server activation), and
it is exposed to clients thru remoting (remoting is configured in simple
host application that runs on the same machine as business layer).
Now I want to transfer some custom data (regarding client credentials) all
the way to com+ component.
I have implemented custom sinks that are responsible for transfering data
from client machine to host application (by transfering client's
Thread.CurrentPrincipal to server and replacing server's
Thread.CurrentPrincipal with client's), but in com+ component
Thread.CurrentPrincipal always returns windows account of host application
(in library activation all works fine, because business layer and host are
in the same process).
Passing data as parameters is out of question, because it could be a
maintenance nightmare (i have 100+ methods in business layer).
I have read bunch of enterprise services and .net framework articles
regarding security, but none seems to address this problem.
BTW this is distributed application where client could be anywhere
(internet, intranet, same computer...), so native com+ autorization isn't
good (because it relies on windows identity of the client).


4.IE COM object within web service

Hi,
can you please help me figure out what I need to do to make IE COM
object (namely, using IEBrowser =
CreateObject("InternetExplorer.Application")) work within the web
service?
I manage to pass the "cannot create COM object" error, by setting the
IE security properties in "dcomcfg.exe", but it seems that IE can't
perform form submit operation on the containing webpage. More
precisely, the IE object is successfuly created, navigates to the
homepage, I supply the values to the form fields, but when I try to
submit the form, it just hangs there forever or times-out eventually.
No need to mention that all this works fine when run from the windows
form app.

Thanks much...
Shone

5.com+ application use soap for web service not work in .net 2.0

I have a vb com+ component and turn it to web service by using check box Use 
Soap.

It was works fine, but after I installed .net 2.0, does not work anymore.

I got the following errors:

System.BadImageFormatException: The format of the file 
'TCSWebServiceWrapperSoapLib' is invalid.
File name: "TCSWebServiceWrapperSoapLib"
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String 
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean 
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, 
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, 
Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Runtime.Remoting.RemotingConfigInfo.LoadType(String typeName, 
String assemblyName)
   at 
System.Runtime.Remoting.RemotingConfigInfo.StartupWellKnownObject(String 
asmName, String svrTypeName, String URI, WellKnownObjectMode mode, Boolean 
fReplace)
   at 
System.Runtime.Remoting.RemotingConfigInfo.StartupWellKnownObject(String URI)
   at 
System.Runtime.Remoting.RemotingConfigHandler.CreateWellKnownObject(String 
uri)
   at System.Runtime.Remoting.RemotingServices.GetServerTypeForUri(String URI)
   at 
System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.CanServiceRequest(HttpContext context)
   at 
System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessRequest(HttpContext context)

Fusion log follows: 
=== Pre-bind state information ===
LOG: DisplayName = TCSWebServiceWrapperSoapLib, Version=1.3.0.0, 
Culture=neutral, PublicKeyToken=d6989d3dbae43cf7
 (Fully-specified)
LOG: Appbase = file:///C:/WINDOWS/system32/com/SOAPVRoots/TCSWS
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file 
(C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from 
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: TCSWebServiceWrapperSoapLib, Version=1.3.0.0, 
Culture=neutral, PublicKeyToken=d6989d3dbae43cf7
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/tcsws/0ce5ad15/9c608073/TCSWebServiceWrapperSoapLib.DLL.
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET 
Files/tcsws/0ce5ad15/9c608073/TCSWebServiceWrapperSoapLib/TCSWebServiceWrapperSoapLib.DLL.
LOG: Attempting download of new URL 
file:///C:/WINDOWS/system32/com/SOAPVRoots/TCSWS/bin/TCSWebServiceWrapperSoapLib.DLL.

How to fix this?

thanks

Kevin Yang


6. calling com+ in a web service

7. Com+ 1.5 exposed as web service

8. http://6lnul.blogspot.com/ http://0n7mu.blogspot.com/ http://uv6pm.blogspot.com/ http://qd6kz.blogspot.com/,http://6lnul.blogspot.com/ http://0n7mu.blogspot.com/ http://uv6pm.blogspot.com/ http://qd6kz.blogspot.com/



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 41 guest