Answered Service Generate Errors...

  • lunes, 28 de mayo de 2012 15:10
     
      Tiene código

    Hello there,

    i'm writing a service, for one of my projects, i couldn't test it normally, so i tried to publish and then install, so i did as i said, i publish the server, into my desktop... then there was a setup, so i launch it...

    an error then happen, and inside it, there was a details file said the DLL is already exist, or may even more thing i didnt understand...

    can any one help me what to do?

    The text is as following:

    PLATFORM VERSION INFO
    	Windows 			: 6.1.7601.65536 (Win32NT)
    	Common Language Runtime 	: 4.0.30319.239
    	System.Deployment.dll 		: 4.0.30319.1 (RTMRel.030319-0100)
    	clr.dll 			: 4.0.30319.239 (RTMGDR.030319-2300)
    	dfdll.dll 			: 4.0.30319.1 (RTMRel.030319-0100)
    	dfshim.dll 			: 4.0.31106.0 (Main.031106-0000)
    
    SOURCES
    	Deployment url			: file:///C:/Users/Hassan/Desktop/FileEventReaderService/FileEventReaderService.application
    	Application url			: file:///C:/Users/Hassan/Desktop/FileEventReaderService/Application%20Files/FileEventReaderService_1_0_0_0/FileEventReaderService.exe.manifest
    
    IDENTITIES
    	Deployment Identity		: FileEventReaderService.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c46e2ccf84ecefb0, processorArchitecture=x86
    	Application Identity		: FileEventReaderService.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c46e2ccf84ecefb0, processorArchitecture=x86, type=win32
    
    APPLICATION SUMMARY
    	* Installable application.
    
    ERROR SUMMARY
    	Below is a summary of the errors, details of these errors are listed later in the log.
    	* Activation of C:\Users\Hassan\Desktop\FileEventReaderService\FileEventReaderService.application resulted in exception. Following failure messages were detected:
    		+ Downloading file:///C:/Users/Hassan/Desktop/FileEventReaderService/Application Files/FileEventReaderService_1_0_0_0/LicenceClient.dll.deploy did not succeed.
    		+ The file 'C:\Users\Hassan\AppData\Local\Temp\Deployment\Z66ZQ375.288\8L9T9BNH.Y6Y\LicenceClient.dll' already exists.
    
    COMPONENT STORE TRANSACTION FAILURE SUMMARY
    	No transaction error was detected.
    
    WARNINGS
    	There were no warnings during this operation.
    
    OPERATION PROGRESS STATUS
    	* [5/28/2012 7:40:19 PM] : Activation of C:\Users\Hassan\Desktop\FileEventReaderService\FileEventReaderService.application has started.
    	* [5/28/2012 7:40:20 PM] : Processing of deployment manifest has successfully completed.
    	* [5/28/2012 7:40:20 PM] : Installation of the application has started.
    	* [5/28/2012 7:40:20 PM] : Processing of application manifest has successfully completed.
    	* [5/28/2012 7:40:22 PM] : Found compatible runtime version 2.0.50727.
    	* [5/28/2012 7:40:22 PM] : Detecting dependent assembly Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil using Sentinel.v3.5Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil.
    	* [5/28/2012 7:40:22 PM] : Detecting dependent assembly System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil using System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=msil.
    	* [5/28/2012 7:40:22 PM] : Request of trust and detection of platform is complete.
    
    ERROR DETAILS
    	Following errors were detected during this operation.
    	* [5/28/2012 7:40:22 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
    		- Downloading file:///C:/Users/Hassan/Desktop/FileEventReaderService/Application Files/FileEventReaderService_1_0_0_0/LicenceClient.dll.deploy did not succeed.
    		- Source: System.Deployment
    		- Stack trace:
    			at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    			at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
    			at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
    			at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
    			at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
    			at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
    			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    			at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    		--- Inner Exception ---
    		System.IO.IOException
    		- The file 'C:\Users\Hassan\AppData\Local\Temp\Deployment\Z66ZQ375.288\8L9T9BNH.Y6Y\LicenceClient.dll' already exists.
    		- Source: mscorlib
    		- Stack trace:
    			at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    			at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
    			at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
    			at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
    
    COMPONENT STORE TRANSACTION DETAILS
    	No transaction information is available.
    
    

Todas las respuestas

  • lunes, 28 de mayo de 2012 15:19
     
     

    Don't know what you're coding in but might ask them here.

    http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • lunes, 28 de mayo de 2012 15:43
     
     
    it's the Error text s not what i code :|
  • lunes, 28 de mayo de 2012 15:49
     
     

    For interpretation of the errors generated I'd ask in one of the groups for the coding language you used.

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • lunes, 28 de mayo de 2012 19:18
     
     
    but the error is not about what i program, but is about the code package (dll) i put inside it
  • lunes, 28 de mayo de 2012 20:32
     
     

    I'd still ask them here.

    http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • lunes, 28 de mayo de 2012 21:11
     
     
    just move it to the right location, i'm not knowing here well, so the answer have more priority for me ...

    thank you
  • lunes, 28 de mayo de 2012 21:13
     
     
    ah, sry, i didnt get your first post first time, you know , my language is not much good, yea i think you were right, just move it there, i'm goin to sleep, got classes tomorrow till the night :|
  • lunes, 28 de mayo de 2012 21:26
     
     

    We still don't know the programming language you're coding in. Also I'm not a mod here so can't move it anyway. You can just post again somewhere here.

    http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • martes, 29 de mayo de 2012 8:51
     
     
    ah, sry, i didnt get your first post first time, you know , my language is not much good, yea i think you were right, just move it there, i'm goin to sleep, got classes tomorrow till the night :|

    I can move it to a particular forum, but not a category. You'll need to specify a forum.

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

  • martes, 29 de mayo de 2012 9:18
     
     

    it's related to packagin, and publishing of software, and not make a setup for it :|

    BTW, wait a second , i make a setup, instead of publish, it may work :-/

  • martes, 29 de mayo de 2012 9:28
     
     
    no it didnt worked, seem even packaging of a service is different than a application :|
  • martes, 29 de mayo de 2012 21:36
     
     

    it's related to packagin, and publishing of software, and not make a setup for it :|

    BTW, wait a second , i make a setup, instead of publish, it may work :-/

    Was there a "best" forum to move this to in that category?

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

  • martes, 29 de mayo de 2012 21:55
     
     

    Looks like the user is publishing via ClickOnce, however service registration is not possible via ClickOnce. The user needs to switch to another publishing method such as MSI.

    http://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads is for ClickOnce and Visual Studio Setup project question.




    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

  • martes, 29 de mayo de 2012 22:30
     
     
    man i'm not really sure , what it can be place, but between those it seem to be related to :

    Visual Studio Setup and Installation

    Discuss and ask questions about the install and setup of Visual Studio.

  • martes, 29 de mayo de 2012 23:34
     
     

    Deadman, I can move it to VS Setup or to Sheng's suggestion, WinForm Setup. Do you have a preference?

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

  • miércoles, 30 de mayo de 2012 0:33
     
     

    Deadman, I can move it to VS Setup or to Sheng's suggestion, WinForm Setup. Do you have a preference?

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    it's not win form, it's server based...
    and i dunno what sheng mean ...

    so i prefer the first

  • miércoles, 30 de mayo de 2012 0:50
     
     

    The VS Setup forum is for help in installing Visual Studio, not for help in solving issues in deploying your software. That is the wrong forum to ask questions about writing software or installer programs.

    The forum I suggested covers ClickOnce as well as Setup Projects, it is the only MSDN forum for desktop app deployment. it has an alias and category that does not match its description.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP



  • miércoles, 30 de mayo de 2012 11:05
     
     

    The VS Setup forum is for help in installing Visual Studio, not for help in solving issues in deploying your software. That is the wrong forum to ask questions about writing software or installer programs.

    The forum I suggested covers ClickOnce as well as Setup Projects, it is the only MSDN forum for desktop app deployment. it has an alias and category that does not match its description.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP



    BTW as you can see, it's service, and as you said your self, ClickOnce wont help for this :|
  • jueves, 31 de mayo de 2012 3:53
     
     

    BTW as you can see, it's service, and as you said your self, ClickOnce wont help for this :|

    I think what he meant was that it will help, but it has a misleading name and category (which is why it seems like it wouldn't help). So I think the WinForm Setup forum is our recommendation. Shall I  move it there?

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

  • jueves, 31 de mayo de 2012 19:01
     
     
    if isn't there any thing about service installation... tnx :)
  • jueves, 31 de mayo de 2012 22:05
     
     

    If you are using visual studio setup project to create your setup program, you can ask in the setup project forum.

    If you use other tools such as InstallShield or WIX then you need to ask in forums for the tools.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

  • viernes, 01 de junio de 2012 13:26
     
     
    first i did publish,
    next
    over project solution, add new project-> other project type->setup and deployment->visual studio installer-> <right window> setup project / setup wizard
    and i never used installShield
  • sábado, 02 de junio de 2012 9:03
     
     Respondida

    If you choose publish, you are creating a clickonce package which does not support service installation

    To install a service using Setup Project, you create a service installer in your project. However you lose some benefits ClickOnce provides. 



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    • Marcado como respuesta deadManN sábado, 02 de junio de 2012 20:16
    •  
  • sábado, 02 de junio de 2012 11:26
     
     
    can you guide me with a sample
  • sábado, 02 de junio de 2012 15:41
     
     Respondida
    If you want a service installer using Setup Project, the sample is already linked above. If you want a service installer using ClickOnce (you call it "publish"), sorry that is not supported.


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    • Marcado como respuesta deadManN sábado, 02 de junio de 2012 20:16
    •  
  • sábado, 02 de junio de 2012 20:17
     
     
    tnx man
  • sábado, 02 de junio de 2012 21:17
     
     

    i'm wonder how to reach to you, so i post here,
    may you inspect this thread? i need more help...

    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/20d442af-5595-41fd-8035-99a98057c771

    sry for my bad english lang