NsBlocklistservice.js being read from Bootcamp drive

while running my snow leopard, using firefox 12 it produced an error of a non-responsive script has stopped. the script is "nsBlocklistservice.js. When I searched for the script I was not able to find it on my Local Apple snow leopard drive. But when I did a complete search of my entire drive it found the nsBlocklistservice.js file on my bootcamp drive. The boot camp drive is a read only drive and the file was being read from my Apple snow leopard OS side.
Is there a way of restricting reading the boot camp drive?

Hi! It's a miracle that I found your question on this discussion because THE SAME THING IS HAPPENING TO ME. It only started today. sometimes the disks keep ejecting after making some "noise" and other times they get stuck in there and I have to restart my Powerbook G4 (15") to get it to eject. I tried to repair the disk, but it won't let me and I can't get my disk warrior to stay in to check it. Will it need repair or replacement? What does it cost? Where do I take it? I live in Albuquerque and I think a new Apple store is opening here soon...should I take it there or to Comp USA or another "authorized dealer".
I'm telling you, I have used Macs since the BEGINNING (70s!); I currently own THREE Macs and I've NEVER had this problem! This computer is only a little over a year old! yikes! Thanks for answering my questions. I appreciate it.

Similar Messages

  • I Mac is not reading from DVD drive. Disk will insert, then some noises but after a few seconds, nothing.

    I Mac is not reading from DVD drive. Disk will insert, then some noises but after a few seconds, nothing. I am trying to install Broterh printer disks. Any ideas? I am on Mavericks.

    Reset the NVRAM/PRAM and Reset the SMC, then try again.

  • Special characters being read from the unicode file for greek language

    Hi All,
    I have a report which would upload a unicode file and then update the vendor master data accordingly.
    The file contains greek characters too.
    when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
    The logic that is being used is as follows :
    TRY.
          IF unicode IS INITIAL.
            IF codepage IS INITIAL.
    *-->      For backward compatibility where this FM might be called from
    *         other dependent objects (FMs/dynamic subroutines)
    *         which donot have access to  user's input w.r.t Unicode parameters
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE
                   MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                         
            ELSE.
    *--> System in non-unicode and Unicode Environment (Phases I and II)
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                          
            ENDIF.
          ELSE.
    *-->  Extract File in Unicode format - Phase III
            OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
            MESSAGE msg
            FILTER filter.                                 
          ENDIF.
          IF sy-subrc NE 0.
            MESSAGE e001(zuni) WITH filename sy-subrc
             RAISING file_open_error.
          ENDIF.
    the unicode parameters used are : codepage = 8000.
    An early reply is most appreciated.
    Regards,
    Manu.

    Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
    DATA:
        ltp_bom                  TYPE sychar01,
        ltp_encoding             TYPE sychar01,
        ltp_codepage             TYPE cpcodepage.
    Processing --------------------------------------------------------- *
      TRY.
          CALL METHOD cl_abap_file_utilities=>check_utf8
            EXPORTING
              file_name         = itp_filename
              max_kb            = -1
              all_if_7bit_ascii = abap_true
            IMPORTING
              bom               = ltp_bom
              encoding          = ltp_encoding.
        CATCH cx_sy_file_open .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_open_error.
        CATCH cx_sy_file_authority .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_authority_error.
        CATCH cx_sy_file_io .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_io_error.
      ENDTRY.
      CASE ltp_encoding.
        WHEN cl_abap_file_utilities=>encoding_utf8
          OR cl_abap_file_utilities=>encoding_7bit_ascii.
          CASE ltp_bom.
            WHEN cl_abap_file_utilities=>no_bom.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
            WHEN cl_abap_file_utilities=>bom_utf8.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8
                  SKIPPING BYTE-ORDER MARK.
            WHEN cl_abap_file_utilities=>bom_utf16_be.
              ltp_codepage = '4102'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                BIG ENDIAN CODE PAGE ltp_codepage.
            WHEN cl_abap_file_utilities=>bom_utf16_le.
              ltp_codepage = '4103'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                LITTLE ENDIAN CODE PAGE ltp_codepage.
            WHEN OTHERS.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
          ENDCASE.
        WHEN OTHERS.
          OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
      ENDCASE.
    Edited by: Nilesh Shete on May 7, 2010 5:29 PM

  • How do you direct EXS24 to read from External drive?

    my logic pro EXS24 is not reading from My external drive. How do i create a path??

    Hi Nastushka
    Glad you liked the website, it's my intention to keep updating over time and I hope people continue to find it useful. I was very lucky when I started out that lots of very smart people helped me out, so it's nice to continue the tradition.
    In answer to your question.
    To the best of my knowledge there's no way to have the actual .exs files on an external drive and have Logic still see them. My understanding is that Logic performs a number of "scans" on start up, during this process it checks a number of preset locations and then adds the files it finds to your available tools.
    The good news is that the .exs files are relatively small, so they shouldn't eat in to your hard drive space too much. It's the audio ( wav or aiff ) that takes up all the space.
    For example I have Pure E-Basses on my laptop ( from which I'm typing ) and the whole folder of .exs files is 6.5meg the related samples folder is 2.52gig.
    Ok, moving into speculative mode, _I haven't tried this myself_, if you absolutely must have the .exs files on an external drive I can think of no logical reason this couldn't be achieved with the judicious use of an Alias. So you'd create an Alias of the .exs files and put these in the correct location for Logic to scan and point these Aliases to the original files on your external HD.
    Unfortunately I'm not in a position to test this at the moment.
    Maybe somebody could chip in if they've tried it ?
    I'd also suggest that if you don't have enough room on you internal HD for the .exs files you may have bigger problems down the line. All HDs ( in my experience ) need a reasonable percentage of free space to work at their best.
    I'll copy this into the other thread, it may be sensible to continue this discussion in one thread from now on.
    James

  • Variety of problems- not reading from hard drive, etc.

    My 30 GB iPod Photo died a while ago, so I recently received an 80 GB 5G for the holidays. However, it hasn't been working correctly. I have a whole list of problems- most would seem to stem from it not reading from the hard drive. Note that almost every single one of these can be resolved by resetting the iPod, but having to do that over and over and losing my place in podcasts and that sort of thing is really annoying. I already tried restoring it completely once, and it didn't seem to help. What's odd is that, shortly after getting the iPod, I went on vacation for almost a week, in a warmer climate. It worked perfectly fine the entire time I was there, but then started up again upon my return.
    - The classic just not playing songs/videos, where you select a song and the artwork doesn't load and it doesn't play then just ends. Sometimes accompanied by freezing.
    - Skipping. I've never heard an iPod skip before, but it's happened several times. Also, I've had a weirder problem where a second or so of sound from earlier in a podcast repeats every so often during the rest of it. Just turning the iPod off and on again helps with that, though. And sometimes something will randomly stop in the middle.
    - Not recognizing data. My old iPod did this all the time. You reset it, and there are no songs, videos, etc. listed. If you connect it to the computer, iTunes classifies all the data as "other." It generally goes away if you reset it again. This has also happened partially, where some things show up but not others.
    - Sometimes, during a video, the audio will suddenly become a horrible screeching sound. You can stop the video and try to play something else, but then it freezes. The video might work perfectly fine later- that's not the problem.
    - Slow functioning. This might be normal- things like the graphics "skipping" while both listening to something and playing a game. Or sometimes it just seems generally sluggish to respond.
    - Not working with the case. I have this case (I had almost the same one for my last iPod), and all the above problems occur mostly (though not entirely) while the iPod is inside. I doubt the case itself is the problem- I can't see any way it would be preventing things like reading from the HD- but they definitely seem to be tied together. Sometimes when it's in the case the controls will take several seconds to respond to button pushes (play/pause, select, etc.) but respond perfectly fine to scrolling/volume change.
    I think I've pretty much exhausted my options for trying to fix things myself. Should I just send it back and hope the replacement is better? Will Apple even agree to replace it if they can't see it malfunctioning?

    Also, though no one's replied yet, I remembered more problems:
    - Displaying the wrong album art (only occasionally).
    - Colors FREAKING OUT when viewing photos. The way to get rid of this seems to be to go back to the photo library, select a different photo (which hopefully loads correctly), going back up to the photo library again, and reselecting the original photo. But it's still annoying.

  • Trouble with reading from partitioned drive.

    Hi guys.
    A family member has entrusted me with trying to sort out her laptop. Her internal hard drive was full and was not letting her do anything.
    I found out that the drive was partitioned in half 80GB/80GB.
    I then proceeded to clean up the laptop as it hadn't had any cleanup done to it in the 4 years of owning it and it was very slow.
    I got to the iTunes folder and moved it to the partitioned half. I then looked into getting the iTunes program to read the files from this drive b changing the folder location through Edit> Preferences> Advanced> Change iTunes Media folder Location.
    I changed it to D:\iTunes Media\Music
    At first this worked and all the library was listed. Then after the family member got it home she opened it up and there wasn't anything in the library.
    It had reverted back to :C drive where there wasn't any media anymore as I have deleted it. Currently it is still in the : D drive and also on an External HDD backed up.
    I would like to know how I am supposed to get iTunes to read the media from the Partitioned drive and also use this drive as its storage drive all the time when purchasing media.
    I am not all that good with this kind of thing as there is only so much I can understand from the internet

    anyone?

  • Portege M900 cannot detect/read from DVD drive - Need help badly!

    I have this problem with Portege M900. My laptop cannot read from the DVD drive.
    Does any one has similar problem? Need help badly as I cannot play my game from the CD.

    Test if the dvd drive is seated correctly in the compuer, I had a computer the dvd drive did not work until I removed one of the on back of the laptop (machine was a Toshiba different model) and then I was able to seat the dvd drive correctly.

  • Problem With Parallels Reading From Disk Drive

    When I am using the Windows 7 virtual machine on Parallels, I can't read from the built-in CD-DVD player.
    I'm trying to install MS Office 2010. When I insert the disk, it begins spinning and sounds like it's trying to read it but after a while it stops without anything coming up. I already have checked the devices menu and tried the "Default CD/DVD" choice and the "OPTIARC DVD RW AD-5680H" choice from the "CD/DVD 1" menu. Neither of them work. When I tried the "OPTIARC" one, the cursor flickered to the reading-from-disk sprite for a split second.
    Any help with this problem would be greatly appreciated.

    When I am using the Windows 7 virtual machine on Parallels, I can't read from the built-in CD-DVD player.
    I'm trying to install MS Office 2010. When I insert the disk, it begins spinning and sounds like it's trying to read it but after a while it stops without anything coming up. I already have checked the devices menu and tried the "Default CD/DVD" choice and the "OPTIARC DVD RW AD-5680H" choice from the "CD/DVD 1" menu. Neither of them work. When I tried the "OPTIARC" one, the cursor flickered to the reading-from-disk sprite for a split second.
    Any help with this problem would be greatly appreciated.

  • Very slow reads from Mirrored drives

    Hi all -
    I'm running a Tiger G5 Xserve with mirrored 80Gig SATA drives as the primary HD, and a standalone 250Gig SATA drive in the third bay. At the end of each workday, SuperDuper does a smart update from the mirrored drive to the standalone drive as a backup, and it takes about 40 minutes to run through 40Gigs of data.
    I also backup via SuperDuper directly from the mirrored drive to an external 2.5" 80Gig firewire drive once a day for offsite backup, and that takes 40 minutes.
    That means I'm getting nearly identical performance to an onboard SATA 3.5" and an external Firewire 400 2.5" - strongly suggesting that it's something in the RAID mirror, rather than in the interface or SATA channel of the receiving drive.
    Last week, for some reason, I selected the standalone drive as the source for the backup, and it took 8 minutes. After a bit testing, it seems clear that doing the same backup takes roughly 5x longer when the source is the mirrored drive. The server load is quite light at backup time - under 20% before the backup, under 50% during the backup, even though smart update has a LOT of files to sift.
    My understanding is that mirrors are often slower to write than other configurations, as they have to sync, but this is almost entirely a reading transaction, and I've never seen anything about mirrors being so slow to read relative to a standalone.
    It this normal? an artifact of the software RAID? Something misconfigured?
    It's not a huge problem for me, but since I run this procedure twice a day, it'd sure be nice to have it be one that I come back to in 10 minutes, instead of an hour.
    Thanks in advance!

    Hi Dean Larue-
    This may all be logical, but I would double-check the SuperDuper settings just to make sure that you aren't doing different backup types.
    The two 80GB are doing a lot of other stuff whilst you are backing them up and the 250GB just had to read and push files.
    I would also imagine that the 2X80GB drives are fuller percentage-wise than the 250GB drive as this too would impact performance.
    As it has no files to compare while backing up, SuperDuper is often faster doing the initial backup. Comparing the files on the source drive to the many files on the backup drive takes time.
    Luck-
    -DP

  • Photos I delete in library are not being deleted from hard drive

    Help please. I have been trying to delete photos from the iPhoto library (Events and Photos) and emptying the iPhoto trash can. This is supposed to erase them from the hard drive. However, when I look in the hard drive in the Pictures folder, the photos I deleted are still there. Could someone tell me what might be wrong? Thanks!

    I'm running a managed library.
    Let me see if I can understand this. The problem has to do with the place I was looking at. I was looking in the pictures folder in the hard drive. Now, the pictures inside the iPhoto library are the ones that are deleted from the hard drive, and the ones in the Pictures folder are not being touched at all. So I have two separate folders with pictures: the iPhoto library folder and the Pictures folder inside the hard drive.
    Since I'm going to be using iPhoto exclusively I might as well delete that other Pictures folder in the hard drive. If I delete the pictures in this folder, would that affect the pictures I have in the iPhoto Library? I'm thinking no since iPhoto has made copies of all those pictures. What do you think?
    THanks for the info TD

  • Old podcasts not being deleted from hard drive

    Can anyone help me with this problem? I currently have the "keep only unplayed podcasts" selected. ITunes synchs great with my Nano. If a podcast is played, it is taken off of the Nano.
    The problem is that the podcast is not also deleted from my hard drive. I have to manually delete the file and "move to recycle bin." Does anyone know a way of having ITunes actually delete the file from the hard drive? I don't want to waste so much space.
    I am using ITunes 7.

    I'm running a managed library.
    Let me see if I can understand this. The problem has to do with the place I was looking at. I was looking in the pictures folder in the hard drive. Now, the pictures inside the iPhoto library are the ones that are deleted from the hard drive, and the ones in the Pictures folder are not being touched at all. So I have two separate folders with pictures: the iPhoto library folder and the Pictures folder inside the hard drive.
    Since I'm going to be using iPhoto exclusively I might as well delete that other Pictures folder in the hard drive. If I delete the pictures in this folder, would that affect the pictures I have in the iPhoto Library? I'm thinking no since iPhoto has made copies of all those pictures. What do you think?
    THanks for the info TD

  • IPhoto read from hard drive

    All my photos are on an external hard drive. Can't iPhoto just read the files on that drive rather than copying them to another location and calling it a library. Seems dumb to have copies of all Mt work at a secondary location.

    Can't iPhoto just read the files on that drive rather than copying them to another location and calling it a library.
    It can, but you might not want it to.
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing. The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    This is an attractive option for some users at face value, but it contains a significant number of issues that you might want to consider before making the decision to run a Referenced Library
    How to do it:
    iPhoto -> Preferences -> Advanced and uncheck the box at 'Copy items to the iPhoto Library'
    Now when you import iPhoto makes an alias in the Library Package that points to the stored file. Note: iPhoto still creates a thumbnail of the image and it makes a Preview of edited photos inside the Library Package.
    Issues?
    1. You are responsible for file management. That's more work:
    You must first move the files from your camera to the storage location before importing.
    If you want to delete files then you must first trash them from iPhoto and then afterwards find them in your storage and trash them.
    Thereafter, you cannot move the files on early versions of iPhoto at all, on iPhoto 08 and later you may move them on the same Volume or Disk. If you move them to a new volume or disk the aliases my break. If they are on an different volume and you move them the aliases will break.
    You cannot rename the files.
    Migrating: moving to a new machine, moving the files to another disk are all a lot more complex.
    2. You gain no extra functionality from running a Referenced Library. Nothing. This is just storage. You still manage the files via iPhoto. You edit them with iPhoto or via iPhoto's External Editor setting, otherwise you're changes will not be available in iPhoto. You don't save  byte of storage space.
    3.  If you have the Library on one volume and the photos on another you if anything changes in the path to a file (Like if you upgrade your machine, move the files on the NAS or on to another one?) then the alias will break, and you'll have to repair it manually. For every photo in the Library. One at a time.
    Why do you want to run a Referenced Library?
    Because my photos won't fit on my HD?
    You can run a Managed library from an external disk. Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    You're worried about accessing the files?
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Files not being removed from hard drive

    I've deleted photos from the lightroom (5) catalog but the files havent been deleted from the folder on the hard drive (external).  What have i done wrong?

    I'll throw out a guess
    The folders containing these photos do not have WRITE permission, or are marked as read-only

  • MBP won't start or read from optical drive; steady sleep indicator light

    MBP went into sleep mode at some point during the day. Now I cannot wake it up. I had a steady sleep indicator light. I've tried everything in the book (holding down pwr button to shut down, then restarting; reset power manager; tried rebooting with OS disc #1 installed - which now will not eject).
    When I press the power button, I can hear the optical drive start to turn, then it stops short. The drive will spin for awhile, then stops automatically. The computer fans come on, but that's about it. I can't reboot so as to run Disk Utility. The screen remains black. Starting with shift key pressed for Safe mode or pressing C also have not worked. Seems as if the computer is not getting passed the initial start up sequence. My wife also has a MBP but I haven't tried reading my computer via Firewire yet. Not sure that will help.
    I'm a long way away from any Apple store (Kazakhstan) and would greatly appreciate some help. Thanks! Scott

    This problem has been resolved. Problem was a faulty RAM module. I sent my MacBook Pro to an authorized service center; they had it fixed in less than 1 day. Works fine now. No problems since!

  • Local Resource not being read from database

    I created a Customer Resource Provider for my project. 
    This provider is executing properly for Global resource requests (see sample #1 reference below). 
    However, for Local resource references (see Sample #2 below), it is not loading anything.  Can anybody help out or spot what is wrong?
    Sample #1:
    <asp:Label
    ID="lblAmount"
    runat="server"
    Text="<%$
    Resources:TestResource, Total_Amount_is %>"></asp:Label
    >
    Sample #2:
    <asp:TextBox
    ID="txtMoney"
    runat="server"
    meta:resourcekey="txtMoneyResource1"></asp:TextBox>
    Here is the Customer Provider code:
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System.Linq;
    using System.Web;
    using System.Web.Compilation;
    using System.Globalization;
    using System.Resources;
    using System.Data;
    using System.Data.SqlClient;
    using System.Data.SqlTypes;
    using System.Text;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    namespace Globalization_and_LocalizationV6
    public sealed class SqlResourceProviderFactory : ResourceProviderFactory
    public SqlResourceProviderFactory()
    public override IResourceProvider CreateGlobalResourceProvider(string classKey)
    return new SqlResourceProvider(null, classKey);
    public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
    //virtualPath = System.IO.Path.GetFileName(virtualPath);
    //virtualPath = virtualPath.Replace(HttpContext.Current.Request.ApplicationPath, "");//System.Web.VirtualPathUtility.ToAppRelative(virtualPath)
    virtualPath = virtualPath.Replace(System.Web.VirtualPathUtility.ToAppRelative(virtualPath), "");
    return new SqlResourceProvider(virtualPath, null);
    }//End of Sealed Class called SqlResourceProviderFactory
    internal class SqlResourceProvider : IResourceProvider
    private string _virtualPath;
    private string _className;
    private IDictionary _resourceCache;
    private static object CultureNeutralKey = new object();
    public SqlResourceProvider(string virtualPath, string className)
    _virtualPath = virtualPath;
    _className = className;
    private IDictionary GetResourceCache(string cultureName)
    object cultureKey;
    if (cultureName != null)
    cultureKey = cultureName;
    else
    cultureKey = CultureNeutralKey;
    if (_resourceCache == null)
    _resourceCache = new ListDictionary();
    IDictionary resourceDict = _resourceCache[cultureKey] as IDictionary;
    if (resourceDict == null)
    resourceDict = SqlResourceHelper.GetResources(_virtualPath, _className, cultureName, false, null);
    _resourceCache[cultureKey] = resourceDict;
    return resourceDict;
    object IResourceProvider.GetObject(string resourceKey, CultureInfo culture)
    string cultureName = null;
    if (culture != null)
    cultureName = culture.Name;
    else
    cultureName = CultureInfo.CurrentUICulture.Name;
    object value = GetResourceCache(cultureName)[resourceKey];
    if (value == null)
    // resource is missing for current culture, use default
    SqlResourceHelper.AddResource(resourceKey, _virtualPath, _className, cultureName);
    value = GetResourceCache(null)[resourceKey];//How do you add a new item to the "list" inside this method? Or refresh the list with the updated data?
    if (value == null)
    // the resource is really missing, no default exists
    SqlResourceHelper.AddResource(resourceKey, _virtualPath, _className, string.Empty);
    return value;
    IResourceReader IResourceProvider.ResourceReader
    get
    return new SqlResourceReader(GetResourceCache(null));
    }//End of Sealed Class SqlResourceProvider
    internal sealed class SqlResourceReader : IResourceReader
    private IDictionary _resources;
    public SqlResourceReader(IDictionary resources)
    _resources = resources;
    IDictionaryEnumerator IResourceReader.GetEnumerator()
    return _resources.GetEnumerator();
    void IResourceReader.Close()
    IEnumerator IEnumerable.GetEnumerator()
    return _resources.GetEnumerator();
    void IDisposable.Dispose()
    }//End of Sealed Class SqlResourceReader
    internal static class SqlResourceHelper
    public static IDictionary GetResources(string virtualPath, string className, string cultureName, bool designMode, IServiceProvider serviceProvider)
    SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ASPNETDB"].ToString());
    SqlCommand com = new SqlCommand();
    // Build correct select statement to get resource values
    if (!String.IsNullOrEmpty(virtualPath))
    // Get Local resources
    if (string.IsNullOrEmpty(cultureName))
    // default resource values (no culture defined)
    com.CommandType = CommandType.Text;
    com.CommandText = "select resource_name, resource_value" +
    " from ASPNET_GLOBALIZATION_RESOURCES" +
    " where resource_object = @virtual_path" +
    " and culture_name is null";
    com.Parameters.AddWithValue("@virtual_path", virtualPath);
    else
    com.CommandType = CommandType.Text;
    com.CommandText = "select resource_name, resource_value" +
    " from ASPNET_GLOBALIZATION_RESOURCES " +
    "where resource_object = @virtual_path " +
    "and culture_name = @culture_name ";
    com.Parameters.AddWithValue("@virtual_path", virtualPath);
    com.Parameters.AddWithValue("@culture_name", cultureName);
    else if (!String.IsNullOrEmpty(className))
    // Get Global resources
    string strFinalCultureName = string.Empty;
    if (String.IsNullOrEmpty(cultureName))
    strFinalCultureName = string.Empty;
    else
    strFinalCultureName = cultureName;
    com.CommandType = CommandType.Text;
    com.CommandText = "select resource_name, resource_value " +
    "from ASPNET_GLOBALIZATION_RESOURCES where " +
    "resource_object = @class_name and" +
    " culture_name = @culture_name ";
    com.Parameters.AddWithValue("@class_name", className);
    com.Parameters.AddWithValue("@culture_name", strFinalCultureName);
    //if (string.IsNullOrEmpty(strFinalCultureName))
    // // default resource values (no culture defined)
    // com.CommandType = CommandType.Text;
    // com.CommandText = "select resource_name, resource_value" +
    // " from ASPNET_GLOBALIZATION_RESOURCES " +
    // "where resource_object = @class_name" +
    // " and culture_name is null";
    // com.Parameters.AddWithValue("@class_name", className);
    //else
    // com.CommandType = CommandType.Text;
    // com.CommandText = "select resource_name, resource_value " +
    // "from ASPNET_GLOBALIZATION_RESOURCES where " +
    // "resource_object = @class_name and" +
    // " culture_name = @culture_name ";
    // com.Parameters.AddWithValue("@class_name", className);
    // com.Parameters.AddWithValue("@culture_name", cultureName);
    else
    // Neither virtualPath or className provided,
    // unknown if Local or Global resource
    throw new Exception("SqlResourceHelper.GetResources()" +
    " - virtualPath or className missing from parameters.");
    ListDictionary resources = new ListDictionary();
    try
    con.Open();
    //SqlCommand _com = con.CreateCommand();
    //_com.Connection = con;
    //_com.CommandType = CommandType.Text;
    //_com.CommandText = com.CommandText;
    //_com.Parameters.AddRange(com.Parameters.AddRange(com.Parameters.Cast<System.Data.Common.DbParameter>().ToArray()););
    //foreach (var Parameters in com.Parameters)
    // _com.Parameters.
    com.Connection = con;
    SqlDataReader sdr = com.ExecuteReader(CommandBehavior.CloseConnection);
    while (sdr.Read())
    string rn = sdr.GetString(sdr.GetOrdinal("resource_name"));
    string rv = sdr.GetString(sdr.GetOrdinal("resource_value"));
    resources.Add(rn, rv);
    catch (Exception e)
    throw new Exception(e.Message, e);
    finally
    if (con.State == ConnectionState.Open)
    con.Close();
    return resources;
    }//End of GetResources
    public static void AddResource(string resource_name, string virtualPath, string className, string cultureName)
    string resource_object = "UNKNOWN **ERROR**";
    if (!String.IsNullOrEmpty(virtualPath))
    resource_object = virtualPath;
    else if (!String.IsNullOrEmpty(className))
    resource_object = className;
    string strFinalCultureName = string.Empty;
    if (String.IsNullOrEmpty(cultureName))
    strFinalCultureName = string.Empty;
    else
    strFinalCultureName = cultureName;
    SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["ASPNETDB"].ToString());
    SqlCommand com = new SqlCommand();
    StringBuilder sb = new StringBuilder();
    sb.Append("MERGE ASPNET_GLOBALIZATION_RESOURCES as trg " +
    "using (values ('" + resource_object + "', '" + resource_name + "', '" + resource_name + " * DEFAULT * ', '" + strFinalCultureName + "')) " +
    "as source (RESOURCE_OBJECT, RESOURCE_NAME, RESOURCE_VALUE, CULTURE_NAME) " +
    "on " +
    " trg.RESOURCE_OBJECT = '" + resource_object + "' " +
    "and trg.RESOURCE_NAME = '" + resource_name + "' " +
    "and trg.CULTURE_NAME = '" + strFinalCultureName + "' " +
    "when matched then " +
    "update " +
    "set RESOURCE_VALUE = source.RESOURCE_VALUE " +
    "when not matched then " +
    "insert ( RESOURCE_OBJECT, RESOURCE_NAME, RESOURCE_VALUE, CULTURE_NAME) " +
    "values ( source.RESOURCE_OBJECT, source.RESOURCE_NAME, source.RESOURCE_VALUE, source.CULTURE_NAME);");
    com.CommandText = sb.ToString();
    //sb.Append("insert into ASPNET_GLOBALIZATION_RESOURCES " +
    // "(resource_name ,resource_value," +
    // "resource_object,culture_name ) ");
    //sb.Append(" values (@resource_name ,@resource_value," +
    // "@resource_object,@culture_name) ");
    //com.CommandText = sb.ToString();
    //com.Parameters.AddWithValue("@resource_name", resource_name);
    //com.Parameters.AddWithValue("@resource_value", resource_name +
    // " * DEFAULT * " +
    // (String.IsNullOrEmpty(cultureName) ?
    // string.Empty : cultureName));
    //com.Parameters.AddWithValue("@culture_name", (String.IsNullOrEmpty(cultureName) ? SqlString.Null : cultureName));
    //string resource_object = "UNKNOWN **ERROR**";
    //if (!String.IsNullOrEmpty(virtualPath))
    // resource_object = virtualPath;
    //else if (!String.IsNullOrEmpty(className))
    // resource_object = className;
    //com.Parameters.AddWithValue("@resource_object", resource_object);
    try
    com.Connection = con;
    con.Open();
    com.ExecuteNonQuery();
    catch (Exception e)
    throw new Exception(e.ToString());
    finally
    if (con.State == ConnectionState.Open)
    con.Close();
    }//End of AddResource
    public static IDictionary AASearch(List<Dictionary<string, object>> testData, Dictionary<string, object> searchPattern)
    return testData.FirstOrDefault(x => searchPattern.All(x.Contains));
    }//End of Class SqlResourceHelper
    }//End of Namespace Globalization_and_LocalizationV6

    Hi Daniel Rose01,
    Based on your description, this issue is related to the Web development, am I right?
    Since the ASP.NET has his own support forums, so if it is related to the web project, I suggest you post this issue to the ASP.NET forum, and there you would get dedicated support.
    The forum link:
    http://forums.asp.net/
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Mapping between  a nodes 0..2 and a node 0..1

    Hi, i need to do a mapping between MT_PRICE PRICE (element 0..2)   CURRENCY (attribute)    AMOUNT      (attribute) T YPE           (attribute) for example MT_PRICE <PRICE CURRENCY="EUR" TYPE="NET">35.50 </PRICE> <PRICE CURRENCY="EUR" TYPE="NET" AMOUN

  • URGENT: BPMN in BPA - Symbols, Lanes and Publishing processes

    We are developing IT processes which might later be SOA enabled through BPEL and we are using BPMN model in Oracle BPA to design our processes. These are our doubts. 1. Can symbols for Risk, controls be part of the standard pallette of symbols in BPM

  • Problem in RSA3 with FI_AR_4 extractor

    Hi Gurus!!! I have a problem when I run the extractor FI_AR_4 in the transaction RSA3. The message is "Customizing table of period indicators is incomplete Message no. 12145" Any suggestions? Thanks a lot!!!! César.

  • SharePoint 2010- Project Feasibility

    Hi all, I am working on SharePoint Foundation 2010. I have the following requirement in my project. 1) I need to create a list with more than 250 columns. 2) Design custom New, Edit and Display forms which includes all the above 250 columns. 3) Few r

  • Converting a standard BSP field into an internal number range

    Hi Friends, I'm new to CRM BSP and have a requirement wherein i have to edit standard BSP field and convert it to an internal number range field.Can anyone plz help me out on this. Thanks in advance. Regards, Parvathy.