Licensing of controls
Greetings
I am developing a licensed component. The license is a design-time license.
However, I want to do some checks at runtime as well. Therefor, I rely on an
embedded license key at runtime.
I am using a license file, which I signed with my private key and since the
assembly is strongly named, the public key is embedded in this assembly. At
design time the license provider is then verifying the file with this public
key. Sofar so good, nothing fancy about it (except for the time I spent on
this because of the total lack of consistent documentation).
However:
The next roadblock I stumbling upon is the behavior of LC.exe, or rather
VS.2003:
When an assembly is built that is using a licensed control, the licensed key
is supposed to be embedded in that assembly.
This doesn't work with me, at least not most of the time and I don't find
the logic behind it.
When I create the [assemblyname].exe.licenses resource directly with the
License Compiler I can see that the license key is embedded in the resource.
The use of LC on its own is already a daunting exercise, because if you
follow the scant MSDN documentation, you'll get a LC0003 error (unresolved
....), the only way I got it working is by throwing everything in one folder
(lc.exe, licensed control, licenses.licx, ...).
When I rebuild the assembly in VS, the LC is called by VS (I learned that in
one of the news groups, is this documented somewhere?) and the
[assemblyname].exe.licenses resource is re-created, but mostly empty, i.e.
without the license key.
From my trials with LC.exe, I found out that, when you get an LC0003 error,
the resource is still created and then it is identical to the resource
created by VS (empty). So it looks like that when LC is called by VS, some
error happens, this error is trapped by VS, the whole build process
continues and you end up with no embedded license key.
The other roadblock I encountered is the behaviour of the GetSavedLicenseKey
method of the LicenseContext class.
The MSDN documentation states that this method only does what it should do
if it is overridden. But it looks like that the truth is much more complex:
my experience is that it sometimes does work and sometimes not, and again I
don't find the logic in it.
In some cases the calling assembly has actually the license key embedded in
its resources (easily verifyable with Reflector) and then it happpens from
time to time that the saved license key is actually retrieved by this
method, without being overridden!
The Microsft news groups are full of questions about licensing and most end
up with no answer, or in the best case, an adhoc reply from helpful support
people. What we need is a comprehensive, consistent documentation on
licensing. After all, how can we expect that our customers can use our
products in a seamless way if we are struggling ourselves with the
basics????
Awaiting your comments (and hopefully some answers to my questions!)
Thanks in advance,
Roland Tag: Cross Tab in Crystal Reports Tag: 87394
Wrapping unmanaged C++
Hello,
I have a huge set of unmanaged C++ classes, which I wrapped in managed C++.
Everything is in one assembly.
Using my wrapper in C# works fine.
However, when I would like to use the wrapper in managed C++ I get the
following warnings and errors:
warning C4945: 'MyType' : cannot import symbol from 'mydll.dll': as
'MyNamespace::MyType' has already been imported from another assembly
'mydll.dll'
stdafx.cpp(0) : see declaration of 'MyNamespace::MyType' first seen type is
used; re-order imported assemblies to use the current type
(Is this caused by forward declarations?)
And:
error C3635: 'MyUnmanagedNamespace::MyUnmanagedType': undefined native type
used in 'MyNamespace::MyType'; imported native types must be defined in the
importing source code
did you forget to include a header file?
My questions:
How can I solve these problems WITHOUT having to include my unmanaged header
files in the project that uses my assembly? I am not using any unmanaged
stuff, so why would I like to include anything?
I want to re-use the code at binary level only.
Greets,
Arthur Tag: Cross Tab in Crystal Reports Tag: 87390
Installing VIsual Studio 2002 and Visual Studio 2003 on the same PC
Hi,
I have Visual Studio.Net 2002 and the .Net Framework 1.0 on my PC. I
am considering moving to Visual Studio 2003 and .Net Framework 1.1 for
any new projects. Before I begin just wondering if its okay to install
both versions on the same PC and if there are any issues I should be
aware of. I want to retain the ability to edit/update my old 1.0
projects in Visual Studio 2002 without upgrading them. Basically I
want to have both versions of Visual Studio and the Framework on the
same box.
I'm aware of the notion of side-by-side execution of the .NET
Framework but does it extend to the Visual Studio itself.
Thanks,
Paul Tag: Cross Tab in Crystal Reports Tag: 87388
FastGetExistingType() method question?
hi there:
I found FastGetExistingType() method in Object class.I want to look it's
source.how to resolve this.
thanks a lot.
--
Jiangyh
http://bbqb.com/bbs/index.php
http://freelance.forumzero.com/bb/index.php Tag: Cross Tab in Crystal Reports Tag: 87386
Entering a timespan value of 24:00 in property pane
I have a custom control with a property of type TimeSpan.
When I enter a value of 24:00:00 in the property pane I get an "Improper
property value" error.
How do I enter this value?
And how do I enter a value greater than 24 hours?
Thanks,
Jos Tag: Cross Tab in Crystal Reports Tag: 87383
Unattended installation .Net Framework 1.1 sp1
Have a major corporate deployment of SP1 to do. Haven't found any information
on howto script have tried many things with no real success have extracted
the msp and still haven't successfully scripted. Help PLEASE!
Thanks! Tag: Cross Tab in Crystal Reports Tag: 87377
SQLdebugger user account
Hi ,
I have this SQLDebugger user account and is it created because i have
installed Microsoft.NET Framwork 1.1 .
I have also installed IIS and that will create IUSR_computername and the
default ASPNET user account but does it create SQLDebugger ?
thks & regards Tag: Cross Tab in Crystal Reports Tag: 87373
Date Time Picker
Hello,
I have a DateTimePicker on my form and I need to make every Even week Red
and every Odd week Yellow.
Any Suggestions will be greatly appreciated (Detailed help is even more
appreciated).
Thanks,
Chuck Tag: Cross Tab in Crystal Reports Tag: 87370
confusing remark in MSDN Control.BeginInvoke() doc
I've read a bit about the differences between delegate's BeginInvoke and
Control.BeginInvoke, and it sounds like Control's BeginInvoke() ensures that
the delegate is invoked in the thread that created the Control's context.
This implies no thread pool threads are involved. A test app bore this out.
What confuses is me is this note found in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassbegininvoketopic2.asp:
Note The BeginInvoke method calls the specified delegate back on a
different thread pool thread. You should not block a thread pool thread for
any length of time.
Why does the Control.BeginInvoke() documentation mention thread pool
threads? Are they somehow involved with multi-threaded control programming (I
hope not)? Is it just a doc error? Does the "back" in "calls the specified
delegate back" refer to some other callback delegate that isn't mentioned?
Don't even get me started on the second sentence.
TIA Tag: Cross Tab in Crystal Reports Tag: 87369
serializing a ParamArray???
can anyone tell me if ParamArray's are serializable, and if not what do I
need to do to serialize it?
_Will Tag: Cross Tab in Crystal Reports Tag: 87365
storing the username and password information
I am developing a backup application.
I have a provision where users from different domain can login and then do
backups.
My question is ,once they login I need to store the info,i.e their username
and password should be stored securely somewhere,so that whenever next time
the backup runs it uses these stored credential to authenticate.
I was thinking of using a xml file to store the iformation and do hashing to
the password.
But how do i retrieve the password back after hashing?? so that my backup
application can use it again to authenticate?
Is there any other way to do this?
Thanks and regards Tag: Cross Tab in Crystal Reports Tag: 87359
Assembly.Gettype freezes
On certain assemblies, when I do a LoadFrom to get a reference, and
then call GetTypes to get a list of types, the application freezes.
If, however, I put a try/catch block around the code, it does NOT
freeze, but NO EXCEPTION is thrown.
This is for my plugin structure. I have 30 dlls to search. The
first 10 are ok. #1, which is not much different than the other 10,
fails. Ok.. so I skip that one manually.. 11-16 work, 17 fails.
I figured I would inspect the failing ones and see why. There is no
common bond.
Also, one more thing.. this seems to work successfully, for all DLLs
on most machines, but one a couple of clients reporting a problem.
Anyone have any advice?
Here is the code. FINDPLUGINS is the routine I call....
Public Shared Function FindPlugins(ByVal szPath As String, _
Optional ByVal
objHostInitialize As ITPPHost = Nothing) As AvailablePlugin()
Dim objArrayPlugins As ArrayList = New ArrayList
Dim szDLLs() As String, nIndex As Integer
Dim objDLL As [Assembly]
Dim szInterface As String = GetType(ITPPPlugIn).ToString()
'Go through all DLLs in the directory, attempting to load them
szDLLs = Directory.GetFileSystemEntries(szPath, "*.dll")
For nIndex = 0 To szDLLs.Length - 1
Try
Dim szFileName As String =
System.IO.Path.GetFileName(szDLLs(nIndex))
If Not szFileName.StartsWith("ActiveReports") Then
objDLL = [Assembly].LoadFrom(szDLLs(nIndex))
ExamineAssembly(objDLL, szInterface,
objArrayPlugins, objHostInitialize)
End If
Catch e As Exception
'Error loading DLL, we don't need to do anything
special
End Try
Next
'Return all objArrayPlugins found
Dim Results(objArrayPlugins.Count - 1) As AvailablePlugin
If objArrayPlugins.Count <> 0 Then
objArrayPlugins.CopyTo(Results)
Return Results
Else
Return Nothing
End If
End Function
Private Shared Sub ExamineAssembly(ByVal objDLL As [Assembly], _
ByVal szInterface As String, _
ByVal objArrayPlugins As
ArrayList, _
ByVal objHost As ITPPHost)
Dim objType As Type
Dim objInterface As Type
Dim objAP As AvailablePlugin
Try
'Loop through each type in the DLL
For Each objType In objDLL.GetTypes
'Only look at public types
If objType.IsPublic = True Then
'Ignore abstract classes
If Not ((objType.Attributes And
TypeAttributes.Abstract) = TypeAttributes.Abstract) Then
'See if this type implements our interface
objInterface =
objType.GetInterface(szInterface, True)
If Not (objInterface Is Nothing) Then
'It does
objAP = New AvailablePlugin
objAP.AssemblyPath = objDLL.Location
objAP.ClassName = objType.FullName
'if the host exists, then instantiate
If Not objHost Is Nothing Then
objAP.Plugin = CreateInstance(objAP, objHost)
objArrayPlugins.Add(objAP)
End If
End If
End If
Next
Catch ex As Exception
Throw ex
End Try
End Sub Tag: Cross Tab in Crystal Reports Tag: 87358
.net framework 1.1 installation on Windows NT 4 with SBS
Hi,
In reading KB815176 it says that you can install .net framework on
systems including NT 4.0, but it says that you need to have IIS 5 installed.
However IIS 5 to my knowledge (and reading posts) can't be installed on NT
4.0. Does having small business server for NT 4 make a difference? I'm not
familiar with it as I'm installing it on a friend's machine.
Thanks - Zack Tag: Cross Tab in Crystal Reports Tag: 87355
DateDiff Function behaves differently on NT under .NET Frameowrk
I have a weird behaviour to report.
I am using DateDiff function to do some date comparison.
Its supposed to throw an error if the input date is less than the current
date.
This happens when the dates compared are 11/11/1111 11:11 and current date.
The date comparison works on Windows 2000 and XP but not on Windows NT. The
same date comparison code works in case the date is say 1/11/2003 09:00, but
not for the above mentioned date.
I do
if DateDiff("n", date1, currentDate) > 0 Then
err
Else
no err
Endif
As you can see I dont hold the difference result in a variable.. so it can
be overflow error..
any ideas
thanks
vidit Tag: Cross Tab in Crystal Reports Tag: 87354
Re-flunk-tion!
I'm wondering why reflection fails in this instance... I'm trying to do drag
and drop using ListViewItem objects. When I check the DragEventArgs to see
if it has my ListViewItem, I have to use GetDataPresent to test if it's the
data I'm looking for. I have to pass a System.Type object representing the
type of a ListViewItem object. But I've found that Type fails to correctly
identify a ListViewItem. If I try this:
Type f = Type.GetType("System.Windows.Forms.ListViewItem");
f is null. According to MSDN, this should work, as their sample is this:
Type myType1 = Type.GetType("System.Int32");
Am I wrong? What's going on? Tag: Cross Tab in Crystal Reports Tag: 87351
Monitor (lock)
I'm having a tough time understanding the concept of locking "on an object".
If a monitor is used to protect a critial section, then what does any object
reference have to do with it? Does this allow different instances of the
same object to, in fact, run the same critical section and assume they're
accessing instance varaibles only?
What would be a scenario where some method in class A would lock on an
instance of class B?
If you're locking to protect global (static) data structures, then you lock
on typeof(this), right? Well... what does that mean? You've locked on an
instance of the Type class, so no other instance can run that critical
section?
I guess I just don't understand why you need the object reference. This
also leaves me a little confused on the SyncRoot property of may collections.
Is locking on 'this' not good enough? Do I actually have to lock on the
underlying data structure to assure thread safety.
Thanks,
Andrew Tag: Cross Tab in Crystal Reports Tag: 87350
Interface into Windows Update from .Net
I'm looking to implement a complex schedule/programming logic for installing
Windows Critical Updates. Can anyone point me in a direction to head using
.Net?
Thanks! Tag: Cross Tab in Crystal Reports Tag: 87338
ASP.NET 2.0 Maintain Scroll Position on PostBack with Mozilla FIREFOX in the works?
Does anyone know if ASP.NET 2.0 is going to incorporate "maintain scroll
position on postback" in non-IE browsers like Firefox?
This seems like an often requested feature on these newsgroups since the
beta version of .NET.
Microsoft heavily advertises it's .NET browser detection advantages, why not
make some use of it and hope that Microsoft follows up their words with
actions? as well as following up on their agreement from the anti-trust
settlements on being anti-competitive.
Thanks. Tag: Cross Tab in Crystal Reports Tag: 87326
Application Error
I have a very simpel application that fills a datagrid with data from a SQL
Server on a local network. The problem is that on one PC the application
loads fine, but on the other I get NullReferenceException in my FormLoad
Event. The connection on the failing application has a valid and working
connection to Server and I checked that the builds were the same. Does
anyone have any ideas or hints. Tag: Cross Tab in Crystal Reports Tag: 87318
ANN: Bob Powell's Beginners Guide to GDI+
Many of you use the GDI+ FAQ or Windows Forms Tips and Tricks site every
day. There are also hundreds of people who have mailed me asking for a
totally basic beginners guide that assumes minimal knowledge of .NET to get
started.
In response to these requests I have created a new series of articles. The
Beginners Guide to GDI+.
The guide is an on-going work and will be updated frequently. If you're
interested in recieving notifications about new articles there is an RSS
feed associated with the site.
Code for the articles are in Visual Basic.NET and C#. You can choose the
flavour as you read.
If you know anyone at your work, school or university who might be
interested in this free, no-strings attached service please be sure to pass
this URL along.
http://www.bobpowell.net/beginnersgdi.htm
To subscribe to the RSS feed associated with this service use:
http://www.bobpowell.net/beginnersgdi.xml
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article. Tag: Cross Tab in Crystal Reports Tag: 87310
IDocHostUIHandler Help!!
Hi All,
I'm having some problems getting this working, i have the interfaces
defined, i have a form with a web browser control on it, and i have a web
page which i want the context menu disabled and when a button is clicked to
callback to the application throught external.SomeMethod
Now, the following code is where i am setting the client site of the
browser:
public void SetClientSite(IOleClientSite clientSite)
{
object obj = webBrowser.GetOcx();
IOleObject oc = (IOleObject)obj;
oc.SetClientSite(clientSite); // clientSite is the form that contains the
bbrowser
}
This runs fine and does not produce any errors, but the problem is that when
i right click the page the ShowContextMenu method of the IDocHostUIHandler
interface is not fired even though it is implemented in the class:
uint IDocHostUIHandler.ShowContextMenu(uint dwID, ref tagPOINT ppt, object
pcmdtReserved, object pdispReserved)
{
return Convert.ToUInt32(this.enableContextMenus);
}
And the GetExternal method is likewise not being fired.
Can anyone help, what am i doing wrong?
Thank in advance
Neil Tag: Cross Tab in Crystal Reports Tag: 87298
Starting up application from dll.
Excel can be started up throw automation like:
Excel.Application myExcel = new Excel.Application()
How can I create this functionality for my own application?
Kind regards,
Sebastiaan. Tag: Cross Tab in Crystal Reports Tag: 87296
minimise console app window?
This is a multi-part message in MIME format.
------=_NextPart_000_0677_01C4D170.8104BC10
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Hi,=20
i have a vb.net console application.
can i control the console window appearance to be minimized?
can i control the window position when i configure the executable to run =
minimized when i run it from the windows task scheduler?
TIA, z.
------=_NextPart_000_0677_01C4D170.8104BC10
Content-Type: text/html;
charset="windows-1255"
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=3Dwindows-1255">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>i have a vb.net console =
application.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>can i control the console window =
appearance to be=20
minimized?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>can i control the window position =
when i=20
configure the executable to run minimized when i run it from the windows =
task=20
scheduler?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0677_01C4D170.8104BC10-- Tag: Cross Tab in Crystal Reports Tag: 87291
need help
Hi
After I have finished my web application project I wanted to upload it, or
to put it on a server for a local network, is there any way to avoid putting
the code on the server. Mean am I able to transform it to file that will not
be open so no one can see the code.
Thank you Tag: Cross Tab in Crystal Reports Tag: 87287
w3wp.exe locking DLL and PDB files.
This is a multi-part message in MIME format.
------=_NextPart_000_063D_01C4D14E.2A5CDE00
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Hi,=20
i have an ASP.NET project that is using a (Class Library Project) VB.NET =
DLL.
for some reason after running some pages on the web server, and trying =
to compile the Class Library DLL, it can't compile because the DLL is in =
use (and the PDB too), and the w3wp.exe process is the process locking =
the DLL (as viewed with Sysinternals - Process Explorer).
this is a huge problem. i need to do IIS reset in order to free the DLL!
1. why is the w3wp.exe process is locking a class library dll and not =
locking the asp.net DLL?
2. what will be in production environment, if i have to stop the web =
server in order to replace the DLL, it is unacceptable.
3. with asp-dot-net DLLs i only have to replace the DLL and the web =
server is updated. now with shared Class Library project I should have =
more problems?
please help it's urgent.
TIA, z.
------=_NextPart_000_063D_01C4D14E.2A5CDE00
Content-Type: text/html;
charset="windows-1255"
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=3Dwindows-1255">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>i have an ASP.NET project that is using =
a (Class=20
Library Project) VB.NET DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for some reason after running some =
pages on the web=20
server, and trying to compile the Class Library DLL, it can't compile =
because=20
the DLL is in use (and the PDB too), and the w3wp.exe process is the =
process=20
locking the DLL (as viewed with Sysinternals - Process =
Explorer).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this is a huge problem. i need to do =
IIS reset in=20
order to free the DLL!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1. why is the w3wp.exe process is =
locking a class=20
library dll and not locking the asp.net DLL?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. what will be in production =
environment, if i=20
have to stop the web server in order to replace the DLL, it is=20
unacceptable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3. with asp-dot-net DLLs i only have to =
replace the=20
DLL and the web server is updated. now with shared Class Library project =
I=20
should have more problems?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>please help it's urgent.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_063D_01C4D14E.2A5CDE00-- Tag: Cross Tab in Crystal Reports Tag: 87282
Multithreading and RollBacks
Hi
I have a multi-threaded application that is of Parent-Child relation. For
example App1 will run and on completion fire App1.1, App1.2 and App1.3 which
can run in parallel. App2 depends on the successful completion of the last
three. If App2 fails or any of the three, I want the whole thing to
rollback.
How can I accomplished the rollback in multi-threading environment? Each App
writes to the db.
regards
walterd Tag: Cross Tab in Crystal Reports Tag: 87273
How to read Outlook attachments in .NET ?
I have tried Jet.OLEDB with OleDbDataAdapter(sqlText, connectionString), but
this doesn't seem to let me identify or more importantly open attachments. Tag: Cross Tab in Crystal Reports Tag: 87270
Reverse usage of public/private RSA encryption keys for licensing?
The way that RSACryptoServiceProvider works is that we encrypt with a
public key and decrypt with a private key. This architecture works
great for people sending messages to me. However, I now have the
opposite application:
I want to put a license file on a destination computer and be sure
that it remains unaltered. It would be great if I could encrypt it
with a private key at our office and transmit the public key and the
encrypted file to the destination computer, where anybody can decrypt
it and read it, but not change it because we have the private key at
our office.
I've read posts to "simply reverse the public and private RSA keys"
but tried several variations of switching RsaParameters.D, DP, P, DQ,
Modulus and others, to no avail.
I'm sure that a solution exists, just that I do not know it.
How do I, in C# .NET, send a license file to a destination computer,
with a public key, anybody can read it, but only we can change it?
Thanks. Tag: Cross Tab in Crystal Reports Tag: 87269
regex puzzle!
The objective is to extract the first n characters of text from an
HTML block. I wish to preserve all HTML (links, formatting etc.), and
at the same time, extend the size of the block to ensure that all
closing tags are recovered.
For example, simply extracting the first 400 characters of a HTML
block may result in an <i> opening tag being including, but its
closing tag being excluding. Or a link may get chopped halfway - [...
blah blah <a href="ht] may be the last few characters of the recovered
phrase.
Ideally, if any html opening tag is included in the first n
characters, then any number of extra characters should continue to be
extracted from the source block until all paired closing tags are
found.
We can assume that the source block is well-formed HTML, and every
opening tag has a closing tag (whether optional or not). Furthermore
(if it makes any difference), we can assume that all tags are given in
their simplest forms with no attributes (e.g. <p>, <ul>, <li>, <b>),
except for anchor tags, which have the href attribute of course.
Can anyone suggest a regular expression to do this? Tag: Cross Tab in Crystal Reports Tag: 87268
Windows compound files
Are windows compound files supported under .NET?
Compound files are like a directory - there are several streams in a
single file. I have C++ code for some object classes that use compound
files and
am having difficulty getting it to compile under .NET because some standard
windows header files create compiler errors. Even classes that simply use
IStream to
read and write themselves will not compile, with errors found in files
supplied
with Visual Studio.
Any suggestions or help would be appreciated.
Steve Strommen Tag: Cross Tab in Crystal Reports Tag: 87267
Anyone have info on the dreaded Q316146 bug? ... (i.e. There is no Original data to access)
I'm absolutely baffled why Microsoft has decided to give so little
information about this issue. We here (as with many other's I'm sure)
have wasted countless hours of time finding, researching and
redesigning around this issue. I wish someone would clarify
Microsofts position on this.
For example, it would be nice to know
a) Yes we are aware of it, it's fixible and is a high priority
b) Yes we are aware of it, but it would require a rewrite of
ADO.NET so it's taking a long time but a fix is coming
c) Yes we are aware of it, but it will not be fixed until .NET 2.0
d) Yes we are aware of it and it's not being fixed. good luck
fools!
Now let's analyze what this bug really means. Microsoft has banked
it's entire future on .NET (which I might add has been a success so
far). With that in mind, most medium to large size applications
utilize some form of database and DataSets, DataTables, etc... is the
new defacto way in .NET to represent this data in memory. This bug is
very easy to get as your application get's more complicated. With
this line of thinking, shouldn't this be one of Microsoft's highest
priororities!!!
-Dave Tag: Cross Tab in Crystal Reports Tag: 87265
url parameter
hello
how can i get the parameter "param" from the url
http://localhost/myapp/webform1.aspx?param=p1 in the serverside c# code?
thank you Tag: Cross Tab in Crystal Reports Tag: 87262
xml posting
I am developing two asp.net web projects.
When the last page of the first project is done, it redirects to the first
page of the second project.
However, I need to transfer some data to the second project and I want to
use xml data for this not query strings.
Anyone know how to achieve this?
Thanx in advance Tag: Cross Tab in Crystal Reports Tag: 87260
Icons on .Net FW
Hi,
I am developing an application for pocket pc 2002, but I want to attach an
icon image to the .exe file. Anyone knows how to do it? Ive already created
the cab file, but does not work, it just copies the image files but the
application is still as an standar .exe
Thanx a lot!
--
Cheers! Silviuxa ;) Tag: Cross Tab in Crystal Reports Tag: 87258
Framework 1.1 Service Pack 1 Question
I am addressing this message to Microsoft directly.
Recently this service pack was released, and it has fixed many issues.
However, one glaring bug fix, for some reason or another, was left
out of this service release. The VersionNotFoundException which will
occassionally rear its ugly head when using expression columns in
datatables. This bug has been known for a while. For some reason,
the release of Framework 1.1 didn't fix it, and yet another
opportunity to fix it has come and passed. What is the deal? Does
Microsoft not know where the cause of this error is? Is it not a
priority? I have a large project which uses expression columns on a
rather large scale. The only workaround I have ever seen documented
is simply "don't use expression columns." For some of us that is just
not an option.
Does anyone have a workaround?
Will someone at Microsoft please look into this and give us developers
some advice as to how to work around this bug? Would that same person
give us some kind of time frame as to when this will be fixed. I
don't care if VS.2005 fixes it. That is years away from being a
development solution for some of us. And would that same person
please express our frustration to somebody there at Microsoft so this
will get fixed ASAP.
Thank you. Tag: Cross Tab in Crystal Reports Tag: 87250
aspnet_wp.exe Problem
I have performance issues with aspnet_wp.exe. Some time I got the following
errors on the production server and hang-up the server until I killed the
process. Please advice!
aspnet_wp.exe (PID: 3648) stopped unexpectedly.
aspnet_wp.exe (PID: 4136) was recycled because it was suspected to be in a
deadlocked state. It did not send any responses for pending requests in the
last 180 seconds. This timeout may be adjusted using the <processModel
responseDeadlockInterval> setting in machine.config.
aspnet_wp.exe (PID: 1320) was recycled because memory consumption exceeded
the 613 MB (60 percent of available RAM).
--
DotNet Guerrilla Tag: Cross Tab in Crystal Reports Tag: 87249
No touch deployment and non assembly files
I want to deploy an application using no touch deployment. I've used no
touch a few times before and it worked allright. This time the app i need to
deploy is bigger and we'd like to include an help file with it and maybe a
txt file to be shown inside the application.
I'd like to know if anyone has been succesful in deploying non assembly
files using no touch deployment.
If this is not possible, what would you suggest to deploy the help file ?
Thanks a lot Tag: Cross Tab in Crystal Reports Tag: 87246
windows service interact with desktop
Hi,
Im writing a widnows service and i want the service to interact with the
desktop. However, I do not want to go to control
panel->services->properties->logon and then selec the check box "Allow
service to interact with desktop". How can i do this in code. I know this
could be done in VC6. How do i do this in .NET.
I found the following code on the web and it sets the flag right but my
installer auto starts the service the service runs and the check box is
selected but when i try to open a messageboxes the service throws an exception
"It is invalid to show a modal dialog or form when the application is not
running in UserInteractive mode. Specify the ServiceNotification or
DefaultDesktopOnly style to display a notification from a service
application."
--CODE--
Microsoft.Win32.RegistryKey ckey =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Services\service1", true);
if(ckey != null)
{
if(ckey.GetValue("Type") != null)
{
ckey.SetValue("Type", ((int)ckey.GetValue("Type") | 256));
}
}
--CODE--
Also i get the following error when trying to enumerate all shellwindows
"COM object with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} is either not
valid or not registered."
What could be the problem??
--
Regards,
M i s b a h A r e f i n
.NET Programmer
En Pointe Technologies
Reply to : marefin@enpointe.com
www.enpointe.com Tag: Cross Tab in Crystal Reports Tag: 87239
Dispose Question
Just a quick question on implementing the Dispose pattern.
The .NET Framework SDK documentation states that an ObjectDisposedException
should be thrown from instance methods (other than Dispose) when resources
for the object have already been disposed. This would include any
non-shared property procedures as well, right? Seems logical. Just looking
for verification.
Thanks! Tag: Cross Tab in Crystal Reports Tag: 87238
Question with despair - will buy movie tickets for the first one who helps
Hi,
I have spent my entire weekend trying to solve this, now I have to admit I
need your help.
Here is my code:
Dim cred() As DataSourceCredentials
Dim cc As New DataSourceCredentials
cred(0) = cc
cred(0).DataSourceName = "198.87.87.6"
cred(0).Password = "XXX"
cred(0).UserName = "YYY"
It crashes with the error message:Object Reference not set to
an instance of an Object
What am I missing? Tag: Cross Tab in Crystal Reports Tag: 87233
dotnet framework 1.1, 2.0
hi all,
I have two questions.
1. My application with launch condition checking the client PC has .net
framework 1.1.4322, but i have tried that if there are .net 2.0 installed
it seems not work well as expected. I still prompt and require 1.1 framework
to be installed. How to solve it so that my version could pass the launch
condition when framework 2.0 is installed as well as 1.1
2. how should i setup the dependency on a deployment project so that .net
framework will also included inside my setup file.
Thanks a lot.
Rena. Tag: Cross Tab in Crystal Reports Tag: 87232
WSE support in framework 2.0
Is there plans to have any of the WSE classes supported in version 2.0 of the
.NET framework?
Thanks,
Oldman Tag: Cross Tab in Crystal Reports Tag: 87229
Problem in developing newsreader in vb.net
Hello,
I am developing a Newsreader in vb.net and i am getting a problem in posting
article to newserver for a particular set of newsgroups. i developin g this
newsreader using nntp commands.I need vb.net code for posting a article . I
getting a problem in defining a article format.
Kindly , Send me code for posting article in vb.net using nntp command
"post".
Please send code only in vb.net but not c#
with regards,
balu. Tag: Cross Tab in Crystal Reports Tag: 87222
Operator Overloading -- Inherently Thread Safe?
Hi all,
If an overloaded operator method contains multiple lines of code does it
need to be synchronized at the class level or is it inherently thread safe?
TIA
Cole Tag: Cross Tab in Crystal Reports Tag: 87220
C++ and .NET compatability
Hi,
Is it possible for a non-.net C++ application to use a .NET DLL file?
Thanks in advance,
Tim. Tag: Cross Tab in Crystal Reports Tag: 87211
"master" attribute not recognized
Hello,
I'm trying to define a default master page in web.config
for my web application lihe this:
<appSettings/>
<system.web>
<!--
Set the default master page
-->
<pages master="Templates/MasterAdvertising.master"/>
<!--
Set compilation debug="true" to insert debugging symbols
into the compiled page.
Because this affects performance, set this value to true
only during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration of the
security authentication
mode used by ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration of what
to do if/when an unhandled
error occurs during the execution of a request.
Specifically, it enables developers
to configure html error pages to be displayed in place of
a error stack trace.
-->
<customErrors mode="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<!--
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
-->
</customErrors>
</system.web>
</configuration>
At the compilation i get this error
D:\projects\cal\online\SRC\CalOnline2005UI\Templates\MasterHeader.master:
ASP.NET runtime error: Unrecognized attribute 'master'.
(D:\projects\cal\online\SRC\CalOnline2005UI\web.config line
17)D:\projects\cal\online\SRC\CalOnline2005UI\Templates\MasterHeader.master
Anybody knows how can be fixed?
Thanks,
Nidi Tag: Cross Tab in Crystal Reports Tag: 87210
regular expression for comma delimit
hi all,
i'm trying to retrieve contents that are comma delimited like the following.
aaa, bbb, ccc, ddd
how would my regular expression match string look.
also what if there are whitespaces (cr,lf,tab) how would like ignore them ?
aaa(cr,lf, spaces), bbb, ccc.........
thanks, Tag: Cross Tab in Crystal Reports Tag: 87203
Problem with asp-net apps
Hi,
I'm new to .Net. I've installed visualstudio.net 2003. There were no
problems in set up. But my asp.net web applications are not running properly.
Sometimes, the Page_load event doesn't fire properly and sometimes the
changes in teh web page are nort getting reflected. I've tried to debug. But
I'm unable to debug the application too. (Windows apps are getting debugged).
CAn anyone help me out.
Note: I've installed the IIS after installing the .Net.Does it cause any
problem?
I've included myslef in the Debuggers' list too. I tried uninstalling and
reinstalling the software. But it didn't work out. But there is no problem
with s\w as otehrs have successfully installed it. My OS is win 2000 prof.
I've tried reregistering asp_net . But I encountered teh followign error.
"The web server reported the following error when attemptinh to create or
open the web project located at the following URL:
'http;\\localhost\WebApllication2', 'HTTP\1.1403 Access Forbidden'."
I've also set teh execution permissions to 'Scripts only' in the Home
Directory Tab.
But still the problem is persisting. Can anyone help me out Tag: Cross Tab in Crystal Reports Tag: 87197
Hi,
Is there any way I can set the font of the fields defined the crosstab of
the crystal report programmatically?