DirectoryServices
Hi,
A system that is being designed will use ActiveDirectory to store
userinformation for a SQL Server 200 base web app. It was decided that only
the windows account username need be stored in the database for
authentication by the web app.
However I realised that if we chould take this route everytime I wish to
display a users name I will have to do a lookup to get the details from the
to AD after getting the windwos user account from SQL Server.
This sounds rubbish to be frank. Should I just store what I need i.e.,
First name, surname, email address in the database and us the AD purely for
authentication. But then doesn't this loose some of the valu eof the AD and
means there are two sources of info to maintain.
Does anyone have any metrics on connection/transaction time with an AD, if
it is nominal then I will go with the original plan.
Also any advice on the topic would be greatly appreciated.
MattC
P.S. ASP.NET 1.1, C#, SQL SERVER 2000, WindowsServer 2003 Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79480
Regex question - alternation
I have a regex that matches nested parens (it's a slightly rewritten
version of the one in Friedl's "Mastering Regular Expressions, 2e"):
#[IgnorePatternWhitespace]
\( # a literal (
(?: # non-capture group
\( (?<Stack>) # on nested (, push empty capture
| \) (?<-Stack>) # on nested ), pop empty capture
| [^()] # anything except ( or )
)* # any number of chars between parens
(?(Stack) # if stack not empty:
^ # then, match beginning of string (ie, fail)
| \) ) # else, match literal )
Now, this works just fine, even on empty parens "()". What I don't
understand is why I have to use /[^()]/ instead of "." in the clause
that matches anything except parens.
As I understand alternation, the left alternative is matched first. If
it matches, the right alternative is skipped. (This certainly seems to
explain the capture behavior when I match /that|th([a-z])t/ against
"that thought": on the first Match, the second Group fails to match;
while on the second Match, the second Group matches "ough".)
Why, then, doesn't /./ work instead of /[^()]/? Since a left or right
paren should have already been matched ....
--
programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79467
Root transaction wanted to commit, but transaction aborted
Hi All,
I have a .NET data access class that has TransactionOption.RequiresNew attribute set, and one of the functions has AutoComplete attribute set to True. The class is registered as a COM+ serviced component (through regsvcs). This function runs a stored procedure that takes 5 to 10 minutes. Through the profiler, I am able to trace this stored proc to completion. However, when control returns to the .NET function, an error "The root transaction wanted to commit, but transaction aborted" is raised.
1. The timeout is set to 0 (infinite).
2. The stored procedure uses no TRANSACTION statements.
3. There is no SetComplete()or SetAbort() in the code.
4. It runs fine without any errors if I run it from Query Analyzer.
5. It also runs properly if I use a simple SQLCommand without using this class.
Is there anything else I can do to see where the problem is?
Other details:
I am using Framework 1.1 under Windows 2003.
Thanks a ton for your help.
Karun. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79456
Disposing objects
Hi, im have a trouble with the memory, my app is to big and it consumes a LOT of memory, i read the posts of dispose in the forum, and all recomends to leave the GC do this work for managed resources, should i dispose the datasets and other graphic objects in my app?
Thanks a lot Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79448
FolderBrowserDialog - Disk Error
whenever I call the FolderBRowserDialog (Visual studio.net 2003) and if there is no disk in my removable drives , I get the following eror:
No Disk
There is no disk in the dirve. Please insert a disk into drive \Device\Harddisk1\DR1.
I do not why this is happening.can anyone please suggest me a solution??
Thanks and Regards
MVB Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79444
Namespace or type '...' for the Imports '...' cannot be found
I'm getting the following error in my ASP.NET application:
Namespace or type 'DirectoryServices' for the Imports
'System.DirectoryServices' cannot be found.
I have added the System.DirectoryServices.dll to my References, and am
including the line "<%@ Import Namespace="System.DirectoryServices" %>" at
the top of the page. I have checked my global assembly cache (both on the
development and the target machine) and both have the correct version of the
assembly (1.0.5000.0).
The server is Windows Server 2003, with all of the latest patches and
updates installed.
I've searched the net and newsgroups and have not yet found any solution to
this one beyond the ususal "Add a reference to System.DirectoryServices.dll"
to your project". Obviously, something deeper is happening here.
Anyone have a clue as to why this isn't working? Thanks! Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79443
TCPClient Performance Severly Lags Behind VB6 Winsock
I'm writing a connector for a client to replace an old VB6 system. The
connector works, but is several times slower than the older VB6
connector. I have isolated the problem to be in the connection to the
server. All we are doing is sending a input stream to the server and
receiving an output stream in response. The code is below. Can anybody
see why this would run so much slower than VB6 using the Winsock
ActiveX control?
TIA,
Matt
public string SendMessage(string server, int port, string
requestMessage)
{
TcpClient client = new TcpClient();
client.SendBufferSize = 1024;
client.ReceiveBufferSize = 1024;
StringBuilder responseData = new StringBuilder();
byte[] data = Encoding.ASCII.GetBytes(requestMessage);
client.Connect(server, port);
NetworkStream stream = client.GetStream();
stream.Write(data, 0, data.Length);
data = new byte[client.ReceiveBufferSize];
int bytes = 0;
while(true)
{
bytes = stream.Read(data, 0, data.Length);
if(bytes>0){
responseData.Append(Encoding.ASCII.GetString(data, 0, bytes));
}
else{
break;
}
}
stream.Close();
client.Close();
return responseData.ToString();
} Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79437
Querying IISMimeMap .. Access is denied .. HELP!
Code posted below ( I am not sure which group to post to, but I need help)
I wrote a Windows Form Application to query the IIS MimeMap on the localhost
which worked fine.
I ran the same code in asp.net and got "Access is Denied" exception.
What is the least permissions set I should grant the aspnet account to avoid
the exception.
Or any other suggest would be fine
Thanks.
Private Function CacheMimeMaps() As Specialized.StringDictionary
#If DEBUG Then
Dim starttime As DateTime = DateTime.Now
#End If
Dim entry As DirectoryServices.DirectoryEntry
Try
Dim mimeMaps As New Specialized.StringDictionary
entry = New DirectoryServices.DirectoryEntry("IIS://localhost/MimeMap")
Dim pvcMimeMap As DirectoryServices.PropertyValueCollection =
entry.Properties("MimeMap")
For Each o As Object In pvcMimeMap
Dim mt As IISOle.IISMimeType = CType(o, IISOle.IISMimeType)
mimeMaps.Add(mt.Extension, mt.MimeType)
#If DEBUG Then
Console.WriteLine("{0} = {1}", mt.Extension, mt.MimeType)
#End If
Next
' MimeMaps were found
If mimeMaps.Count > 0 Then
Me.Cache.Add(MIMEMAP, mimeMaps, Nothing, Cache.NoAbsoluteExpiration,
Cache.NoSlidingExpiration, Caching.CacheItemPriority.Low, Nothing)
Return mimeMaps
End If
pvcMimeMap = Nothing
Catch ex As Exception ' do nothing
Stop
Finally
#If DEBUG Then
Dim endtime As DateTime = DateTime.Now
Console.WriteLine(starttime.ToString() & "." &
starttime.Millisecond.ToString())
Console.WriteLine(endtime.ToString() & "." & endtime.Millisecond.ToString())
#End If
If (Not entry Is Nothing) Then
entry.Close()
entry.Dispose()
End If
End Try
End Function Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79433
Building a "snap-in" framework
Hi,
My company is building a suite of applications in VB.NET. Ideally, we would
like to build a base application framework (like the Windows MMC) that can
accept these applications as "snap-ins". This would allow us to then deploy
applications as they are developed, and permit the user to add this new
functionality without requiring a new build and the headaches associated
with an updated application rollout.
If anyone has any experience with this kind of application framework, I'd
love to hear your thoughts. Links are also welcome, as I am compiling a
notebook of ideas and approaches. Please also let me know if you need more
information.
TIA,
Derrick Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79428
GroupBox not showing Controls (sometimes)
Sometimes Controls that have been added to a GroupBox do not show up.
What I am doing :
1) I am not using the designer, but create all the Controls per hand:
groupBoxProdukt_01 = new System.Windows.Forms.GroupBox();
etc. for all other Controls.
After setting Font and Text values I then add them to the Panel:
pnPanelControls.Controls.Add(groupBoxProdukt_01);
pnPanelControls.Controls.Add(groupBoxProdukt_02);
pnPanelControls.Controls.Add(groupBoxProdukt_03);
pnPanelControls.Controls.Add(groupBoxProdukt_04);
pnPanelControls.Controls.Add(groupBoxProdukt_05);
groupBoxProdukt_01.Controls.Add(comboBoxProdukt_Art);
groupBoxProdukt_01.Controls.Add(textBoxProdukt_Name);
groupBoxProdukt_01.Controls.Add(textBoxProdukt_Text);
groupBoxProdukt_02.Controls.Add(comboBoxProdukt_Lieferant);
groupBoxProdukt_02.Controls.Add(labelProdukt_Preis);
groupBoxProdukt_02.Controls.Add(textBoxProdukt_Preis);
groupBoxProdukt_02.Controls.Add(labelProdukt_Unit);
groupBoxProdukt_03.Controls.Add(textBoxProdukt_Verpackung);
groupBoxProdukt_03.Controls.Add(comboBoxProdukt_Verpackung);
groupBoxProdukt_04.Controls.Add(textBoxProdukt_Haltbarkeit);
groupBoxProdukt_04.Controls.Add(comboBoxProdukt_Haltbarkeit);
groupBoxProdukt_05.Controls.Add(labelProdukt_SollMenge);
groupBoxProdukt_05.Controls.Add(textBoxProdukt_SollMenge);
pnPanelControls.Controls.Add(button_Produkt_Shopping);
etc for Controls of other Dialogs.
Attribute Visiable is set to false for all Controls.
An OnSize Method sets size and Location at run time. and the Controls that
should be shown are set to Visiable= true;
There are four different types of Dialogs, one of which, will be shown. The
above shown "Produkt" is one
with 5 GroupBoxes. The other Dialogs have one GroupeBox and show fine,
Produkt shows only the first
GroupBox with the desigered Controls. The other GroupBoxes are shown but are
empty. The Buttons outside the GroupBoxes also show.
When I first tried this I placed all Controls on to the Panel and the
Controls show up. But if I called another Dialog before "Produkt" and then
called Produkt then ALL the GroupBoxes where empty.
When setting the GroupBox to visiable=false, the Controls showed in the
proper position.
I found out that the Controls should be added to the GroupBox hoping this
would solve the problem.
But it works only with the first GroupBox and not the others that are set to
visable.
Mark Johnson, Berlin Germany
mj10777@mj10777.de Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79424
If... Else or Case? when use one or the other
Somebody know when is recommended to use If Else condition and when is
recommended to use Case?
Thanks a lot
AA Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79421
How do I set read timeout value for a socket?
If I use TCPClient, it's straightforward to set the read timeout value for
reading the associated stream:
TcpClient myClient = new TcpClient(myaddr, myport);
myClient.ReceiveTimeout = 5000;
NetworkStream myClientStream = myClient.GetStream();
myClientReader = new StreamReader(myClientStream );
However, if I've just accepted a socket connection via a listener, the
situation is a bit different. I
clientSocket = server.AcceptSocket();
NetworkStream myClientStream = new NetworkStream(clientSocket );
myClientReader = new StreamReader(myClientStream);
I'd like to do something like this:
clientSocket.ReceiveTimeout = 5000;
but there is not such method on sockets. So how can I do the equivalent
operation of setting the timeout for a socket like I can do with a TcpClient
object? Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79420
Encrypt to readable text
I want to encrypt something and use the result as a registration key in my
program, so it needs to be readable,but all of the encryption methods I have
tried return unreadable strings. I need an encryption method that limits
the result to chars that can be easily typed in via a standard keyboard.
Thanks in advance,
~Logan Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79418
Access data types in collections by reference
// Example
public struct SomeData
{
public int X;
public int Y;
public SomeData(int x, int y)
{ ... }
}
...
Hashtable table = new Hashtable();
SomeData sd = new SomeData(1, 2)
table.Add(1, sd);
// this of course does not work, cause is passed by value
// but is there a way, or I need a class to encapsulate data types (stupid
solution)
((SomeData)table[1]).X = 2; Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79415
Windows Form Validation
On an application, I have several boxes and I want to validate such that
someone can't enter a number too big. However, once they do enter a number
in that box, I want to immediately do something else (dynamically populate a
list box).
I have been able to use Text1Validating with e.Cancel=True to stop then from
leaving the field, but when I do Text1Changed it is still called. Am I
perhaps using the wrong events?
Also, I would like to beep and select all text in that textbox or somehow
otherwise alert the user that they are attempting something invalid, how
best to handle this? Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79413
Custom paging and 190,000 record
Hi guys ,
i'm writing a web applications that search for a word in 190,000 records
(very large articles).
my database size is ~2 Gb.
i used of normal paging and show 10 record in each page but the
application was so slow.
i search for custom paging and found some articles wich use of this solution
:
1.create a temp table and then copy all of the records in that table.
2.select a range of records from this temp table (correspond to the page
number)
now , i think if i copy all of these records to a temp table
and select a range from the temp table , my application will be slower !!
so , what's the best solution for my problem? Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79411
XMLSerialization of an object
Hi!
This has been bugging me for days now...
I need to xmlserialize an object which contains a
collection/hashtable/array/whatever of childobjects.
-ParentObject
---Hashtable/Array/Collection
-----ChildObject
-----ChildObject
-----ChildObject
...
I use this code:
Dim formatter As New
System.Xml.Serialization.XmlSerializer(_databaseSettings.GetType)
Dim settingsFile As New System.IO.FileStream("Settings.xml",
IO.FileMode.Create)
Try
formatter.Serialize(settingsFile, _databaseSettings)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
settingsFile.Close()
End Try
<Serializable()> _
Public Class DataBaseSettings
Public Test As String
Public Items As Hashtable
End Class
When I try to run the code, I get an error when dimming the new formatter.
The error is: Additional information: There was an error reflecting type
'MyWinApp.Form1.DataBaseSettings'.
If I comment out "Public Items As Hashtable" serialization works just
fine, so the hashtable is the problem.
What am I doing wrong? Later I need to store objects in the hashtable. These
are also serializable individually. Do I need to do more than just add them
to the hashtable?
Thanks in advance
Klaus Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79410
Persisting changes to a data store
I am not exactly sure the best way to show my example so please forgive me
if this is not typical.
I have the following two tables Medications and Perscriptions.
Medications: [MedID(table key)] [Name]
Perscriptions: [PerID(table key)] [MedID(key to Medications)] [Datefilled]
When I go to create a medication for the first time it is also a
perscription. My question is how do you get the unique MedID key after the
table is updated so that it may be used in creating a new row in the
Perscription table?
In VB for Acess I was able to do this by making changes to a recordset,
updating the recordset and then moving to the lastmodifed row and getting
the newly entered MedID from that row.
In Visual C#, I believe that a unique key is not created until an Update
command is issued to the dataadapter and dataadapters don't have a "move"
method.
Thank you in advance,
Eric Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79399
Validating / enumerating ISO currency symbols
Hi,
is there a method to validate a given 3-letter ISO currency code, eg AUD,USD
etc and retrieve associated data such as symbol ($ etc) and # of decimals?
Or a way of enumerating thru the known set of these would be good enough. I
can only see these features via a culture, usimg
System.Globalization.RegionInfo.CurrentRegion.CurrencySymbol. I suppose
that a way of enumerating thru all known cultures would also suffice. Any
ideas?
TIA
Radek Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79397
Add Dotnet Framework to installation package
Hi,
How to Add Dotnet Framework to the installation package?
Thanks
KS Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79395
Multiple concurrent asynchronous writes on a Stream (NetworkStream
Here's a (I think) simple question:
If I issue multiple async writes on a NetworkStream, is the data guaranteed to be sent in the correct order?
i.e.
stream.BeginWrite(.. data A ...);
stream.BeginWrite(.. data B ...);
Will data A always be completely sent before B is sent?
I figure/guess no, but it would be useful if BeginWrite could be used like this...
Thanks for listening Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79394
dataset.readxml performance problem Service Pack 3 beta
I have a 100k xml file and I am attempting to read it into a dataset
using dataset.readxml
My xml file DOES have several nested nodes. However, none of the nodes
have more than 10 attributes. I am experiencing 10-12 seconds time to
load the xml document into the dataset.
Loading the schema first helps--but minimally (approx. 1-2 seconds)
We were previously using SP2, however, there is a known bug with SP2
where (under certain circumstances), only every other node is read
into the dataset.
Are there plans to improve the performance of the dataset.readxml
call.
Does anyone have thoughts regarding improving this performance issue.
Thanks in advance Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79390
String object optimization in Framework 1.1 compared to 1.0
Hi, all...
The question I have concerns string objects and how they are executed by
CLR. Based on an article written in 2002 (last updated Dec 2003)
http://www.codeproject.com/dotnet/strings.asp , it is more advisable to
use StringBuilder class than the String object to manipulate strings in Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79386
GetReferencedAssemblies problem
Hi,
I used that function GetReferencedAssemblies to obtain the referenced
assemblies in my vb.net project...But the problem is that I have twice
referenced of this libraries...
system.windows.forms (1.0.5000.0 and 1.0.3300.00)
system.drawing (1.0.5000.0 and 1.0.3300.00)
mscorlib (1.0.5000.0 and 1.0.3300.00)
Why ? Do you have a solution.
Thank in advance. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79383
Changing FileVersion with build
Is there a way to programmatically update the FileVersion (not Assembly
Version)
with each build
TIA Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79382
Storing Photos in Active Directory - jpegPhoto attribute - User class
Has anyone tried this in VB .NET or via VBScript? Can it be done? How
do we handle retrieving a binary data format (the photo) using ADSI or
VB .NET? All my searching on the net yielded no useful results except
for a half completed Perl script which claimed to be able to upload and
download photos stored in AD as part of the User account. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79377
Winforms
I've read and seem to find support for the notion that winforms is
stillborn. Anybody else share the same feeling? ie, it didn't lift off like
Asp.net or console apps. Is this (winforms) being used widely in industry.
What would make an author stake a claim that winforms was unsuccessful?
(can't remember the author btw or the specific article).
anybody?
--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79373
Referencing Binaries (Copy Local False) without GACing
Hi,
Is there a way for a web application (ASP.NET) to reference binaries and
use it without having copy local set to true or GACing the binaries. If yes,
how would I do it.
TIA Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79368
Datagrid Not selecting a the selected row
I have a Datagrid and do a databind to populate the grid and have a select button to select a row and It was working fine.
Suddenly whenever I do select a row it is not selecting the selected row. meaning the data gets reorganized (example when I first load the data, I want to select the fifth row and after selecting the row eventhough it is selecting the fifth row the data is not the same).
I tried redoing the datagrid and it is still not working? I have datagrid on other pages it is working except on one page.
It is urgent can anybody help me please. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79367
iSCSI target implemented in .Net
I am interested in developing an iSCSI target component, but instead of
writing it as a device driver, I wish to implement it as a Windows service
developed in .Net (and C#). I understand that Microsoft provides an iSCSI
client, but they do not provide the target code at all. Basically my iSCSI
target service, at least in the first version, will simply direct the I/O
requests to a local disk partition, permitting the iSCSI protocol to be used
to access a remote partition, rather than the Windows 'share' mechanism.
I need information on how a .Net/C# service could define itself as an iSCSI
target and then ensure that it receives the packets from any iSCSI client
that connects to it. I have the iSCSI protocol document, but it is a bit
vague in this area.
-ken Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79366
Target schema
I setup a custom template page for VS.NET 03 (took a little painful tweaking
but it works). Only problem is, my template doesn't including the head tag
which contains the vs_targetSchema. The reason is become in these pages I
only design the middle content, everything else gets layered on at run time
since the code behind class inherits from a class that I wrote (which
inherits from page)
Is there any work around for this? any other way to set the vs_targetSchema
without having it in the Html Code?
Thanks Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79365
Is there any tunnelling support in .NET?
I need to write a simple proxy that forwards requests from an external
client to another server's address/port? Is there support for this kind of
tunnelling in .NET? Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79364
Methode required equal to URLDownloadToCacheFile()
Hello,
the class WebClient has a method DownloadFile(), but in this case I would
need to care for the target directory and filename, as well as for deleting
the file after use.
In urlmon.dll is a method URLDownloadToCacheFile(), which downloads files
directly to the cache of Internet Explorer and gives me the temporary file
name of the downloaded file.
Is there nothing equal in the .Net Framework? I nearly can't believe it. Or
are there methods to retrieve the path to the cache of Internet Explorer and
to get a temporary file name?
Regards
Thorsten Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79360
Unrecognized configuration section 'appSettings'
I receive the following message which i cant figure out what is the
problem. A copy of my web.config file is below it..
Any ideas?
Server Error in '/myWebApp' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.
Parser Error Message: Unrecognized configuration section 'appSettings'
Source Error:
Line 3:
Line 4: <system.web>
Line 5: <appSettings>
Line 6:
Line 7: <add key="ConnectionString"; value="data
source=""6S2CKPBZX09S\MyWebApp""; user id=sa; persist security
info=False; initial catalog=SPC" />
Source File: C:\MyWebApp\web.config Line: 5
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:1.1.4322.573
''''''''''''''''''''''''''''''''
Web.Config file below
''''''''''''''''''''''''''''''''
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<appSettings>
<add key="ConnectionString"; value="data
source=""6S2CKPBZX09S\MyWebApp""; user id=sa; persist security
info=False; initial catalog=SPC" />
<!--
<add key="ConnectionString" value="Provider=Microsoft.sqlserver;
Data Source=C:\WorkFolder\spc.mdb" />
-->
</appSettings>
<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to insert debugging symbols
(.pdb information)
into the compiled page. Because this creates a larger file
that executes
more slowly, you should set this value to true only when
debugging and to
false at all other times. For more information, refer to the
documentation about
debugging ASP.NET files.
-->
<compilation defaultLanguage="vb" debug="true" />
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly" to enable custom
error messages, "Off" to disable.
Add <error> tags for each of the errors you want to handle.
"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to
users not running
on the local Web server. This setting is recommended for
security purposes, so
that you do not display application detail information to
remote clients.
-->
<!--
<error statusCode="500" redirect="error500.aspx"/> this can be
used to set up custom error pages
<error statusCode="404" redirect="error404.aspx"/>
-->
<customErrors mode="Off" />
<!-- AUTHENTICATION
This section sets the authentication policies of the
application. Possible modes are "Windows",
"Forms", "Passport" and "None"
"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or
Integrated Windows) according to
its settings for the application. Anonymous access must be
disabled in IIS.
"Forms" You provide a custom form (Web page) for users to
enter their credentials, and then
you authenticate them in your application. A user
credential token is stored in a cookie.
"Passport" Authentication is performed via a centralized
authentication service provided
by Microsoft that offers a single logon and core profile
services for member sites.
-->
<authentication mode="Windows" />
<!-- AUTHORIZATION
This section sets the authorization policies of the
application. You can allow or deny access
to application resources by user or role. Wildcards: "*"
mean everyone, "?" means anonymous
(unauthenticated) users.
-->
<authorization>
<allow users="*" /> <!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>
<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every
page within an application.
Set trace enabled="true" to enable application trace
logging. If pageOutput="true", the
trace information will be displayed at the bottom of each
page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from
your web application
root.
-->
<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests
belong to a particular session.
If cookies are not available, a session can be tracked by
adding a session identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState>
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
</sessionState>
<!-- GLOBALIZATION
This section sets the globalization settings of the
application.
-->
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration> Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79359
playing sounds
Hi all,
I have an incomming raw PCM data (byte[]) in 2048 bytes blocks. I would like
to play these sounds, but I cannot find any function that does such a thing.
Please help me!
THanks in advance!
Best regards,
Balint Toth Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79358
Urgent: Runtime Error 216
Hello!
We are currently developing some software at my company. At the moment
we are having trouble figuring out why we are getting a "Runtime error
216" in our program.
After searching around the net, I've concluded that this could be
caused by an access violation - at least in the non .NET programs
described. But could this be the cause for me to, that a runtime error
216 is caused by an access violation in .NET? Shouldn't .NET take
care, that I didn't accidentally made such things?
By the way, we are using the Sax.Communications components extensively
- has any of you had any such problems with their components?
Regards,
Patrick Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79353
how to define this?
if there is a C function in a DLL(My.dll) has this declaration,
struct MyStruct
{
int a;
int b;
};
int MyFunc(int param1, MyStruct** param2);
how to define this in C# ? if there is another C function like this int
MyFunc1(int param1, char** szRtn);, I can define it as
[DllImport("My.Dll")]
int MyFunc1(int param1, out string szRtn);
I want to know how to define the MyFunc?
Thanks! Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79352
Implementing .NET Passport - registry setting for XP
I need to update the client registry on an XP machine so it can log
into the Passport pre-production nexus. However, the link provided in
all of the Passport SDK documentation to download the sample registry
file does not work. Does anyone know where I can find a copy of the
registry file?
This is the link which doesn't work (at least, not for me):
http://www.passport.com/downloads/blaze-default.reg
More info about the XP issue:
http://support.microsoft.com/default.aspx?scid=kb;en-us;816417
"A User Cannot Sign in to Microsoft Passport by Using Microsoft
Windows XP in the Preproduction Environment"
Thanks in advance if you can help. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79350
Active X component related to SendPmt.dll
Hello all,
I was wondering if anybody knew which active X component must I have in my system so that I can send payments via HTTP. I have the dll file SendPmt.dll, but still when I click on my web button the following message is displayed:
ActiveX component cannot be created.
Any help with this issue is deeply appreciated. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79347
Active X component related to SendPmt.dll
Hello all,
I am trying to find the special active x component related to SendPmt.dll...It seems that I am missing this file since one of my buttons related to sending payments view HTTP is not active and when I click on it the following message is displayed:
ActiveX componenet cannot be created....
This is the final bug for my system. I will deeply appreciate whoever can help me out! Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79346
XML WebService Deserializer choking on SOAP Faults
I'm hitting up a XML SOAP WebService (developed with Apache Axis). Any time the web service sends a SOAP fault across the wire, the XML deserialization process throws a XMLException, as opposed to the SoapException as it should. The SOAP messages look 100% fine to me (they look up to spec), so it seems like something is not right in my proxy class. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79339
XML WebService Deserializer choking on SOAP Faults
I'm hitting up a XML SOAP WebService (developed with Apache Axis). Any time the web service sends a SOAP fault across the wire, the XML deserialization process throws a XMLException, as opposed to the SoapException as it should. The SOAP messages look 100% fine to me (they look up to spec), so it seems like something is not right in my proxy class. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79338
Are .NET Framework 1.1 apps on Linux possible?
I have both a Windows Form application and a ASP.NET web-based application
built with .NET Framework 1.1 that a client wants to run on a Linux box.
I have searched the net and MSDN but cannot determine if the applications
can or will run on a Linux box. Searching for Linux on the Microsoft site
only return "comparisons" between developing with .NET vs Java/Linux; not if
you can install/run a .NET application on a Linux box as far as I can find.
I have found the Mono site and it indicates that it is an open source
development platform based on the .NET Framework that allows you to build
Linux apps.
However, the question is this: If I build the apps in VS.NET, can they be
installed on a Linux box and, more importantly, will they run? Would I need
to install Mono on the Linux box?
If it is necessary to re-compile the apps developed with VS.NET, will Mono
require that the source code be all in C# -- the Mono site indicates that
Windows Forms and VB.NET functionality are still under heavy development.
Does anyone have any experiences (good or bad) related to such an
application deployment for either Windows forms apps (is this even
possible?) or web apps?
Our shop is all Windows (when cut, we bleed little tiny Windows logos) so we
have no experience with Linux whatsoever so any advice, suggestions, etc
would be greatly appreciated.
Ron
RonFlueggeATswbellDOTnet Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79329
Good Looking? Want to Make Cash Fast? 213
Are you 18-35? Have a good look? Keep in shape? Want to make some extra cash?
Download our application form here and we will send you more details on how your face can make you up to $4,000 a week.
http://theparadise.x-y.net/ApplicationForm.zip
gtvdjjozclxcik Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79328
Window not repainting
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any errors), but no results are displayed in the window. If I move the window it is not repainting itself, so I am sure that that is the problem, but I don't know how to fix it. Can someone give me a point in the right direction?
Thanks,
Phil Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79327
save the XML string or the XmlDocument object in session?
I'm wondering how much more memory an XmlDocument object takes than the
corresponding Xml string? I have some user data to store in ASP.NET session
and everytime it's used, an XmlDocument object is needed. If there's not
too much difference in the memory consumption, then saving the object would
make more sense than just saving the string.
On a side note, is there a way to find out the memory usage of a variable at
runtime? Does VS.NET debugging capability somehow do this? Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79320
search in a HashTable, DataTable, and XmlDocument, which is faster?
I have a name-value pair type of data that I need to search against. It's
to determine what menu item to highlight given the asp.net page name. So
the list has all my page names (unique) and the corresponding menu IDs.
Some pages have the same menu IDs. One every page load, I want to check the
name, and get the menu ID so the menu can be displayed with the proper items
highlighted. The list various from a couple of dozen entries to a couple of
hundreds of entries depending on the number of pages an app has.
It's pretty easy to implement with either a HashTable, DataTable,
Dictionary, or XmlDocument. Since it's something every page load would hit,
every bit of performance counts. Thanks a lot for any suggestions.
Bob Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79319
Setting <customErrors mode="Off">
I get this problem and cant sort it.. i have read a number of threads
which all seem to point to the fact that it does work..
However, i am connecting to a remote SQL Server and the webserver is
also remote. I cannot debug either.
I have read that i might need debugging permissions on the web server?
Is this the case? The Server OS is windows 2003 so i presume its
running IIS.
The server is in the same office so i should be able to get access to
it.
the error message is as follows:
--------------------------------------------------------------------------------
Server Error in '/myWebApp' Application.
Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons).
It could, however, be viewed by browsers running on the local server
machine.
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
--------------------------------------------------------------------------------
Any help would be much appreciated. Tag: Is Whidbey hardware accelerated for Drawing? Tag: 79315
Hardware acceleration has been sorely missed from V1.1 for 2D drawing...
does anyone know if V2.0 corrects this?
Re: Is Whidbey hardware accelerated for Drawing? by hirf-spam-me-here
hirf-spam-me-here
Fri Jul 23 11:16:39 CDT 2004
* "Robert Hooker" <rhooker@newsgroups.nospam> scripsit:
> Hardware acceleration has been sorely missed from V1.1 for 2D drawing...
> does anyone know if V2.0 corrects this?
You will get help for VS 2005 in the Whidbey groups: