|
can you post code where you retrieve size from database
based on the selection ??
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Why are you passing the ToString of a boolean? That is asking for trouble.
If all the radio buttons are in the same group you should add else before the 2nd and 3rd if statements. No reason to check for all 3 every time.
I also don't understand why you wouldn't pass size to your second form.
|
|
|
|
|
Hi All,
When I try and run my ASP.NET/c# application using VS 2005 the following exception is thrown:
"Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers."
Source Error:
Line 35:
Line 36: AUser UserObject = new AUser();
Line 37: UserObject.VerifyCredentials("...", "...", "...");
Line 38: if (UserObject.IsVerified)
Line 39: {
Source File: p:\...\Login.aspx.cs Line: 37
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
ASystems.AUser.GetConnection() +0
ASystems.AUser.VerifyCredentials(String DSNEntered, String IDEntered, String PWDEntered) +281
Login.btnLogin_Click(Object sender, EventArgs e) in p:\...\Login.aspx.cs:37
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5247
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +247
System.Web.UI.Page.ProcessRequest() +79
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +23
System.Web.UI.Page.ProcessRequest(HttpContext context) +110
ASP.login_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rrscaseinformation\56b618f4\ea67f999\App_Web_7ndzreci.4.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +391
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76
This exact same code works fine on one of our other machines. Is there some .NET setting that needs to be added/modified on the machine that is recieving this error?
Any help would be greatly appreciated.
Thanks,
Mel
|
|
|
|
|
|
Hi Mark,
Thank you for your reply. I added the AllowPartiallyTrustedCallers attribute to the assembly of the application but this didn't solve the issue.
Let me given more imformation. I have a webApplication that has the dll file (let's call it App1.dll) of a windows application in it's bin folder, which I have also added as a reference. App1.dll is where AUser() is created from and in turn AUser.VerifyCredentials() is called in line 37, which is giving the error.
I added the AllowPartiallyTrustedCallers attribute to the assemblyinfo.cs file of the App1 project and then copied the new App1.dll file to my webApp's bin file again and re-added the reference.
Am I missing a step? Is there something else I need to carryout?
Thanks,
Mel
|
|
|
|
|
MWRivera wrote: a windows application
That could be the key. Not all code can be used in a web application because of security restrictions. What are you trying to use? It could be making a link demand to some API method, directly or indirectly, that is not allowed in a web environment.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
This same code works fine locally on my machine it's when I try and run it from our server.
I guess there is no need for me to run it like this on the server, maybe it will work fine once I publish the webSite in VS.
Thanks for your reply.
Mel
|
|
|
|
|
We have some .Net 2.0 apps, a 3.5 app, and plan to do 4.0 in the future.
Do I need to install all 3 runtimes, or is there a super-version?
4.0 looks really small compared to 3.5, and I think it may only contain stuff specific to 4.
I need an app that will automatically deliver a new BBBBBBBBaBB (beautiful blonde bimbo brandishing bountiful bobbing bare breasts and bodacious butt) every day.
John Simmons / outlaw programmer
|
|
|
|
|
2.0, 3.0 and 3.5 use the same 2.0 CLR. 3.0 and 3.5 are just a bunch of extensions on top of 2.0.
4.0 is a completely new CLR. There are 2 versions of the .NET Framework now. There is the full, heavyweight version that everyone is used to seeing and now there is a Client Profile version which is much lighter in weight and only includes the components that are used the most across the majority of applications.
You can read more about it, and what's included and what's not, here[^].
|
|
|
|
|
You need all the three runtimes installed (unless you specify the runtime using the runtime tag in your application configuration file).
.Net 4 is actually a big change over the others as a new version of the CLR has been released along with it.
modified on Tuesday, May 4, 2010 1:43 AM
|
|
|
|
|
i tried to install a .dll file to gac using gacutil.exe. i did it successfully , but i don't see that dll
in the gac folder.i want to know whether it copied to gac from the source when we install it using gacutil, if not what happens.
|
|
|
|
|
For GAC Commands and other details you can check following links.
http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80%29.aspx[^]
You can confirm whether your assembly is really added to GAC or not by traversing following path
which opens GAC Space where all the assemblies (added to GAC) reside.
%WINDIR%\assembly
You can also add your assembly to GAC by directly drag your assembly and drop it in GAC Space.
Hope this will help!
Jinal Desai - LIVE
|
|
|
|
|
Make sure your dll is strongly named before trying to put it in the GAC.
|
|
|
|
|
thank you for your help, i found my dll in the assembly.
|
|
|
|
|
How add launch condition for my deployment to insure that the required registry tree exists and that AutoCAD 2008 or higher version is installed on the client machine?
I am using registry key search and set the launche condition.
In search Target machine node i have added node via Add registry search
in this node of property window i set the property like this.
Name :Search for AutoCAD 2008 RegistryEntry
Property:R17.1
RegKey:HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R17.1\ACAD-6001:409
Root:vsdrrHKCU
Value:AutoCAD 2008
Then in Launch Condition node via right click i did Add Launcd Condtion
and in this property window i have set the value like this.
Name :AutoCAD 2008 Condition
Condition: 17.1
Installurl:
Message:AutoCAD 2008 is not installed in your machine.
After succesfuly builded this setup if run the set up icon the error message
comes out "AutoCAD 2008 is not installed in your machine" where AutoCAD 2008 is alredy installed.
Can anyone guide me plz where i am wrong here.
with regards
tarak
|
|
|
|
|
how to apply jquery effect to dynamic data in asp.net
|
|
|
|
|
You need to reference the jquery javascript in your application. Beyond that, you need to provide more information as to what effects you are trying to apply.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
I'm trying to include some user credentials for accessing a remote
webservice. The remote location requires that I use Basic
authentication(RFC2617), which means, from browsing around, I need to include
the user name and password in the HTTP header, but I'm not quite sure
how to access the HTTP header that is sent with the webservice soap
message request.
Can anyone help?
Thanks in Advance.
Kunal Tilak
|
|
|
|
|
|
Very useful. A link to a website requiring registration before you can view the article.
Maybe google result 2[^] would have been more use, as it is accessible to anyone.
|
|
|
|
|
|
for safety reasons the lock object should be private, so nobody can mess with it. That is all there is to it.
|
|
|
|
|
|
all is fine if the outside world cannot touch the lock object, so if you have say a return _collection; somewhere, then the first is no good. Same for the second if you were to have a way to export _collectionLock somehow.
It is good practice to have a private member that is used for locking and locking only. That makes verification a bit easier.
|
|
|
|
|