Writing services in vb net

I get the following error when I attempt to install th service on my local XP machine:
Unable to create an instance of the installer type.
: Exception has been thrown by the target of an invocation.
The inner exception was thrown with the following error message: Security error..
Installing assembly 'h:\my documents\visual studio projects\mbservice\bin\'.
Affected parameters are:
assemblypath = h:\my documents\visual studio projects\mbservice\bin\
logfile = h:\my documents\visual studio projects\mbservice\bin\

Once you've added all this you will still need to complete steps 3 & 4 before the custom assembly will work. 3. Assert the required permissions as part of the method in which the secure call is made. This is required because the custom assembly code that is called by the report server is part of the report expression host assembly which runs with Execution by default. The Execution permission set enables code to run (execute), but not to use protected resources.

4. Mark the custom assembly with the AllowPartiallyTrustedCallersAttribute. This is required because custom assemblies are called from a report expression that is a part of the report expression host assembly, which by default is not granted FullTrust, thus is a 'partially trusted' caller. For more information, see "Using Strong Named Custom Assemblies," earlier in this document.

Writing services in vb net

writing services in vb net

Media:

writing services in vb netwriting services in vb netwriting services in vb netwriting services in vb net