1. fopen() problems: permission denied

    Date: 02/08/06 (PHP Community)    Keywords: php, xml, web

    I am trying to make a short script that will generate an XSPF/XML file based upon the names of mp3 files that are in a particular directory. It will be a dynamic playlist that automatically updates. I am using it with the XSPF Web Music Player, an open source flash-based mp3 player.

    Anyway, I am pretty sure that I need to use the fopen() function. When I use it in my script a warning is generated:

    Warning: fopen(playlist2.xspf): failed to open stream: Permission denied in /var/www/......./playlist_generator.php on line 43

    now, I think I can fix this with the CHMOD command, but my question is what is the exact command ie which code should i use? I need to do this through the FTP program in the windows console.

    Any tips would be much appreciated!

    Source: http://community.livejournal.com/php/409678.html

  2. Object behind bindingsource never changing.

    Date: 02/07/06 (C Sharp)    Keywords: database, sql, web

    C# 2005 Express Edition.

    Okay, quickest way to explain this situation: I have a DataGridView attached to a local Access database. The DGV pulls in three columns. My goal here is to get changes in the columns to update to the table automatically a la an open Access table window (or SQL Server Entierprise Manager or FoxPro or... you know). I started with the code in this CodeProject article.

    The first change I've had to make to it is that it seems I have to instantiate the tableadapter before calling its Update() method. All well and good, though I'm not sure I did it correctly. Make the change, run again, and same result: I can change stuff to my heart's content in the DataGridView, but none of the changes are propagated to the database. I added the MessageBox you see in the UpdateRowToDatabase method; it never fires.

    My question (again assuming I instantiated the tableadapter correctly): do I also need to instantiate the bindingsource? If so, how, because I can't find anything about it anywhere online or in the help files?

    If not, can someone give me some idea of what it is I'm doing wrong? Thanks.


    Problem solved, thanks to '[info]'109. Except for one oddity I'm going to go squash now...

    EDIT2: bloody hell. I THOUGHT I had it...

    sequence of events.
    1. Fire up proggy.
    2. Change a few rows, varying what I change in any given row.
    3. With each change, event fires. (This is a major step forward, anyway.)
    4. Close form.
    5. Open form again (from the main form that calls it).
    6. Look for changes. They are still there.
    7. Exit program.
    8. Start program again.
    9. Open form.
    10. Check for changes made when program was previously running... and they're not there.
    (I've also gone in through Access and looked; the changes are not propagating.)

    It looks as if the ThisCategoriesTableAdapter.Update(LastDataRow) command is updating the DataSet rather than the database itself. But everything I've seen on MS' website says specifically that the Update command will, in fact, update the database.

    Changes to the program code integrated below.

    Thanks!



    public partial class BrowseCategories : Form
    {
        categoriesDataSetTableAdapters.CategoriesTableAdapter ThisCategoriesTableAdapter = new categoriesDataSetTableAdapters.CategoriesTableAdapter();
        //tracks PositionChanged event for last row
        private DataRow LastDataRow = null;
    
        public BrowseCategories
        {
            InitializeComponent();
        }
    
        private void BrowseCategories_Load (object sender, EventArgs e)
        {
            this.parentsTableAdapter.Fill(this.parents._Parents);
            this.categoriesTableAdapter.Fill(this.categoriesDataSet.Categories);
            this.dgCategories.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
            //Is there a way to add an event handler from the design screen?
            categoriesBindingSource.PositionChanged += new EventHandler(categoriesBindingSource.PositionChanged);
            //Set LastDataRow initially, or if you try to change the first row, the event handler won't fire
            BindingSource thisBindingSource = (BindingSource)categoriesBindingSource;
            LastDataRow = ((DataRowView)thisBindingDource.Current)>Row;
        }
    
        private void UpdateRowToDatabase();
        {
            if (LastDataRow != null)
            {
                if (LastDataRow.RowState == DataRowState.Modified)
                {
                    ThisCategoriesTableAdapter.Update(LastDataRow);
                }
            }
        }
    
        private void categoriesBindingSource_PositionChanged(object sender, EventArgs e)
        {
            BindingSource thisBindingSource = (BindingSource)sender;
            DataRow thisDataRow = ((DataRowView)thisBindingSource.Current).Row;
            if (thisDataRow == LastDataRow)
            {
                throw new ApplicationException("It seems the PositionChanged event has fired twice for the same row.";
            }
            UpdateRowToDatabase();
            LastDataRow = thisDataRow;
        }
    
        private void btnParent_Click(object sender, EventArgs e)
        {
            BrowseParent frmParent = new BrowseParent();
            frmParent.Show();
        }
    
        private void BrowseCategories_FormClosed(object sender, EventArgs e)
        {
            UpdateRowToDatabase();
        }
    }
    }
    //I seem to have added an extra bracket... keeping it in case I screwed up the formatting somewhere.
    As I retyped it all, assume any typos are unique to this rendition. The code does run (it just doesn't update the database).
    
    EDIT:: as requested by '[info]'109 the InitializeComponent() method:
    
    
    private void InitializeComponent()
    {
        this.components = new System.ComponentModel.Container();
        this.dgCategories = new System.Windows.Forms.DataGridView();
        this.parentsBindingSource = new system.Windows.Forms.BindingSource(this.components);
        this.parents = new HospitalRates.Parents();
        this.categoriesBindingSource = new System.Windows.Forms.BindingSource(this.components);
        this.categoriesDataSet = new HospitalRates.categoriesDataSet();
        this.btnParent = new System.Windows.Forms.Button();
        this.btnCorrect = new System.Windows.Forms.Button();
        this.btnDone = new System.Windows.Forms.Button();
        this.btnSave = new System.Windows.Forms.Button();
        this.categoriesTableAdapter = new HospitalRates.categoriesDataTableSetAdapters.CategoriesTableAdapter();
        this.parentsTableAdapter = new HospitalRates.ParentsTableAdapters.ParentsTableAdapter();
        ///a word of explanation: the control below started out life as a text box column because
        ///I'm a forgetful bastard, and name hasn't changed because I'm lazy, as well.
        this.ParentsDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
        this.CategoryDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
        this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
        ((System.ComponentModel.ISupportInitialize)(this.dgCategories)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.parentsBindingSource)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.parents)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.categoriesBindingSounrce)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.categoriesDataSet)).BeginInit();
        this.SuspendLayout();
        //
        //dgCategories
        //
        this.dgCategories.AutoGenerateColumns = false;
        this.dgCategories.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
        ///note: I swear, there's no extra indentation here!
        this.dgCategories.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
        this.parentDataGridViewTextBoxColumn,
        this.categoryDataGridViewTextBoxColumn,
        this.descriptionDataGridViewTextBoxColumn});
        this.dgCategories.DataSource = this.categoriesBindingSource;
        this.dgCategories.Location = new System.Drawing.Point(14, 14);
        this.dgCategories.Name = "dgCategories";
        this.dgCategories.Size = new System.Drawing.Size(739, 393);
        this.dgCategories.TabIndex = 0;
        //
        //parents
        //
        this.parents.DataSetName = "Parents";
        this.parents.DataSchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
        //
        //categoriesBindingSource
        //
        this.categoriesBindingSource.DataMember = "categoriesDataSet";
        this.categoriesBindingSource.DataSource = this.categoriesDataSet;
        //
        //categoriesDataSet
        //
        this.categoriesDataSet.DataSetName = "categoriesDataSet";
        this.categoriesDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
        //
        //btnParent
        //
        this.btnParent.Location = new System.Drawing.Point(14, 432);
        this.btnParent.Name = "btnParent";
        this.btnParent.Size = new System.Drawing.Size(135, 36);
        this.btnParent.TabIndex = 1;
        this.btnParent.Text = "Add/Edit Parent";
        this.btnParent.UseVisualStyleBackColor = true;
        this.btnParent.Click += new System.EventHandler(this.btnParent.Click);
        //
        //btnCorrect
        //
        this.btnCorrect.Location = new System.Drawing.Point(215, 432);
        this.btnCorrect.Name = "btnCorrect";
        this.btnCorrect.Size = new System.Drawing.Size(135, 36);
        this.benCorrect.TabIndex = 2;
        this.btnCorrect.Text = "Correct Existing Data";
        this.btnCorrect.UseVisualStyleBackColor = true;
        //
        //btnDone
        //
        this.btnDone.Location = new System.Drawing.Point(617, 432);
        this.btnDone.Name = "btnDone";
        this.btnDone.Size = new System.Drawing.Size(1356, 36);
        this.btnDone.TabIndex = 3;
        this.btnDone.Text = "Done";
        this.btnDone.UseVisualStyleBackColor = true;
        //
        //categoriesTableAdapter
        //
        this.categoriesTableAdapter.ClearBeforeFill = true;
        //
        //parentsTableAdapter
        //
        this.parentsTableAdapter.ClearBeforeFill = true;
        //
        //parentsDataGridViewtextBoxColumn
        //
        this.parentsDataGridViewTextBoxColumn.DataPropertyName = "Parent";
        this.parentsDataGridViewTextBoxColumn.DataSource = this.parentsBindingSource'
        this.parentsDataGridViewTextBoxColumn.HeaderText = "Parent";
        this.parentsDataGridViewTextBoxColumn.Name = "parentDataGridViewTextBoxColumn";
        this.parentsDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
        this.parentsDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
        this.parentsDataGridViewTextBoxColumn.ValueMember = "Parent";
        //
        //categoryDataGridViewTextBoxColumn
        //
        this.categoryDataGridViewTextBoxColumn.DataPropertyName = "Category";
        this.categoryDataGridViewTextBoxColumn.HeaderText = "Category";
        this.categoryDataGridViewTextBoxColumn.Name = "categoryDataGridViewTextBoxColumn";
        //
        // descriptionDataGridViewTextBoxColumn
        //
        this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
        this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
        this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
        //
        //BrowseCategories
        //
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Windows.Drawing.Size(772, 515);
        this.Controls.Add(this.btnSave);
        this.Controls.Add(this.btnDone);
        this.Controls.Add(this.btnCorrect);
        this.Controls.Add(this.btnParent);
        this.Controls.Add(this.dgCategories);
        this.Load += new System.EventHandler(this.BrowseCategories_Load);
        ((System.ComponentModel.ISupportInitialize)(this.dgCategories)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.parentsBindingSource)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.parents)).EndInit();
        ((System.ComponentModel.ISupportInitalize)(this.categoriesBindingSource)).EndInit();
        ((System.ComponentModel.ISupportInitalize)(this.categoriesDataSet)).EndInit();
        this.ResumeLayout(false);
    }
    Ah, the problem becomes clear... the event handler never registered...

    Source: http://community.livejournal.com/csharp/49005.html

  3. Anyone want a job?

    Date: 02/08/06 (Web Development)    Keywords: software, database, web

    My friend Aaron's looking to hire a full-time software person; anyone here interested?

    I was just happy that I was able to solve the puzzle! :-)

    I'm not doing this for the money, but if he does hire you, my name is David Beroff. :-)

    (Cross-posted to '[info]'webdev, '[info]'databases, '[info]'perl, and '[info]'d4b.)

    Source: http://community.livejournal.com/webdev/293234.html

  4. webcam questions.

    Date: 02/08/06 (Web Development)    Keywords: java, web

    Hello all, I am trying to setup a small webcam page for our new puppy. I am trying to get *just* the picture to refresh every 30 seconds.



    < script language="JavaScript">
    function reloadImage() {
    if (document.images) {
    document.images.myImageName.src = 'webcam.jpg?' + (new Date()).getTime();
    }
    setTimeout('reloadImage()',30000);
    }
    setTimeout('reloadImage()',30000);
    //-->
    < /script>

    Problem is it isn't refreshing the image.


    Also I am trying to figure out how to get the window to resize to the size of the background when the page is loaded.
    How is that done?

    Source: http://community.livejournal.com/webdev/293013.html

  5. Filling out web forms with external data (Lotus Notes)

    Date: 02/08/06 (Web Development)    Keywords: web

    How would I best create somethng to navigate and submit web forms with data collected from an outside source?

    (In this particular case, the web forms are on an internal company site that needs to be updated frequently, and the outside source would be data from a Lotus Notes email)

    Source: http://community.livejournal.com/webdev/292725.html

  6. Strange Behavior

    Date: 02/08/06 (C Sharp)    Keywords: web

    I have a WebPart written in C#. There are buttons on the main screen, which take me to other views. The Buttons on the main View fire off the correct events, however the buttons on other views do not.



    public void CreateViewState
    {
    ...
    Button addRFI = new Button();
    addRFI.Text="Add New RFI";
    addRFI.Click += new EventHandler(addRFI_Click);
    ...
    }
    public void CreateAddState
    {
    ...
    Button submitRFI = new Button();
    submitRFI.Text = "Submit";
    submitRFI.Click += new EventHandler(submitRFI_Click)
    ...
    }
    protected void addRFI_Click(object sender, EventArgs e)
    {
    this.CurrentState = RFIState.AddSate;
    }
    protected void submitRFI_Click(object sender, EventArgs e)
    {
    // Process RFI ADD HERE
    }

    OK, So I set a break point in each of the Click Routines, Load up My SharepOint with the WebPart. Click on Add RFI, and the program breaks on the BreakPoint in addRFI_Click, loads the Form with the Submit button on it. Press the Submit Button, and the program breaks at the break point in the addRFI_Click event , NOT the event it is tied too.

    What in the world is going on here???

    Source: http://community.livejournal.com/csharp/49283.html

  7. Exploit turns up heat for Firefox flaw

    Date: 02/08/06 (Security)    Keywords: browser, web

    Mozilla has patched the hole in the Web browser, but the public release of attack code means it's urgent that people apply the fix.

    Source: http://news.zdnet.com/2100-1009_22-6036771.html

  8. streaming

    Date: 02/09/06 (Computer Help)    Keywords: web

    hi there! i was just wondering a few things about streaming a video online for my computer (website) assignment...1) is there anywhere i can go to do it for free? 2) is it easy to do or should i leave it to the pros?! (i'm NOT very good at these things at all!! lol) thanks for your time!!

    Source: http://community.livejournal.com/computer_help/584484.html

  9. i feel like my computer is dying

    Date: 02/09/06 (Computer Help)    Keywords: virus, antivirus, web, spyware

    i have been having problems with my computer for a few weeks. It started out by me just assuming i had been infected by a virus. i have 3 hard drives (2 maxtor 200gb and one Wetern Digital 160gb) and was assured that reformatting my c drive would not effect my other hard drives. Of course i attempted to virus scan it and search for any spyware and nothing really showed up. the drive was constantly freezing up and taking a very long time to open folders, as well as not allowing me to move files from it to other drives. i ran this error checking program that is located under the drive's properties under the tab Tools, rebooted, and this found multiple bad sectors and attempted to fix them with no real improvement in performance.


    so i reformatted,. when it was done reformatting the screen that i had seen during the disk error check came back up (during a reboot) and it started to recover orphaned files that appeared to be all the files from my other 2 drives.

    so began the insanity. my 2nd hard drive is all avi files and mp3s files. i first noticed folders missing. then when i would try to view some of these files instead of an avi file playing an mp3 would play, sometimes it would be a mesh of many mp3s that would play and other times it would be a completely different avi file that would skip along and barely play. then in the mp3 files i would click on an mp3 by a certian band yet a completely different song would play and even then it was an odd part of a song, not the entire thing. the more i look the more i find this happening in this drive.

    in the 3rd hard drive after the formatting some of the files because incomplete all these files were rar, par2, iso, and vob files, there was such a high volume of these that i am not exactly sure how many if any completely disappeared. and in reality i wasn't really concerned with losing the data from this drive.

    even now when i have to reboot, sometimes it just automattically enters into checking my drives for disk errors and it will tell me its recovering orphaned files and it will continue to find bad sectors on all my drives and tell me its fixing them.

    lately (the past few days) opening up a folder with avi files dramatically slows my compter down, it takes forever to read just the details of the files, it takes even longer for me to get one of the files to play. Also when i try to play it and freezes it up the window will shut down and my taskbar will dissapear until i open my dvd drive and then the task bar comes back.

    so with my limited computer knowledge i assumed that maybe the drive was going bad. i dled a program that will check your hd and it said everything looked good (i tried to dl the maxtor program to do this, but it required that you have a drive - and i don't). so i decided that i would reformat my other 2 drives, i moved all the files from my 2nd drive to the other 2, and during this my computer told me that there was a corrupt file on my 3rd drive located in the hidden recycler folder it starts out "S-1-5-21-then a long string of numbers" of course i can not delete this file. i continued to just move the files off my 2nd drive.

    Now that there are no files on my 2nd drive, it still tells me that 20 gigs of that drive is being used, but i have no idea what it is being used by, i checked thru dos - nothing, i have hidden files showing - nothing. and now i afraid to reformat without first finding out what is taking up 20 gigs.

    so is this a virus that has effected all of my drives? could this be caused by my drives perhaps overheating? could this be because i didn't set up my drives after reformatting with the Maxtor disc? my os is xp home with service pack 2. i use norton antivirus, and it updates automatically, for spyware i use ccleaner, adaware, and spybot s&d. I dl a lot of stuff, all the stuff i dl is rar and par2 files from usenet, or avi files thru bitttorrent. i don't have the slightly idea what is going on. besides updating and running my virus scan 10000s of times i have also run some online virus scans from symatec website, and bitdefender - nothing was found.

    Source: http://community.livejournal.com/computer_help/584403.html

  10. page in page website fun

    Date: 02/09/06 (Computer Geeks)    Keywords: php, css, html, web, linux

    I'm setting up my website and what I'd like to do is have a page (news) that contains livejournal entries made by a blogger I like. The ideal is that going to this page will display his ljin the format of my own website (which is done in CSS). This is CS and html largely (php enabled). If anyone would like to check the source it's at www.anivair.com.

    Note: This is a brand new site. I haven't had any time to rewtire it or to do much but set up a generic prepackaged site with a few minor changes.

    Any suggestions as to the best way to do this? (note: my host is globeat and they're runing linux based servers if that is important).

    Source: http://community.livejournal.com/computergeeks/877045.html

  11. Zencart override help

    Date: 02/09/06 (HTML Help)    Keywords: php, oscommerce, css, web, shopping

    I'm trying to figure out where in my overrides I can change my background to the color of code #FF6699.
    And where there are orange bars to #FF6666.

    Can somebody help me with this, by putting those in the places where there supposed to be and then re-putting them in the textarea box of your own. So all i have to do is copy and paste.




    This is for my site: http://www.bubblegumgoods.com/shop



    Source: http://community.livejournal.com/htmlhelp/2253715.html

  12. Design Patterns in Java (and EJB) References

    Date: 02/09/06 (Java Web)    Keywords: java, web

    Three high quality free resources (eBooks & website) for learning about design patterns in Java & EJB for your reading pleasure. Design Patterns in Java - A free eBook which extensively covers wide range of design patterns with good examples. EJB Design Patterns - A well written book. Basic design patterns available online. It is adapted from the [...]

    Source: http://blog.taragana.com/index.php/archive/design-patterns-in-java-and-ejb-references/

  13. Streaming MP3s

    Date: 02/09/06 (Web Development)    Keywords: web

    Could someone possibly provide me with some insight and/or resources to information regarding streaming music, whether it be through Flash or any other means?

    I'm trying to set up a web-based music playing application that allows users (primarily me) to choose from a slew of songs and have it play relatively quickly after it is chosen.

    Any info is greatly appreciated, thanks!

    Source: http://community.livejournal.com/webdev/294046.html

  14. Environment Variables for PHP Path

    Date: 02/09/06 (PHP Community)    Keywords: php, web, apache

    Hi,

    I've got Apache 2, with PHP 5 running on Windows 2003 Server. I've installed websvn to browse our source code repository.

    However, when it attempts to run svn look, it fails as svn is not on the path for the user apache is running as.

    Is there a way I can configure this path into PHP? Or do I have to mess around with the environment variables for the user apache runs as?

    Source: http://community.livejournal.com/php/411325.html

  15. HTML Nerds

    Date: 02/09/06 (Web Development)    Keywords: browser, web

    Is there a cross browser way to put an image in a text block in a web page so it's placed behind text?

    Source: http://community.livejournal.com/webdev/294380.html

  16. developing websites...

    Date: 02/10/06 (Computer Help)    Keywords: html, web

    hi,

    just a few questions.

    I am doing a course in website development. Partly as practise and partly just for my amusement I have been thinking about registering a domain name. I know how tro make the pages and all that. But my question is how do i get these actually online once I have registered the website?. I know I could register with geocities or something and use their tools but I would rather have my own domain name. I have found several places that sell domain names, would these people advise me on how to get the pages online once they are made? I apologise if this is a stupid question. I have only made the HTML pages befor,e never actually put them on the good ole internet.

    x-posted and things like that.

    Source: http://community.livejournal.com/computer_help/585242.html

  17. Choosing a new computer

    Date: 02/10/06 (Computer Help)    Keywords: web

    I'm not v. savvy to all the computer spec jargon that helps fancy computer people choose their next computers. I'm planning to make the switch from a v. geriatric desktop PC to a laptop, and don't want to buy more computer than I need. That said, I do want a basic computer that will function for at least 3-5 years.

    All I need it for is:
    -email/webbrowsing
    -word-processing/spreadsheets/powerpoint/etc
    -music/DVD storage/playback/burning
    -photoshoping

    but I do want it to be able to easily multitask many applications at once, which my current dinosaur can't.

    Do you have any recommendations re: what specs I should look for, what brands are reliable, how much I should pay? (If you're Canadian can you tell me in CAN$?).

    Thanks in advance for your help!

    Source: http://community.livejournal.com/computer_help/585074.html

  18. MySQL Version issue with Timestamp

    Date: 02/10/06 (MySQL Communtiy)    Keywords: mysql, software, sql, web, google

    Hi...

    I have googled, dev.mysql.com'ed, RTFM and stuff, and I'm a little frustrated, I hope someone here knows the definitive answer.

    We developed our web-based software on version 3.23.41 where the timestamp format is YYYYMMDDHHMMSS, I'm sure you know the drill.

    Now, we're migrating to a new server, with 4.1.12 and the timstamp default format is %Y-%m-%d %H:%i:%s

    The big question: Can I change this version of MySQL (I do have root access) to use the old type of timestamp format?

    If so, How? Or, can you point me to a resource that explains it?

    Again, I have tried google, dev.mysql.com, etc. I apologize if this is a dumb question, but so far all sources point to it just being the format and nothing I can do. I kinda don't believe that, as it sounds like an inflexibility that would cause other developers to run into problems upgrading....unless of course, I am doing it all wrong!

    Any help is appreciated.

    Source: http://community.livejournal.com/mysql/85482.html

  19. Oracle updates application server, Java tool

    Date: 02/10/06 (Application Development)    Keywords: java, web

    Application Server 10g and Java development tool add support for server standards, AJAX Web development.

    Source: http://news.zdnet.com/2100-9593_22-6037892.html

  20. CcertRequest secutiry issue

    Date: 02/11/06 (C Sharp)    Keywords: asp, security, web

    It's probably not the best group to ask but in case someone has faced this problem, I will :)

    I am trying to build a asp.net 2.0 web service that will request and
    get certificates from three different MS CA services. The whole thing
    is done with CERTCLIENTLib.CCertRequestClass and works fine as long as
    the web service is located on the same machine with the CA.


    My need is to make it call other CA's when I do my
    CCertRequestClass.Submit().


    As many of you probably guessed, I am getting this while error:


    CCertRequest::Submit Access is denied. 0x80070005 (WIN32: 5)


    Oh well, I tried to play with target CA security settings and DCOM
    settings and turned audit for anything I could and did read everything
    I could find on this error message. Nothing really helped.


    It seems like the CA machine is just not letting the call to reach the
    machine's DCOM. I could get this message in security event log:


    Event Type:     Failure Audit
    Event Source:   Security
    Event Category: Logon/Logoff
    Event ID:       529
    Date:           10.02.2006
    Time:           19:38:02
    User:           NT AUTHORITY\SYSTEM
    Computer:       **********
    Description:
    Logon Failure:
            Reason:         Unknown user name or bad password
            User Name:      ************
            Domain:         *********
            Logon Type:     3
            Logon Process:  NtLmSsp
            Authentication Package: NTLM
            Workstation Name:       **************
            Caller User Name:       -
            Caller Domain:  -
            Caller Logon ID:        -
            Caller Process ID:      -
            Transited Services:     -
            Source Network Address: ***.**.***.**
            Source Port:    3766


    -------------------------------------


    The machines are not on the same domain - it's one of the requirements
    to the whole thing.


    Can someone suggest an approach or something to get it all to work or
    shall I just forget about the idea?

    Source: http://community.livejournal.com/csharp/49813.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home