Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

agent00zelda

@agent00zelda
About
Posts
21
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ClickOnce InvalidDeploymentException
    A agent00zelda

    Hello. I've got a bit of a strange error and I can't seem to find much information about ways to fix it. I have a ClickOnce deployed application that is accessed by multiple clients, all with various Windows operating systems. It seems this error only occurs for those with Windows XP, but not for all Windows XP users. I have a timer that kicks off every 10 minutes that makes a call to ApplicationDeployment.CurrentDeployment.CheckForUpdate(). Within this call, I get the exception -- Error: System.Deployment.Application.InvalidDeploymentException: Exception reading manifest from http://server/AppName.Client.application: the manifest may not be valid or the file could not be opened. ---> System.Deployment.Application.InvalidDeploymentException: Deployment manifest is not semantically valid. ---> System.Deployment.Application.InvalidDeploymentException: The name of the application reference identity as invalid characters: AppName.Client.exe. at System.Deployment.Application.Manifest.AssemblyManifest.ValidateApplicationDependency(DependencyAssembly da) at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole() --- End of inner exception stack trace --- at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole() at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType) at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri) --- End of inner exception stack trace --- at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri) at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri sourceUri, TempFile tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation serverInformation) at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri sourceUri, TempFile tempFile, IDownloadNotification notification, DownloadOptions options) at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile tempDeploy, TempDirectory tempAppDir, FileStream refTransaction, String productName) at System.Deployment.Application.DeploymentManager.Bind() at System.Deployment.Application.ApplicationDeployment.CheckForDetailedUpdate() at System.Deployment.Application.ApplicationDeployment.CheckForUpdate() at AppName.Client.MainFor

    .NET (Core and Framework) sysadmin help data-structures debugging

  • Amazon Web Services
    A agent00zelda

    Click the link, watch, wait a moment, and you'll have your answer(s)

    C# wcf help question

  • Convert Time
    A agent00zelda

    From the code you posted and the error you say you are getting, I think your brackets are off. You should have { } wrapped around your class methods (Main and ConvertTime) and also to enclose them.

    C# help

  • replacing new lines and tab spacing with a single space
    A agent00zelda

    One suggestion would be to check out the members of the StreamReader and StreamWriter classes, along with sample code. Try using Read() or ReadLine() instead of the ReadAllLines() in your while loop condition. http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx[^] http://msdn.microsoft.com/en-us/library/system.io.streamwriter.aspx[^] Also, you might want to consider copying the data as you read it to a new text file and overwriting the old one when you are finished. And don't forget to close the filestreams when complete.

    modified on Monday, April 20, 2009 10:49 AM

    C# help question

  • Stopping a Windows Service in a Timely Manner...
    A agent00zelda

    Thank you for your response!!

    PIEBALDconsult wrote:

    Can those be in their own Services?

    Actually, yes, and they are.. I guess I should have mentioned that part :) The way I had it implemented before I made the initial post was I pretty much let it finish everything until it was able to submit the data to the other services. But Windows spazzed out because it couldn't stop the main service until it finished the preceding operations. What I ended up doing was defining like a project "state" DataTable that could be exported and imported again when the service restarts. Your suggestion was well-taken -- pretty much made the current operation finish and then updated the project state based on that. I don't know if using a DataTable is the best approach, but it seems to work much better, since it takes considerably less time to stop the service. Still open to suggestions if you or anyone can think of a better approach, though!! I guess I'm in a C# experimentation phase :)

    C# csharp question

  • Problem in disabling close button(X) of window.
    A agent00zelda

    Looks like they are constants, found this site which describes them and how to use them, hope it helps... http://msdn.microsoft.com/en-us/library/aa929762.aspx[^]

    C# help json tutorial question

  • Stopping a Windows Service in a Timely Manner...
    A agent00zelda

    Hello! I recently started writing my first Windows Service project in C#, and I'm at a point now where I have a lot of time to perfect things before I continue. I was wondering what's considered generally "good practice" with regards to Windows Services. Specifically, the stopping mechanism. When my service starts, it kicks off a few threads that perform some file manipulation. When the service stops, I want it to shut those threads down gracefully. Ideally, shutting down the service puts the file system in a state where the manipulation can be easily resumed upon restarting the service. So, when shutting down the service, I'd prefer to let one of the threads (if it's currently doing work) finish the works it's already started, but in some cases, this can take several minutes. Is this considered bad practice, or is this something I shouldn't really be concerned with? Are there other things anyone thinks I should consider?

    C# csharp question

  • Read xml file which has multiple tables
    A agent00zelda

    Dunno if this is the sole reason, but your column tags don't exactly match up... ... ... instead col2 and col3 should be capitalized, Col2 and Col3, to match

    C# xml

  • Dataset for customizable project settings??
    A agent00zelda

    Thank you both for your responses. The resources and general information you gave will keep me busy and are a great starting point. Thanks so much!

    C#

  • Dataset for customizable project settings??
    A agent00zelda

    Hello! I am writing a Windows service that requires various user-defined settings in order to work. The solution uses multiple class libraries which are all linked with these user-defined settings. A coworker suggested that I use a dataset to do this, but being new to C#, I'm not exactly sure how I would go about doing this. I think I get the concept of a dataset, but I don't particularly understand how the service would know that the settings were changed after the service has been built, installed, and started. The searches I've done today haven't really given me any relevant information, and I was hoping that somebody could point me in the right direction with a source or suggestion? Any help would be greatly appreciated :)

    C#

  • To string or not to string
    A agent00zelda

    I came across this article a few weeks ago, take a look and hopefully it will help... http://msdn.microsoft.com/en-us/library/ms173196.aspx[^]

    C#

  • Uploading a file but zero bytes are shown
    A agent00zelda

    Unless you are doing this with C#, I think this is the wrong board for this question...

    C#

  • how a dataset can transfer from server to client using socket programming in C#
    A agent00zelda

    http://msdn.microsoft.com/en-us/library/system.net.sockets.networkstream.aspx

    C#

  • Creating local database on sql server
    A agent00zelda

    You should be able to connect to the localhost with windows authentication mode. Once you connect you can create databases and such. Doe sit give you an error message when you try to connect to the localhost?

    Database

  • Help in Export Data
    A agent00zelda

    There is a section on this page specifically for exporting to .xls files with other configurable settings... http://msdn.microsoft.com/en-us/library/ms227794.aspx

    C#

  • Client and Server Program
    A agent00zelda

    I am new to C# so I've been browsing the MSDN libraries to see how to use certain classes. After reading your post, I looked for and found the description of the UdpClient class. http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.aspx There are examples on that site, but specifically you need to close your server connection, as the others were telling you. So, somewhere before the user closes the program, you have to call server.Close() I would recommend a finally block in your receive() method and closing the server there. But you would have to define server before the try block for this to work.

    C#

  • Threading in C# with a Console Application
    A agent00zelda

    Thanks SO much... I don't know why it didn't dawn on me to use a while(true) statement... silly me! But thank you, that helps a lot!!

    C# csharp java help question learning

  • Threading in C# with a Console Application
    A agent00zelda

    Hello. I'm new to C# (switched from Java) and I am trying to see if there is a way to keep a thread running indefinitely, with no timeout. I have a console application written, but I need it to run more like a windows service in that I want all threads to run until they are told to stop. Is there a special class that will help with this, or does anyone know of a good resource that I can learn more about this specifically??

    C# csharp java help question learning

  • Handling File Events in C#
    A agent00zelda

    Thank you, that helped clarify some of the event concepts for me. I guess I'm wondering now whether the filesystemwatcher acts as a thread... meaning does it listen indefinitely while the main program works until it hears something? Or does it have to be wrapped in a thread to do so?

    C# csharp java learning

  • Handling File Events in C#
    A agent00zelda

    Hello. I am new to C# (used Java originally), and I was wondering what would be the best way to handle file events in a console application. Specifically, I need to monitor a bunch of directories to see if new files are being added, and then do something with them if so. I guess I'm confused because I need to thread the watchers, but am unsure how/where to handle their corresponding events. I have been looking around for resources but am coming up on threading samples and event samples but not any combination of the two and so I don't know exactly where to start. If anybody has a suggestion or resource, I would greatly appreciate it!!

    C# csharp java learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups