|
I Uploaded my application and I got Following Error ::
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: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Pls Help me How to Configure the Trust Level
As our Application(ASP.net) Bydefault run under full trust
How we can make it as partially /medium trusted sothat it runs on server
I tried it by doing changes in systems web.config,web_mediumtrusted.config but
not running
Is There simple steps sothat I runs my application on server
swapnil
|
|
|
|
|
To resolve this behavior, grant the FullTrust right to the remote share:
1. On the Web server, open Administrative Tools, and then double-click Microsoft .NET Framework Configuration.
2. Expand Runtime Security Policy, expand Machine, and then expand Code Groups.
3. Right-click All_Code, and then click New.
4. Select Create a new code group. Give your code group a relevant name, such as the name of the applications share. Click Next.
5. In the Choose the condition type for this code group list, select URL.
6. In the URL box, type the path of the share in the following format:
file:////\\computername\sharename\*
Note Replace computername with the name of the computer that is hosting the remote share. Replace sharename with the name of the share.
7. Click Next. On the next page, select Use an existing permission set, and then select FullTrust.
8. Click Next, and then click Finish.
9. Restart Microsoft Internet Information Services (IIS) to restart the ASP.NET worker process.
Hope this will solve your problem.
SSK.
|
|
|
|
|
By doing The steps you said
I trust level of remote share get changed for url get changed by doing the steps
But I have The Application created in full trust i.e (defualt the aspnet sets)
When we upload the application on web server it gives security exception
How can I make changes n web.config file
so that it connects to the web database server
Is there any setting That we have to do from admin panel
swap
|
|
|
|
|
Hello Everyone,
I've created my drop-down menu in Javascript and using this menu in my web Application and running perfectly.
But there is a problem now i've taken a "Dropdownlist" in my project and this "Dropdownlist" hiding my JS menu
Plz suggest me the way so that this "Dropdownlist" being hidden in my JS menu
.............
|
|
|
|
|
Seriously, I haven't got a clue what you're trying to tell us...
Please explain your problem and ask your question in English....
|
|
|
|
|
Eduard Keilholz wrote: Seriously, I haven't got a clue what you're trying to tell us...
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Sir,
I've a web application project
And i've created my menu(Dropdown menu) in JavaScript and i'm using this menu in my project and this menu running great But in one web page i've to use a "Dropdown List" tool just below the Javascript dropdown menu and then this Javascript dropdown menu being hidden after the "Dropdown List" so plz let me know how my Javascript should not be hidden in my web page
The same problem also arise with the flash file and Javascript Dropdown menu
but i solved that problem by.............
<param name="wmode" value="Transparent" />
<embed ...wmode="Transparent" .......="" />
Thnx ......
But now try to understand more...........
|
|
|
|
|
Ok, now it's much clearer but let me wrap up to see if I understand it well. You have a drop down menu in Javascript and on the same page just under the menu, you have a drop down list. The drop down list is hiding the drop down menu, meaning the menu is being rendered behind the list.
Is this correct?
Have you looked at the z-index in the styles? maybe you can make the drop down list render to the back by changing the z-index: greater number for the drop down menu and smaller number for the drop down list. Check this site: http://www.w3schools.com/css/pr_pos_z-index.asp[^]
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Can you give me details how this problem get solved for dropdown List
I have The same problem
swap
|
|
|
|
|
|
Is there an elegant solution where I can include a list of strings to be queried using a SELECT statement with the IN operator, for instance,
SELECT * FROM [Operation] WHERE [Ack] = @Ack AND [AckFlag] = @AckFlag AND [Terminal] IN ('item1', 'item2', 'item3')
I tried substituting the list with a variable like this,
SELECT * FROM [Operation] WHERE [Ack] = @Ack AND [AckFlag] = @AckFlag AND [Terminal] IN (@terminals)
And later in some _Load event I replaced the text, @terminals, with a list I generated from iterating a check box list of checked items. Well it does work this way, but it causes some side-effects, namely not datakeys are associated to the gridview datakeys property which should have been there if it was a normal sql statement with parameters assigned nicely at design time.
I hope somebody out there has a more elegant solution before I attempt trying to programmatically perform string operations on a SqlDataSource object through its SqlCommand property.
Thanks.
|
|
|
|
|
First I have had some problems with datakeys myself. It seems any time you try to manually set a parameter in the object datasource the datakeys go away, which is very bad. So I use a template column with a label that contains the key and the label is marked as visible=false. That seems to work pretty good for me.
Next you should probably be calling a stored procedure. Pass in your delimited list into a input parameter in the stored procedure. Then if you use this function you can join to your delimted list passed in:
CREATE FUNCTION [dbo].[fnSplit](@sText varchar(max), @sDelim varchar(20) = ' ')
RETURNS @retArray TABLE (idx smallint IDENTITY(1,1) Primary Key, value varchar(max))
AS
BEGIN
DECLARE
@value varchar(8000),
@bcontinue bit,
@iStrike smallint,
@iDelimlength tinyint
IF @sDelim = 'Space'
BEGIN
SET @sDelim = ' '
END
SET @sText = LTrim(RTrim(@sText))
SET @iDelimlength = DATALENGTH(@sDelim)
SET @bcontinue = 1
IF NOT ((@iDelimlength = 0) or (@sDelim = 'Empty'))
BEGIN
WHILE @bcontinue = 1 BEGIN
--If you can find the delimiter in the text, retrieve the first element and
--insert it with its index into the return table.
IF CHARINDEX(@sDelim, @sText)>0 BEGIN
SET @value = SUBSTRING(@sText,1, CHARINDEX(@sDelim,@sText)-1)
INSERT @retArray(value) VALUES (@value)
--Trim the element and its delimiter from the front of the string.
--Increment the index and loop.
SET @iStrike = DATALENGTH(@value) + @iDelimlength
SET @sText = LTrim(Right(@sText,DATALENGTH(@sText) - @iStrike))
END ELSE BEGIN
--If you can't find the delimiter in the text, @sText is the last value in
--@retArray.
SET @value = @sText
INSERT @retArray (value) VALUES (@value)
--Exit the WHILE loop.
SET @bcontinue = 0
END
END
END ELSE BEGIN
WHILE @bcontinue=1 BEGIN
--If the delimiter is an empty string, check for remaining text
--instead of a delimiter. Insert the first character into the
--retArray table. Trim the character from the front of the string.
--Increment the index and loop.
IF DATALENGTH(@sText)>1 BEGIN
SET @value = SUBSTRING(@sText,1,1)
INSERT @retArray (value) VALUES (@value)
SET @sText = SUBSTRING(@sText,2,DATALENGTH(@sText)-1)
END ELSE BEGIN
--One character remains.
--Insert the character, and exit the WHILE loop.
INSERT @retArray (value) VALUES (@sText)
SET @bcontinue = 0
END
END
END
RETURN
END
So then your code would look like:
SELECT * FROM [Operation] o
join fnsplit( @terminals, ',') t on o.Terminal = t.value
WHERE [Ack] = @Ack AND [AckFlag] = @AckFlag
I am assuming that your comma delimiting your list.
Anyway, I hope that helps.
Ben
|
|
|
|
|
hi friends
i have two page a.aspx and b.aspx.
I want to write code on page load event in b.aspx to get the title of a.aspx.
how do I perform this?
Thanks in advance
Pathan
---------------------------------------------------
|
|
|
|
|
in b.aspx:
string previousTitle = this.PreviousPage.Title;
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
a.aspx is not my previous page
best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
well then in that case I think you cannot get the information you want.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Do you (can you?) have title of a.aspx in resources? You can get it from there.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hi my dear friends,its nice to meet you all again...now i did a small project in ASP.NET[C#]...its working fine...in localhoast...i bought a domain to host it in net.....but....i dont know how to place my project in that domain...and dont know to work with ftp...please explain them step by step....thank you in advance...
Hi,Im Razana
|
|
|
|
|
Hello Friend,
You must have FileZilla or any other software to upload your project over Internet.............
If you have Enter Your I.P.Address,User, and Password in the appropriate places and click to connect
Now you will find a Folder named "wwwroot"
Open your "wwwroot" and drag all files of your project in this folder
and Thus your uploading goes on....................
...............
Your Friend
|
|
|
|
|
Hi I want to some idea from you.
I am generate a table in run time. That is so many fields is created.
Now I want field(3) to field(7) calculate a sum into field(8). In this process how to manage in UPDATE Queries.
Note that: some times I want sum from field(4) to field(6) into field(7)
Please answer to me quite urgent.
thank you.
abglorie
abglorie
|
|
|
|
|
Hrrmmm... Also a quite readable question... However, i'll give it a shot...
What do you think about creating a trigger which will add those columns and store the values in a diffrent field??
UPDATE table set field8 = field3 + field4... ... + field8 FROM A, INSERTED B WHERE A.RecordId = B.RecordId
or something quite close to that
abglorie wrote: Note that: some times I want sum from field(4) to field(6) into field(7)
Define 'sometimes' ??
|
|
|
|
|
Good day everybody...
I am facing a problem with ASP.Net when trying to update information by clicking Edit on Grid View. I didn’t do anything with the code. I used only the build in functionality of Grid View, but it give me an error which is
"ObjectDataSource 'ODSIPAddress' could not find a non-generic method 'UpdateQuery' that has parameters: OrgCode, Original_OrgCode, original_IPAddress."
Moreover, I create new update statement to do the updating, but also do not work. This is happing only in updating. I don’t know If I am missing some thing or what???
In addition, I tried my query and test it and it is working fine inside, but not in Grid View.
Thanks a lot.
|
|
|
|
|
What's the signature of the method your ObjectDataSource calls on an Update? Parameters?
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
You will have to associate the update command with the method that handles the updated, in this case there are OrgCode, Original_OrgCode, original_IPAddress parameters which i assume a textbox.
Just associate the method at run time
or even you can have the datasource attached with updatecommand in the following manner
UpdateCommand="UPDATE Organisation SET OrgCode= @OrgCode,
Original_OrgCode= @Original_OrgCode, original_IPAddress=@original_IPAddress WHERE someId=@someId"
I have just created an example sql statement you can replace it with the original statement
|
|
|
|
|
Thank you my brothers for your help, but I am new in this field if you could be more clear and here what I have.
In my Grid View I have 3 parameters:
1- IPAddressID (primary key) int not mull (cannot be updated (auto generated)).
2- OrgCode int not null (a dropdownlist that is taken from another table).
3- IPAddress varchar(50) not null (textbox).
Here is the error I am getting:
ObjectDataSource 'ODSIPAddress' could not find a non-generic method 'UpdateQuery' that has parameters: OrgCode, IPAddress, original_IPAddressID, Original_OrgCode, Original_IPAddress.
Here is the query that I am using for updating in the dataobject:
UPDATE DHS_IPAddress
SET OrgCode = @OrgCode, IPAddress = @IPAddress
WHERE (IPAddressID = @Original_IPAddressID) AND (OrgCode = @Original_OrgCode) AND (IPAddress = @Original
|
|
|
|