Foros del Web » Programación para mayores de 30 ;) » .NET »

Referencias a COM en VS.NEt

Estas en el tema de Referencias a COM en VS.NEt en el foro de .NET en Foros del Web. Que hay de nuevo, tengo una duda en cuanto al uso de referencias a COM en VS.Net, esta medio enredado ojala y me entiendan. En ...
  #1 (permalink)  
Antiguo 11/10/2005, 08:22
 
Fecha de Ingreso: agosto-2004
Ubicación: Mexico
Mensajes: 49
Antigüedad: 19 años, 8 meses
Puntos: 1
Referencias a COM en VS.NEt

Que hay de nuevo, tengo una duda en cuanto al uso de referencias a COM en VS.Net, esta medio enredado ojala y me entiendan. En mi maquina tengo un proyecto que hace referencia a Interop.Excel.dll, esta misma aplicacion la coloque en un servidor. En mi máquina el path de esa referencia es C:\Documents and Settings\user.Name\VSWebCache\MachineName\Applicat ionName\obj\Interop.Excel.dll y lógicamente este path no existe en el servidor. Mi pregunta es ¿Si el path COM no existe en el servidor genera algun problema? o ¿dentro del servidor debe estar el componente en el mismo path que en mi máquina?.
Pregunto esto porque cuando ejecuto la aplicacion en el servidor se generá un error que dice:

Access is denied.
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: Access is denied.

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 write 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.

Estuve checando y segun lo que encontre solo hay que darle derechos a la cuenta de asp.net sobre la dll, pero ya lo hice y sigue el mismo problema. Cualquier ayuda será bien recibida, gracias chavos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:36.