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
B

BillyGoatGruff

@BillyGoatGruff
About
Posts
18
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Accessing MSMQ from Web Service
    B BillyGoatGruff

    Thanks Abhijit, Your understanding of the problem is pretty close, in that the process trying to execute the code is running as a different under IIS than it does under Cassini. I am using IIS 5.0 and so I cannot create a separate app pool, although I can alter bay various means the user that the code runs as. The problem was that regardless of which user I ran it as - I always got the same error message - even when the user was a member of the local and domain administrator groups, and this user had full permissions on the queue. i.e. It is barely possible to assign more rights to a user. It turns out, that using a FormatName for the queue, rather than a path name (myMachine\queueName) has solved the problem... FormatName:DIRECT=OS:myMachine\myQueue I am uncertain as to exactly why this is the case. Reading up has showed that when a path name is used, there is a necessity for an AD lookup, and although I think that the users that I have been testing with should have rights to do this, perhaps there is something missing. However the immediate problem is solved and that's good enough for me. Thanks very much for your response.

    ASP.NET help asp-net sysadmin windows-admin data-structures

  • Accessing MSMQ from Web Service
    B BillyGoatGruff

    I have written a web service that reads from a message queue. This works fine under Cassini. Now that I have deployed the service under IIS, I receive an error message when the service tries to access the queue: The queue does not exist or you do not have sufficient permissions to perform the operation. I have set the anonymous access user on the IIS virtual directory to be my own domain account, which is a member of the administrators group on the local machine. I have granted this same user full permissions on the queue, as well as NETWORK SERVICE and ASPNET. I still get the same error message (The queue does exist and the spelling is correct). I have also tried disabling anonymous access on the virtual directory and connecting to the service using my own login details - to no avail. Any help with this problem will be greatly appreciated! I have also tried various combinations of: Windows authentication, impersonation, local users, domain users, all of them having full permissions on the queue. I have added permissions for the user and ASPNET on the MSMQ store folders on C:\

    ASP.NET help asp-net sysadmin windows-admin data-structures

  • DataViews DataTables and DataGridViews and indexing
    B BillyGoatGruff

    It looks like the CurrencyManager and binding objects are what you're looking for: http://en.csharp-online.net/DataViews_and_Data_Binding%E2%80%94CurrencyManager_and_BindingContext[^] http://msdn.microsoft.com/en-us/library/system.windows.forms.currencymanager.aspx[^] These will ensure that if the two views are bound to the data through the same binding contect and currency manager, that a selection against one view will cause the same selections on the other.

    modified on Monday, December 8, 2008 12:05 PM

    .NET (Core and Framework) database beta-testing json help code-review

  • Configuration - List of key/values without using custom section
    B BillyGoatGruff

    Thanks for all your suggestions. I have decided on the following: Declare a section in app.config ilke this:

    The section then utilised like this: a1 b1 c1 and then accessed in code like this: System.Configuration.ClientSettingsSection sect = (System.Configuration.ClientSettingsSection)System.Configuration.ConfigurationManager.GetSection("SecondaryIdentifiersSect"); foreach (System.Configuration.SettingElement e in sect.Settings) { System.Diagnostics.Debug.WriteLine(e.Name); System.Diagnostics.Debug.WriteLine(e.Value.ValueXml.InnerText); }

    C# tutorial question workspace

  • Deployment.
    B BillyGoatGruff

    Yes that's along the right lines. Generally your project will output a single assembly (exe / dll). That assembly may have some requirements that need to be created at installation time - in your case, registry entries. So you build an installer class into each assembly, which handles the requirements for that assembly. So your installer class in this case, will read the parameters that are passed to it from the msi (which the user typed into the msi gui). It will then use these parameters when creating the registry entries. The assembly in question needs to be added to the custom actions - this is how the msi knows to look into that assembly and find the installer class and call its methods. The mapping between the msi gui fields and the CustomActionData property of the custom action in the deployment package designer is something like this: /MasterClientID=[MASTERCLIENTID] /LoggingPath=[LOGGINGPATH] /LogMsgsPath=[LOGMSGSPATH] /LogDbConnStr=[LOGDBCONNSTR] The code for retrieving the parameters in the installer is something like this:

    public override void Commit(IDictionary savedState)
    {
    string mstrClientId = Context.Parameters["MasterClientID"];
    string loggingPath = Context.Parameters["LoggingPath"];

    C# csharp visual-studio sysadmin windows-admin help

  • Configuration - List of key/values without using custom section
    B BillyGoatGruff

    Ahhh... I've just re-read your post. Properly this time :-O Do you think it is possible to use a datatable as a Type for a custom config section? The solution is quite committed to using app.config and System.Configuration. I wouldn't want to have to have a second xml file containing the serialised datatable - so I'd need to get it into app.config somehow... Thanks again, Rob.

    C# tutorial question workspace

  • Configuration - List of key/values without using custom section
    B BillyGoatGruff

    Hi, Thanks for the suggestion. Unfortuantely using a database is not really viable for this particular problem, as some of the components involved are deployed at customers' premises. I don't want to add the complexity of deploying a database engine etc. Thanks, Rob.

    C# tutorial question workspace

  • Deployment.
    B BillyGoatGruff

    Hi Stephen, You will need to add an installer class to one of the assemblies that you are installing. Windows installer calls into this during the running of the msi. You can put .net code in this class to do pretty much whatever you need to do. This link should get you going on the right track. http://msdn.microsoft.com/en-us/library/system.configuration.install.installer.aspx[^]

    C# csharp visual-studio sysadmin windows-admin help

  • Configuration - List of key/values without using custom section
    B BillyGoatGruff

    I'd like to include a list of values in my app.config file that has no specific length. I don't want to use "Setting 1" "Setting 2" etc. for obvious reasons. I could define a type that wraps a List for example and use this as the type for a custom section... However this seems a little over the top. I am also dealing with a distributed system that has various components, and so I would like to avoid having to make that type available to in all of them. Does anybody know a lightweight way of achieving this that is already part of the framework / System.Configuration namespace? Thanks

    C# tutorial question workspace

  • Change destination column names in Snapshot Replication
    B BillyGoatGruff

    Does anybody know if it is possible to change the name of the column in the subscribers table when using Snapshot Replication?

    Database question

  • Despair :( - ODBC Behaves differently in COM+ Application [modified]
    B BillyGoatGruff

    The bug was caused by me having only one pair of eyes. Adding another 2 eyes to the code revealed... That If you use the ODBCParameter object, and the sourceColumn property contains a leading space... Things don't work.

    Database com help question announcement

  • Despair :( - ODBC Behaves differently in COM+ Application [modified]
    B BillyGoatGruff

    I have written a data access layer running under com+ Using the IBM Informix ODBC driver, I am able to select from a table with no problems, when I attempt to updtate the table, the error I receive is "Invalid string or buffer length" (all my googling seems to indicate that this message may have something to do with parameters) I have set up a test application that performs identical operations to the com+ app. These are: . Open Connection . Create a select command . Fill dataset adapter using select command and adapter . Alter 1 single field in a single row . Create an update command . Call adapter.update Now here's the weird thing. The test app works fine, the com+ app fails. When I compare the SQLTrace between the 2 applications. The test application which works, generates many, many more ODBC instructions than the failing com+ app. Each application is performing the identical workload through the same driver using the same the system.data.odbc objects. Does anybody have any ideas? I've been banging my head against this for a while now and have no idea what to try next. Much thanks. -- modified at 3:35 Wednesday 10th January, 2007

    Database com help question announcement

  • Send Binary File as response to webservice
    B BillyGoatGruff

    Ah-Ha !!! LightBulb ! You Guys ROCK!!! Many Thanks :-D

    ASP.NET database question

  • Send Binary File as response to webservice
    B BillyGoatGruff

    Thanks for the idea, I gave it a whirl using an MP3 file with nonsense extension ".qwe" - IE just wrote the bytes' ASCII equivalents to the page... It seems to behave the same with Response.WriteFile and Response.TransmitFile If you could provide an example of where you've done this before that would be super. What I'm after is to get the browser to popup its normal... "What would you like to do with this file?... Download / Run?", dialogue.

    ASP.NET database question

  • login using IE Fails
    B BillyGoatGruff

    I think that if you Disable "Anonymous Access" and Enable "Integrated Windows authentication"; on the IIS virtual directory, it will solve this. "NT AUTHORITY\NETWORK SERVICE" is probably the user specified for anonymous access.

    ASP.NET csharp asp-net database visual-studio sysadmin

  • Send Binary File as response to webservice
    B BillyGoatGruff

    I am building a web survey type tool. There is a "reward download" for completing the questionnaire. The Questionnaire result / answers are submitted to a web service, to be stored in the db. What I would like to do, is once the db work is complete - to "send" the file to the client. The files are stored in DB BLOBs. I'd like to avoid writing them to disk (especially FTP-ing them somewhere and then redirecting the client to the file - that just seems messy...) I'd like to cause an http response whereby the user sees the browser's standard file download dialogue?

    ASP.NET database question

  • Performance Profiling in Production environment
    B BillyGoatGruff

    I found the tool for the Job :) AQTime profiler has a feature whereby you can specify calls to particular methods as triggers to take profiling snapshots or start/stop profiling.

    IT & Infrastructure performance debugging question learning workspace

  • Performance Profiling in Production environment
    B BillyGoatGruff

    I need to profile an application in a production environment, that seemingly randomly, once a month or so, throws it's toys out of the cot and runs the processors at 100% utilisation for a few minutes, and then goes back to normal. I'm looking for a profiling tool that will take snapshots at intervals or profile continiously and provide a histogram type view of resource usage per method. Anybody seen anything like this or done anything like this?

    IT & Infrastructure performance debugging question learning workspace
  • Login

  • Don't have an account? Register

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