|
An object cannot grant itself more security than the object that launched it.
Are you absolutely sure your service needs Local System. That's an EXTREMELY powerful account (more than an Administrator!) Most services, unless they're doing kernel or driver level work, don't need that account.
You WebService, by default, runs under the ASP.NET account, which is pretty limited (for obvious reasons) when it comes to access to the rest of the system.
What exactly are you trying to do with this again? I couldn't quite figure it out in your first post. Why the two services and what are they doing?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I am querying a DB and I want to get the data (Around 1 crore records) in a dataset. then I want to perform other operations on the data in the dataset. However, the process does not complete correctly. The program displays an 'Out Of Memory Exception' and the process is terminated. Can anyone suggest how this issue can be overcome. Thnx for any help.
With Best Regards,
Mayur
|
|
|
|
|
|
Thnx Deepak. I am using Vb.NEGT with MS Access. Do you mean to say that I need to use OledbDataReader to retrieve the data?
With Best Regards,
Mayur
|
|
|
|
|
How many records are you reading???
Are you sure to need them all in memory at the same time, or can you get away with only reading a few at a time, while doing your processing.
And, yes, with an Access database, you have to use the OleDb database classes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I am trying to get the entire data into the dataset and then let the user query this dataset as per his needs. What is happening currently is that every query is being run directly on the database. I want to avoid this.
With Best Regards,
Mayur
|
|
|
|
|
I take it that you're loading 1 Million records? You're MUCH better off leaving the data in the database and just running the queries against that. The .NET Framework objects are not designed to handle that much data and are not nearly as efficient at searching through it as the database engine is.
The traffic you send and, more importantly, receive to/from the SQL Server (or whatever) will be FAR less than retrieving that mountain of records.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I like 2 create the following coding :
a) Create a login page which will give access to the product page. B) Create a Product page has 2 drops down box that will fill from a access database.
1st dropdown is the product category that will fill up when you load the page.
2nd dropdown is the subcategory. When you select a subcategory it will display all the details regarding the items and the images with a shopping cart. I will need a customer page where new customers can sign up
I have a database file which i cannot attach here, so mail me to ge the database file, then you can help me out. Send complete Project folder.
Thanks
Mayur Patel
|
|
|
|
|
|
patel mayur wrote: Send complete Project folder.
No, no, no, no, no, no, no, .... That's not how this works around here.
YOU write the code! We help with any questions you have when you run into a problem. If you want someone to write it for you, go to RentACoder.com.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have a webparts control containing an Asp.net listbox and a label. There is this public property called 'ListItems' which will appear in the properties window when the control is selected on the design page in VS 2005.
When the "ListItems" property is selected, the ListItemsCollection Editor window pops up and the user can add new list items. However, when the ok button is clicked, the listbox doesnt display the list items.
Below is a code snippet of the ListItems public property:
<editorattribute(gettype
system.web.ui.design.webcontrols.listitemscollectioneditor), _
gettype(uitypeeditor))=""> _
Public ReadOnly Property Items() As ListItemCollection
Get
listbox1.DataSource = listitems
listbox1.DataBind()
Return listitems
End Get
End Property
How to link the list collection to the listbox for display?
|
|
|
|
|
after adding the items . they get displayed in the list
i dint find any issues regarding this
Bulbul Bhuwania
|
|
|
|
|
I am not working on a ready made ASP.Net VB listbox. I have to create a custom control and create a property which will display the List Items Edit window.
The issue is after adding the list items to the list items edit window, the list items are not added to the listbox, which is very unexpected.
|
|
|
|
|
He 2 all
I hope that u'll be enjoying good health.
I want to ask that how can I add the some code behind the buttons which I added at run-time?
Thanx in advance for answering me...
Regards,
Arfan Qadir
-- modified at 3:43 Tuesday 7th March, 2006
|
|
|
|
|
|
You have to create the controls, like I preseume you already did, and add them to the Form's Controls collection. After that, you have to write your event handlers using Sub's with the same signature as the event you want to handle (see the documentation for each event), then manually wire up the events using AddHandler[^]. Don't forget to disconnect the events handlers using RemoveHandler if you need to destroy the controls later.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have Exchange setup on a server and I am trying to write an ASP.NET application that saves some form data to a database, and then sends a notification email to a 3rd party.
I used the code, pretty much verbatim from here Support @ Microsoft[^]
I added the Office11 COM object as a reference; however, on the line oApp = New Outlook.Application() I get a weird error saying that the
ASP.NET is not authorized to access the requested resource
Any ideas on how to resolve this?
Jason
|
|
|
|
|
Hi.
I am new to this site. I found an example of an image combobox by Alon Ronen. The code is as follows:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim items(Me.ImageList1.Images.Count - 1) As String
For i As Int32 = 0 To Me.ImageList1.Images.Count - 1
items(i) = "Item " & i.ToString
Next
Me.ComboBox1.Items.AddRange(items)
Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
Me.ComboBox1.DrawMode = DrawMode.OwnerDrawVariable
Me.ComboBox1.ItemHeight = Me.ImageList1.ImageSize.Height
Me.ComboBox1.Width = Me.ImageList1.ImageSize.Width + 200
Me.ComboBox1.MaxDropDownItems = Me.ImageList1.Images.Count
End Sub
Private Sub ComboBox1_DrawItem(ByVal sender As Object, ByVal e As _
System.Windows.Forms.DrawItemEventArgs) _
Handles ComboBox1.DrawItem
If e.Index <> -1 Then
e.Graphics.DrawImage(Me.ImageList1.Images(e.Index), _
e.Bounds.Left, e.Bounds.Top)
End If
End Sub
Private Sub ComboBox1_MeasureItem(ByVal sender As Object, ByVal e As _
System.Windows.Forms.MeasureItemEventArgs) _
Handles ComboBox1.MeasureItem
e.ItemHeight = Me.ImageList1.ImageSize.Height
e.ItemWidth = Me.ImageList1.ImageSize.Width
End Sub
I would ask the author about this code but I cannot figure out how to contact the author. My question is how I would add text to this combobox. I want a box with images and a line of text as a kind of descriptor. Any ideas?
|
|
|
|
|
You can contact the author by going to the bottom of his article and posting a New Message. Each article gets it's own forum for discussing the article.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I am new to .Net and working with threads for the first time. Please review the code below.
Dim t As Thread
t = New Thread(AddressOf Me.GetValue) ' GetValue is a procedure
t.Start()
In GetValue, I want to get some data from the DB and fill in a combobox. However, when the following code in GetValue executes -
str = "select ID from ABC"
DA = New OleDbDataAdapter(str, ipcon)
DS = New DataSet
DA.Fill(DS, "rec")
- the control is lost. i.e: the next set of statements (to fill the combobox with the dataset values) do not execute. I am not sure why such a thing is happening. Is there some way to handle this threading issue that I am missing? Please help.
With Best Regards,
Mayur
|
|
|
|
|
Try Instantiating the Datatable on the main thread before you start the second thread:
<br />
Dim dt As New DataTable("dt")<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim thrFillTable As New Threading.Thread(AddressOf FillTable)<br />
thrFillTable.Start()<br />
End Sub<br />
<br />
Private Sub FillTable()<br />
Dim c1 As New DataColumn("Number")<br />
dt.Columns.Add(c1)<br />
Dim dr As DataRow<br />
For i As Integer = 0 To 10<br />
dr = dt.NewRow<br />
dr.Item(0) = i.ToString<br />
dt.Rows.Add(dr)<br />
'Next line is just to waste time <br />
'so you will see combo has no data <br />
'till thread Is finished<br />
Threading.Thread.Sleep(2000)<br />
Next<br />
Me.ComboBox1.DataSource = dt<br />
Me.ComboBox1.DisplayMember = "Number"<br />
End Sub<br />
<br />
<br />
|
|
|
|
|
i was using this code to play my background music but when i play the sound effect, the previous music was stop anyone know how to overlap the audio? by continue playing the background music
:
=BGmusic
Me.AxWindowsMediaPlayer1.URL = Path.GetDirectoryName(Application.ExecutablePath) & "\sound\start.mp3"
=Soundeffect
Me.AxWindowsMediaPlayer1.URL = Path.GetDirectoryName(Application.ExecutablePath) & "\sound\step.mp3"
Or is there any other method to play 2 audio together?
-- modified at 6:45 Tuesday 7th March, 2006
|
|
|
|
|
|
ya thats y wanna know anyone have other device cause i only know use the mediaplayer... u have any clue?
|
|
|
|
|
Media Player will only play one thing at a time, so you'll have to use a library that can do mroe than that, like DirectX and it's DirectSound library.
Sorry, I don't have any examples because that's no my area of expertise or development work. Google should be able to get you hundreds of examples though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|