Building my own front end to the network configuration.
I have a product that will allow users to enter some, but not all, of the
network options (TCP/IP Address, Gateway, ...) Are there calls that I can
make that will write the appropriate spot in the registry. Or are there
routines that I should be calling that says 'make this the new tcp/ip
address'.
TIA - Jeff. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109823
Send Outlook Appointment from VB.NET
I need to create an Outlook appointment from a VB.NET class that will be on a
remote server. This class should send the appointment to about 50 different
people and put it in their calendar. How would I go about doing this?
--
Alex C. Barberi
Chief Executive Officer
VisionForce
http://www.visionforceweb.com Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109815
StringInfo class
Hi,
I am looking for a way to get the contectual forms from Arabic Script.
If you use a richtextbox in VB.net, and you fill it with a a unicode string
which contains the isolated characters, the control takes care of the
"shaping", it shows the approriate glyphs ( isolated, final, initial or
medial )
I would like to do the same in code, input isolated chars and output correct
glyphs.
For example : arabic letter BEEH (067B) when used at the end of a word
(final) becomes FB53.
Wat is the correct way for doing this ?
* the new stringinfo class ?
* uniscribe ?
* ....
Any help would be appriciated !!
Greetings. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109811
abstract user control
Hi,
I am not sure if this is the right place for this question! Anyway,
here it is:
Is it possible to create a user control with abstract methods? I
couldn't do it. The reason is that I want to constrain the developer to
inherit from this abstract control!
Thanks in advance
Daniel Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109809
performance - Comparison
Hi!
I have a simple doubt abt the performance when comparing variables with
constats values..
Can any one tell me whether to use
1.
int a;
if(a==10)
{
MessageBox.Show("done");
}
Or
2.
int a;
if(10==a)
{
MessageBox.Show("done");
}
for comparing a variable.. which one will be wise to use if we are
considering performance to be critical and why??
thanks,
Baren Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109804
Aspnet_regiis
I don't know if this is the right forum for me to post my question but I just
hope somebody answers my question.
Is there any way that I can retrieve the password of the aspnet account. I
know that the password is machine generated but is there any method to
retrieve the password?
Can I change the password manually in the machine.config file? If so what
can be the implications of this? One thing for sure is that I know manually
changing the password will not synchronize the password with the IIS metabase
but can aspnet_regiis with the i switch be used to do this synchronisation?
Or for that matter does aspnet_regiis -i utility change the password for the
aspnet account and synchronize it with the metabase?
Too many questions!!!! but just hope somebody have answers for it... Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109801
ConfigurationErrorsException
Hi,
I am using C# with VSExpress 2005 (.NET 2) and playing around with
Configurations.
But, in the following Line (the first line) I am receiving an
ConfigurationErrorsException:
SystemsSection sysSection = ConfigurationManager.GetSection("systems") as
SystemsSection;
I took the example from:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=66506&SiteID=1
Can someone help me ?
Thanks in advance,
Chris Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109800
Sending a method as a parameter
Hi,
How can I send a method as a parameter to be executed in a class?
If possible without using delegate.
public void MethodA()
{
// Code
}
public void ExecuteMethod( * MethodParam )
{
// Invoke the method parameter
**MethodParam.invoke();
}
public void main()
{
// Call ExecuteMethod sending MethodA as a parameter
ExecuteMethod( * MethodA );
} Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109798
using INotifyPropertyChanged interface in Compact Framework
On my .Net 2.0 project:
I implemented INotifyPropertyChanged on all my business entities to
monitor property changes thru PropertyChanging event. It works fine on
my web and windows applications consuming my buiness entities but these
application do not consume the web service part.
The problem occurs on the proxies generated when i referenced my web
service and this ws uses these business entities. This is on a Pocket
PC/CF2.0 application. Yes, of course events are not serializable and my
proxy classes dont have those events (PropertyChanging and
CancelEventHandler) but is it realy my problem or the Compact Framework
not supporting System.ComponentModel.INotification interface?
My compilation failed and it ask me to reference System.ComponenModel.
So I edited the generated proxy class but still the project failed to
compile.
Hope you can help me. Thanks in advance! Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109796
Datagrid EnableViewState problem
Hi everyone,
I have a datagrid to display search results. The search results at this
stage we only return the first 500 records to speed up the search. The
problem is, if I turn the EnableViewState on, the search regularly failed
with a message that says tempdb is full... It does not however happens all
the time. I have tried to turn the EnableViewState off, that seems to do the
trick but causes another problem, the datagrid's paging does not work for
hidden pages (example, we only 5 pages, numbered 1, 2,.., 5 with the rest can
be accessed by clicking the ... after the 5. After clicking the ... after the
5, the numbers 6 - 10 are displayed but if I click on any number from 7 to
10, it goes back to pages 1 - 5). HELP!!!!
Is there a size limit to contents that can be displayed on an IE6 browser?
Has anyone experienced the same problem or is it just me?
Reducing the number of records returned is an alternative but it would be
much better if someone has a work around.
Any suggestion is greatly appreciated.
Calvin Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109793
Output Difference in Win2k Server + .NET 2.0 and WinXP + .NET 2.0
Hi al,,
I am trying to access an unmanaged library from C#, the code runs fine in
Win2kServer + .net 2.0 but it throws a Security Permission excpetion when
trying to execute the same part of code in WinXP+.NET 2.0.
Can any body help me on this.
regards
Subramanian Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109792
User profile space / Active directory integration
Hi all, I have been given the task of (For each user in Active Directory)
retrieving the following information from their Windows 2003 profile
Number of and size of the following files each person has
Audio
Video
Word doc
Excel
PowerPoint
PDF
Script (.js, .vbs)
Miscellaneous
I also have to query exchange and retrieve the number of emails they have as
well as the amount of space they are taking up in exchange
In order to do this I am currently going to their profile on the servers
drive and running a recursive function which keeps track of all the
information needed
e.g. if it finds a word doc then it queries its size and adds it to the
global WordDoc count and WordDocSize variables, same for all of the files
mentioned above. When the recursive function exists it returns this
information and the info is stored into the database. All the searching etc
for all the files is done at the same time inside the same recursive
routine.
Now, as you could imagine, this takes a long time for the 4000 users in our
AD....
I am using threading to speed it up by having more than one thread running
at once doing the search (A thread is spun up for the first letter of each
users last name so I have twenty six threads running at once, e.g. it
searches for all lst names beginning wth A,B,C etc at the same time hence
the 26 threads) and it seems to run fine.
I am open to ideas about how I can speed up the search without having a
million threads running at once
Thanks in advance
Mark Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109790
System.Net.WebRequest.Create
I have the below code.. executing from .NET APP
System.Uri objUri;
System.Net.WebRequest objWebReq;
System.Net.WebResponse objResp;
try
{
objUri = new System.Uri(strWebLink);
objWebReq = System.Net.WebRequest.Create(objUri);
objResp = objWebReq.GetResponse();
objResp.Close();
objWebReq = null;
return true;
}
catch
{
objWebReq = null;
return false;
}
and a Software policy restriction, that prevents from accessing Internet
through IE.
It works ok ( I get return true when internet is present) if the strWebLink
is say www.mydomain.com/admintest.aspx , but if I give it as
www.mydomain.com/admintest.asmx it fails ( I get return false when internet
is present). All this happens on XP SP2 box.
what is the difference??
VJ Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109787
Problem - Serialization Is Losing Data
My projetc has a simple DataDataSet (ds) that has a parentDataTable and a
childDataTable table bound to 2 DataGridViews and its lossing data in
serialization.
The problem happens when:
1)A parent row and consequently its child row (cascade) are deleted from
ds.
2)A new parent row and child row with the same values as deleted rows
are created again. Notice that the problem only occurs if the new data are
the same as deleted rows.
Afterwards clicking on a button it is executed:
3) dsChanges=ds.GetChanges
Stopping with debug you can see that there are 2 child rows in
dsChanges.childDataTable, one with Deleted and other with Added RowState.
4) dsChanges.WriteXml("File.Xml", XmlWriteMode.DiffGram)
dsChanges.Clear()
dsChanges.ReadXml("Teste", XmlReadMode.DiffGram)
Stopping with debug you will see that now there is only one child row with
Deleted RowState.
Where is the row with Added RowSate?
Could someone explain me if I am doing a wrong understanding, or there is a
actual problem with serialization?
This is a problem to my system because in fact my program is not executing
WriteXmL and ReadXml, actually it is sending the dsChanges to a another
program though Remoting where it is executed serialization and the loss of
data. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109786
Couldn;t load assembly
Hi,
I have created a custom key called "TestKey". Gave acess to NT
Authority\network.
Added code in web config...
<configProtectedData>
<providers>
<add keyContainerName="TestKey"
useMachineContainer="true"
description="Uses RSACryptoServiceProvider to encrypt and
decrypt"
type="system.configuration.RSAProtectedConfigurationProvider"
name="CustomProvider"
/>
</providers>
</configProtectedData>
Trying to run following code to encrypt config file...
config = WebConfigurationManager.OpenWebConfiguration("~")
section = config.GetSection("appSettings")
section.SectionInformation.ProtectSection("CustomProvider")
Getting Error...
Error: 429 - Could not load type
'system.configuration.RSAProtectedConfigurationProvider' from assembly
'System.Configuration, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'..
Not sure what I am doing wrong.
Thanks in advance.
- Reena Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109782
Prevent service from stopping
Hi,
I have a service which is only a server for some objects the user can
instanciate and call.
Right now, the service starts and then stops automaticaly. The only line of
code I added is in the OnStart event and is
"RemotingConfiguration.Configure(configfile)". So I guess the service is
stopping because it has nothing better to do?
Is there a setting I can set to prevent it from stopping? will I have to
start a loop that will run until the OnStop event runs in order to keep the
service alive?
Thanks
ThunderMusic Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109771
No .NET config program
Hello,
I have installed .NET 2.0 on a Windows XP with Admin, and after that there
is no configuration program in control panel -> administration tools. What
can be the reason of this?
Thanks
Otto Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109767
.NET 2 Clr hosting
Does anyone know if .NET 2 retains distinct server and workstation clr hosts
?
-Robert Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109763
Cancel Invoke
Hi,
I created a async method using delegate and I 'm running it using
BeginInvoke.
I know when it is complete and I can wait until it finishes, but I just
cann't find a way to cancel it.
How can I cancel the begininvoke? And one last thing. To have a async
method, is better to use begininvoke or a classs thread? Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109762
Thread syncronization
Hi,
i'm trying to grasp the concept of syncronizing threads, but without success
Here is the situation:
I'm using an object which connects to a server. After connection i want to
send informational requests.
If i send a request and the object is not connected yet i tell the Component
to connect(sub RequestInfo).
But before sending the request i have to wait until the connection succeded.
This is told to me by a Event (Sub Open_Result)
There are 2 options 1 is by using doEvents() in a loop, but that is using up
resources, the second is syncronizing Threads.
Could anyone help me?
Thanks in advance!
Rob Smeets
See below for simplified sample
Class GetInfo
Private withevents objInformationService as New InformationService
Private Connected as boolean = False
private Sub Connect()
objInformationService.Connect("UserName", "Password")
end sub
Private Sub RequestInfo(SelectStatement as string)
If Me.connected = False then
Me.Connect()
End if
objInformationService.RequestInfo(SelectStatement)
End sub
Private Sub Open_Result(Result as integer, ErrorMessage as string) handles
objInformationService.Openresult
If result = 1 then
Connected = True
Else
msgbox ErrorMessage
end if
End Sub
End Class Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109759
putting zeros to certain number of leading bits in a number in VB
Does anyone know how to make sure that the first 48 bits are zeros in int64
value in VB. Basically what the operation Iâ??m trying to achieve is the
equivalent of the following in C#
C# version:
long lngValue;
long result;
lngValue=8978474837228;
result = (lngValue >>48)& 0x000000000000FFFF; Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109758
Problem with visual renderer
Hi all
I have a problem while using VisualStyleRenderer. I want to use a back
buffer to draw a button using Visual Style.
The problem is that the border of the button black (only 1 pixel of
thickness). I investigate and I found that the border
try to combine with the background to make a smooth effect.
Now, if I use the Graphics returned by CreateGraphics, there is no problem
of color (but some flicking effect, It is why I want a back buffer).
Thanks,
Laurent.
This is part of my code that render the button with Visual Style.
Graphics gr = CreateGraphics();
Image back = new Bitmap(hitZone.Bounds.Width, hitZone.Bounds.Height, gr);
Graphics memgr = Graphics.FromImage(back);
Rectangle rc = ...;
memgr.SetClip(rc);
////// this line has no effect, whatever color is chosen
memgr.FillRectangle(new SolidBrush(Color.White), rc);
////// I use a static member to store the renderer, so I do not create
instance each time I have to redraw
////// I use Pressed and Hot state too
VisualStyleRenderer StyleButtonNormal = new
VisualStyleRenderer(VisualStyleElement.Button.PushButton.Normal);
StyleButtonNormal.DrawBackground(gr, rc);
gr.SetClip(hitZone.Bounds);
gr.DrawImage(back, hitZone.Bounds);
memgr.Dispose();
back.Dispose();
gr.Dispose(); Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109756
Weird error
Hello,
I encountered a very strange error in C#.
I had a piece of code that extracts data from a hashtable.
Here it is:
public static ProcedureData GetProcedureData(string strProcedureID)
{
// Return procedure data from hashtable:
return
(ProcedureData)Configuration._proceduresData[strProcedureID.ToLower()];
}
Pretty simple, isn't it?
It worked fine most of the time, but in a particular case I found out
it throws an exception (something like "object reference not found").
I started debugging this error, and got to this procedure.
An important remark is that '_proceduresData' is loaded in the static
constructor (therefore isn't null), and that the check for null input
or output is done outside this function. So none of the reference
objects were null.
So I used the immediate window to evaluate the following statements:
?strTableID.ToLower()
error: 'strTableID.ToLower' does not exist
?strTableID
"dbsysuser"
So, strTableID was a string but didn't support ToLower() function! How
weird is that?
I tried checking into it a little further, but at a certain point I
split up the rows so the debugging will be easier.
I came up with that new code:
public static ProcedureData GetProcedureData(string strProcedureID)
{
string strProcedureIdLowerCase = strProcedureID.ToLower();
// Return procedure data from hashtable:
return
(ProcedureData)Configuration._proceduresData[strProcedureIdLowerCase];
}
which works perfectly!
So I no longer have any problem, I would just like to know if anybody
could tell me why did it happen?
What was the problem? Anybody ever encountered such an error?
The code was written under Visual Studio .Net 2003, if that makes any
difference.
Thanks in advance,
Yanir Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109754
Outlook with VB.NET
I am writing a class in VB.NET that will send an email. When the email is
received in Outlook, that email needs to place an appointment on the Outlook
calendar. Does Microsoft have Office 2003 controls that I can download for
.NET?
The class will run under a service that will have rights to the user's
calendars therefore it should be able to just populate their calendars with
appointments. I am not exactly sure on how I would do this? Any ideas?
--
Alex C. Barberi
Chief Executive Officer
VisionForce
http://www.visionforceweb.com Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109753
What component is IE for FCL?
Does FCL have a component which is IE? Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109752
"Error executing program!" when starting .Net 2.0 application
Hi there,
i've a problem with the .Net 2.0 Framework. I've created a very simple
C++ .NET 2.0 Windows Forms application using Visual Studio 2005. I only
create a new project, save and compile it and launch it. Thats ok on
the machine where my IDE is installed. On a second computer i've
installed the .Net 2.0 Framework ( exactly same version which came with
the Visual Studio 2005 ). All i get on the second machine is a error
box saying "Error executing program!" immediatly after clicking on the
executable which is copied to the local harddisk of the second
computer.
I don't think this has anything to do with security policies since i've
also disabled some of this security stuff by using "caspol -e off -s
off".
Thx for your help
Michael Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109748
When Thread is over
Hi,
I created a new thread from a method. I wnat to know when this thread
ended. How can I do that?
public void DoWork()
{
}
public void main()
{
Thread a = new thread( DoWork );
} Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109745
No-Touch Application Can No Longer Read app.config File in .NET 2.
My application uses the no-touch deployment model. In .NET 1.1, this works
great. After I installed .NET 2.0 (and subsequently uninstalled it), the
application can no longer read the app.config file.
Example: ConfigurationSettings.AppSettings.Get(...) always returns Nothing.
Again, this works with 1.1, but not with 2.0 (tested on mulitiple machines).
Any insight?
Thanks in advance,
Rob Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109743
problem System.Configuration.ConfigurationManager.ConnectionStrings
I am getting the error, then I am using
System.Configuration.ConfigurationManager.ConnectionStrings("..."):
'ConfigurationManager' is not a member of 'Configuration'.
in your help it is written that ConfigurationManager is on
System.Configuration class
why. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109733
WebResource.axd concern
I noticed in my logs a request for /WebResource.axd?d=vWmfVPa...&t=632... So
I tried it to see what comes up and it starts a download request. I
downloaded the file and it is a javascript file. It looks to be a .net file
but I am not sure. Is there any security issue with these requests. Do I
need to contact my web hosting company about this?
Mike Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109726
ToString(string) and parsing
Hi Everyone,
If I want to format a type with a string format I can call
IFormattable.ToString(strFormat, formatProvider);
Does anyone know of a generic way to parse a string like this?
DateTime.ParseExact has an overload which takes these arguments but I can't
find a way to parse, for example, a number with a format string.
Any ideas? Thanks in advance, Jerry Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109724
Scrolling text box
I'm trying to make a commandline type text box using a RichTextBox.
I currently have it to the state where formating scrolling works so that I
can highlight text (this just uses the SelectionStart, SelectionLength, and
SelectionColor properties).
However when I try and remove text from the textbox all my formating is
trashed. Is there any way of removing text from a text box and keeping the
formating on the text, or saving the formating and reapplying it after
removal?
Thanks Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109718
Byte conversion to string
I can't seem to find any byte array conversion functions to strings.
I'm receiving data via a network packet and want to convert the byte array
contents into there actual character equivilent.
For example
Convert
byte[] byteArray = { 64, 65, some ascii numbers }
To
char[] charArray = { A, B, some characters }
by the way I don't think my ascii numbers are correct
In C++ you would just typecast them but I can't seem to do that. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109717
Index -1 does not have a value - DataGridView
I was running into a problem with the DataGridView while binding it to an
object Collection. I got it working and I thought others might like to know
how.
-------------- Problem -------------
The grid was bound to a simple object collection. The object contained
string and decimal properties, nothing to fancy. When an item was added to
the collection I would databind as follows (this happened on each item
"Add"):
myObject.CollectionProperty.Add(myBasicObject);
dgvGrid.DataSource = myObject.CollectionProperty;
bsBindingSource.DataSource = myObject.CollectionProperty;
dgvGrid.DataSource = bsBindingSource;
The reason I was binding twice was that the first bind didn't appear to
allow the grid to hold more than one item.
Now at run time if I added an object using the method above the grid would
populate and it appeared to work fine. If I enabled deleting on the grid I
could even delete the objects (using the grid and the delete button on my
keyboard)... But wait! If I added an item after I deleted all the items in
the grid (collection) and try to select it the grid would bomb out with the
following error: "Index -1 does not have a value".
-------------- Solution -----------------
After searching endlessly for some info I found that a few folks (thomas &
Pieter) had run into this error but could not find any answer as to why. I
decided to examine related objects (looking for cool property or a method
that might save the day) and while doing so I came across the
ResetBindings(bool) method of the BindingSource.
I moved the binding information in the Add routine to a more appropriate
location in the form initialization Then I simply added
bsBindingSource.ResetBindings(false);
to the Add routine, just after the object is added to the collection.
Viola! Problem was fixed, and I no longer needed to bind the grid twice. I
was able to make the binding work now with just this:
bsBindingSource.DataSource = myObject.CollectionProperty;
dgvGrid.DataSource = bsBindingSource;
Any event that's probably just a problem I would have cause I'm just
amateur, but who knows, maybe it might help someone.
Thanks,
Matt
references:
http://www.dotnetnewsgroup.com/message/329608.aspx
http://www.eggheadcafe.com/forumarchives/netframeworknetwindowsforms/jul2005/post23270599.asp
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005 77626-009-0000007-41501
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77626-009-0000007-41501
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-0000007-41501
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77626-009-0000007-41501
Microsoft Visual J# 2005
Microsoft Visual Web Developer 2005 77626-009-0000007-41501
Microsoft Visual Web Developer 2005
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005 Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109716
What is this {0} thing?
I'm sorry, this is probably a beginner .NET thing, but I never learned it.
What is this {0} or {1} stuff in Strings? I don't understand them.
--
Alex C. Barberi
Chief Executive Officer
VisionForce
http://www.visionforceweb.com Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109709
How to Move a Directory on a Remote Computer
I have a progarm that needs to login to a remote system, download multiple
directories to the local system, verify that the transfer succeeded, and
then move the directories on the remote system to a "processed" directory.
What is the best way to accomplish this? Also, how would I handle the case
where the current remote directory (with all it's sub-directories and files)
already exists in the "Processed" folder - I'd like it to just overwrite/add
tothe "Processed" directory. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109702
COM+ or Web Service?
Hi,
I have to connect to a distant DLL (.NET DLL) and I would like to know
which of the COM+ or Web service is the best... What are their pros and
cons? I absolutely don't know how COM+ works, so that's why I can't really
compare.
I've seen on the web many people are having trouble using COM+ in .NET. Is
it so difficult to integrate? Are there really bugs or they are just using
it wrong?
btw, I'm using ASP.NET 1.1. (probably C# for a web service if it's the best
way)
Thanks
ThunderMusic Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109701
ClickOnce Question - Remote location for the ClickOnce deployment
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C61605.20E8E7E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
All,
How can I retrieve the remote location for the ClickOnce deployment?
I tried the following code, but it does not work:
System.Deployment.Application.ApplicationDeployment ad =3D
System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
MessageBox.Show(ad.ActivationUri.AbsoluteUri);
Please advice.
Thanks,
John Yung
------=_NextPart_000_0008_01C61605.20E8E7E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>How can I retrieve the remote location =
for the=20
ClickOnce deployment?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2>I tried the following code, but it =
does not=20
work:</FONT></DIV>
<P><FONT face=3DArial =
size=3D2>System.Deployment.Application.ApplicationDeployment=20
ad =3D</FONT></P>
<P><FONT face=3DArial=20
=
size=3D2>System.Deployment.Application.ApplicationDeployment.CurrentDeplo=
yment;</FONT></P>
<P><FONT face=3DArial=20
=
size=3D2>MessageBox.Show(ad.ActivationUri.AbsoluteUri);</FONT></P></BLOCK=
QUOTE>
<P><FONT face=3DArial size=3D2>Please advice.</FONT></P>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>John =
Yung</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01C61605.20E8E7E0-- Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109700
String and StringBuilder ... ?
I'm using VB.NET.
I have been reading up for an exam I will be taking in a few hours, and I'm
becoming confused... a String's contents never change? I read that every time
I change a String it's actually giving me a reference to a totally different
string; and that using a StringBuilder would be better if the String will be
changing a lot. I really don't understand all this... I also don't understand
really what the Stack and HashTable objects are good for, and I need to know
this as well. (I hope someone can answer these questions before I take the
exam.) Thanks.
---
Alex C. Barberi
Chief Executive Officer
VisionForce
http://www.visionforceweb.com Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109697
Allow application to use multiple version of GAC assembly
Hi,
I'm developing an application (MyApp.exe) that uses an assembly installed in
the GAC (OthersLib.dll). When deploying my application, I want to allow my
application to run with different versions of the GAC assembly (version 3.5.*
to 5.1.0.0). I tested my application against all those versions.
Due to licensing problems I'm not allowed to redistribute the assemby
OthersLib.dll, which should already be installed as part of another product.
Nor I can force the user to install the latest version of the OtherLibs.dll.
Is it possible to configure my application to work with any of those
libraries in a simple way?
Thank you very much! Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109695
Services
I have written a VBNET sample service that uses FindWindow to find another
VBNET forms app HANDLE and send it a message via SendMessage. The service
runs under the local system account with INTERACT WITH DESKTOP checked. It
works fine.. I need it to run under a local user account (the local
administror) so I changed the service to run under it. It runs but has
broken my FindWindow and SendMessage. I even have manually found the VBNET
forms app's Handle and jammed it into the VBNET service's sendmessage but it
still doesn't work. (The forms app never receives the message). How can I
get the INTERACT WITH DESKTOP checked back with a user account and NOT the
local system account.
Thanks
BUC Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109694
Status Lan connection - bytes send / recieved
Hi all,
http://www.aswin.be/nictransfer.JPG
How can I get these numbers with VB.NET ?
I thought somewhere in WMI but I can't find them.
Thank you,
Aswin Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109691
Status Lan connection - bytes send / recieved
Hi all,
How can I get these numbers with VB.NET ?
http://www.aswin.be/nictransfer.JPG
I thought somewhere in WMI but I can't find them.
Thank you,
Aswin ( aswin(at)aswin.be ) Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109690
Single sign-on with SAML Token
Hi - I hope someone can help me please...
currently we are working on single sign-on authentication project.
we have tried Microsoft SAML practice project from gotdotnet site....
we want to implement custom authentication by checking user in database and
if user is valid then only SAML token should be created and should be sent
back to the client.
now client will use this secured SAML token for sub sequent applications'
call and each application will in-turn validate in-coming SAML Token and
depending on SAML token's validity will return output ...
our prior requirement is to get all configuration settings to implement
custom authentication with database and create SAML Token then after for
authenticated users...
please give me your guidance and proper direction to achieve above goal
with practicing SAML project...
Many thanks...
--
Pete Wood
Contact me at http://www.webserviceshelp.org for more help
_________________________________________________________ Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109689
Should I try to upgrade to 2.0 over this problem?
Just looking for some other opinions.
I've Been working for some time on a problem with a web service running
on framework 1.1. The problem occurs as a result of multiple calls to
HttpWebRequest.GetResponse (or BeginGetResponse).
Originally I was creating my own threads and calling GetResponse in
each. After a huge amount of troubleshooting, I figured the problem
must be with my created threads and I switched to calling
BeginGetResponse multiple times so the runtime can create it's own threads.
In each case the error is the same (a thread is unable to read from
machine.config because the AppDomain is not loaded) and starts occurring
when I try to make about 25 HTTP requests. Stack trace is at the top of
this page:
http://tinyurl.com/8f9lu
This seems like an error in the ASP.NET engine. Is it worth the effort
to upgrade the project to 2.0? Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109682
Forms Authentication stopped working for .htm/.doc extensions in 2.0!!
Hello,
I posted this under security and there were no replies.
We have a website running ASP.Net 1.1 using forms authentication and even
protects .htm/.doc files. We have associated such files to ASP.Net in
Application Settings.
Everything was working great until we moved to 2.0.
If we try to access a .htm page we get "Page cannot be displayed errror".
In the Application settings there are two check boxes "script engine" and
"verify that file exists" both are checked by default.
If the script engine check box is unchecked then it gives me "execute access
is
denied" error.
Why is this breaking change from 1.1 to 2.0, how do we resolve it?
Thanks.
--
Jay Balapa
www.atginc.com Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109677
Timeouts are not supported exception
I am trying to xml serialize an object but when I pass in a memory stream I
get an exception saying that "Timeouts are not supported by this stream."
Why are timeouts required? This happens when I compile with VS2k5 .Net 2.0.
It seems to work with .Net 2k3.
public void Serialize(Stream stream)
{
XmlSerializer serializer = new
XmlSerializer(typeof(MyObject));
XmlTextWriter writer = new
XmlTextWriter(stream,System.Text.Encoding.GetEncoding(1252));
serializer.Serialize(writer,this);
writer.Flush();
} Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109675
ASP.Net Deadlocks
I keep getting this message in the log on my web server. When it happens the
website will be unavailable for a bit and then things will return to normal.
Does anyone know how to resolve this issue?
ISAPI 'c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll'
reported itself as unhealthy for the following reason: 'Deadlock detected'.
--
Mike Hollibaugh Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109673
Late Binding Com : MissingMethodException
Hi everybody,
I have created a c# module using late-binding to call methods of a com
component.
Everything works fine in a console application but when I use this module in
a web application I've got this exception : System.MissingMethodException:
Method System.__ComObject.MyMethod not found. Here is my code :
Type _UserComType = Type.GetTypeFromProgID("MyDll.MyClass");
object _UserCom = Activator.CreateInstance(_UserComType);
object[] parameters = new object[2];
parameters[0] = "Data1";
parameters[1] = "Data2";
object result = _UserComType.InvokeMember("MyMethod",
BindingFlags.InvokeMethod, null,_UserCom,parameters);
Does anybody have a idea to solve this problem ? Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109672
Can't create WebRequest; NullReferenceException thrown
All my Web-based .NET 1.1 applications stopped working as soon as I
uninstalled the older versions and installed .Net 2.0 and Visual Studio 2005
this week. The apps use WebClient.DownloadFile() and
WebClient.DownloadData(); in 2.0 those methods always throw WebExceptions
that contain NullReferenceExceptions as their InnerExceptions.
Since WebClient is said to be a thin wrapper around WebRequest/WebResponse,
I wrote a test program to see if I could get around (or help define) the
problem. A similar exception is thrown when I call WebRequest.Create(); the
stack trace ends up in exactly the same place as it did with
WebClient.DownloadFile(). For example:
Uri RequestUri = new Uri("http://www.microsoft.com/");
WebRequest request = WebRequest.Create(RequestUri);
results directly in a NullReferenceException with the following stack trace:
at System.Net.WebRequest.get_PrefixList()
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
What could be causing this? The URI and local filename are valid, there is
no proxy server involved, Internet access on this machine is working just
fine, and I'm logged on as an Administrator (yeah, I know I shouldn't be, but
...). My configuration wasn't changed except to remove all previous versions
of the framework and Visual Studio before installing version 2.0 of the
framework and Visual Studio 2005.
Many thanks. Tag: What's the difference between the DirectX control and the Win Amp Control? Tag: 109670
What's difference between the two? How do I know when to use which one?