| Permissions Error When Accessing Access Database |
|
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- Frontpage Client >> meta'sAre meta tags necessary on every page of the site, or just the index.
I'm trying to decide if purchasing one of those 'drive customers to your
site' programs is worth the money.
thanks much
--
N
- 2
- ASP.Net >> Datareader vs Tableadaptor questionHi, I currently display all the data on a website using tableadaptors
and objectdatasources.
Would it be significantly faster if I was to display the data by
writing the code for a datareader and connecting to the database
directly and populating my tables that way?
Or is the tableadaptor using a datareader anyway for simple select
statements?
This all comes about as I have read a few articles regarding the
benefits of datareader over datasets, and I am a bit confused if the
tableadaptor/objectdatasource method I am using is using datareaders or
datasets?
I have a read quite a few articles but none the wiser as yet.
Thank you,
Steve.
- 3
- ASP/Active Server Pages >> Please help with "Checkboxes"I have 50 checkboxes whose "yes" values are being e-mailed to a specific
user after the submit button is selected. The e-mail recipient sees only the
names of the checkboxes that were selected, however, there is a lot of white
space where the unselected checkboxes exist, but are not visible.
Can someone show we some a way to get only the selected checkbox values to
appear sequentially without spaces?
Any help is greatly appreciated. Please respond to newsgroup only.
- 4
- ASP.Net >> GZip output compression with AJAXHi. To make page downloading quicker, I added GZipStream into the
Response filter. My (shortened VB) code snippet from Global.asax looks
like this:
...........................................
Sub Application_BeginRequest(...)
If Request.RawUrl.Contains(".aspx") And _
Not Request.Headers("Accept-Encoding") Is Nothing Then
If Request.Headers("Accept-
encoding").ToLower().Contains("gzip") Then
Response.Filter = New GZipStream(Response.Filter,
CompressionMode.Compress, True)
Response.AppendHeader("Content-encoding", "gzip")
' Else...try deflate
End If
End If
End Sub
...........................................
I added the check for .aspx in the request because it was messing up
images. Now that I'm using AJAX, it's giving me problems again. When
AJAX (I mean ASP's AJAX thing, but I'm not using Atlas) tries to
communicate with the server, it (JS) alert()s me that it could not
parse the server's response, and is probably because of a filter
(meaning this simple GZip stream).
How can I more efficiently check whether or not it is appropriate to
compress the output? And, by the way, is there a better way of
compressing output that won't mess up with images and could possibly
compress AJAX also?
-Mike PII
- 5
- ASP.Net >> Export datalist or gridview to ExcelI have a lot pages with either a datalist or a gridview and I would
like to provide print functionality to the users so that the current
page is exported to Excel when the user clicks the Print button.
Since I'm a big fan of reuse I don't want to create a separate print
version of each page since it's too much work to do and to maintain.
Is there a easier way of doing this?
Regards,
S
- 6
- Frontpage Client >> FP2K3: Adding a Server to my Site?I have web-space in two places. These are 5MB of free space included =
with my Road Runner broadband account and an almost unlimited amount of =
space on my in-house IIS 6.0 server running on Windows Server 2003. =20
Port 80 is not blocked by Road Runner. However, I neither want to abuse =
this nor raise any red flags at Road Runner.
So, I am creating all my freely available public pages on my Road Runner =
web space, but I want to store any significant images (>50K in size) or =
download files on my personal server.
How do add my server to my site in Frontpage?
carl
- 7
- ASP.Net >> I am facing a serious issue when trying to start an applicationMy asp.net application uses a class which needs an unmanaged dll named
SSlibrary.
When trying to load the page it gives me the folllowing error.
=== Pre-bind state information ===
LOG: DisplayName = SSLLibrary
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/Licmanager
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: SSLLibrary
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/licmanager/e2cac9e2/bed35a47/SSLLibrary.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/licmanager/e2cac9e2/bed35a47/SSLLibrary/SSLLibrary.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/Licmanager/bin/SSLLibrary.DLL.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: SSLLibrary, Version=1.0.2098.26325,
Culture=neutral, PublicKeyToken=null
Can any body help me out of this situation.
Regards
Girish
- 8
- ASP.Net >> Formatting vs 2005Hello,
I drag 2 images next to each other in a vs 2005 web page.There is a
white space between them. When I look at the code it is formatted to be on
seperate lines.If I remove all the spaces and the tags are next to each
other it is correct(No whitespace). How do I make this the default?Its
rather annoying.
Thanks
Mike
- 9
- IIS >> Applications that don't existHi,
My IIS Application Pools contain child applications that don't exist.
That is to say, there *was* a directory in a website that had an IIS
Application Scope applied to it, but the directory was deleted by the
MSFTPSVC service, yet the Application is still listed under its parent
application scope.
When I save the metabase to an XML file, the application's filesystem path
is there, but it's for a directory that doesn't exist.
Whilst I could fix it by recreating the directory, removing the Application
Scope, then removing the directory, it's hardly ideal.
Is there another way to remove dead applications from IIS? There isn't a
"Delete" context-menu option on an Application Pool's child application
nodes.
Thanks
- 10
- ASP.Net >> Membership Provider ErrorHi there,
I am using asp:Membership to control authentication and role management
in my site.
The Membership wizard locate the users and roles in a SQL file(SQL
express) locally, but I need to upload the DB in my server and users
and roles are not there even if I copy the DB file.
My question is how can I create users and roles on remote server?
TanX.
Saman
- 11
- ASP.Net >> Accessing cookies from response objectHi,
I'm working on a winapp that sends a httprequest to a remote server.
The server actually sends back a cookie for login request. I have
searched a lot. I didn't find the right solution for accessing the
cookies from the response object.
I tried to check the cookie count on response object which shows
always as 0. Some one please tell me how to access cookies from a
httpresponse.
Thanks,
Hari
- 12
- IIS >> iis - cgi timeout problemHi,
I would appreciate if someone can answer the problem:
I am having a "cgi timeout problem" after running a script for 5 mins (with
IIS 5.1 on Windows XP)
I have tried to change the 'cgi script timeout' (Web Sites ->
Configuration -> Process Options using the IIS management tool), following
some instructions/recommendations, but it seems it does not work.
If someone can suggest how to solve the issue, I would greatly appreciate
your help.
Many thnaks,
Jae
- 13
- ASP.Net >> Changing HTML encoding in the DB?I'm migrating a table of web site content into our CMS. Our CMS (custom
built) stores all HTML in the DB as encoded html.
This one particular table, however, has the HTML stores as unencoded HTML.
I'd like to make this table consistent with the rest of the site data in all
the other tables.
The only way I can think of to do this is to write an ASPX page that queries
all records, then loops through them all doing an UPDATE statement. Just
wondering if there's a better/faster/easier way?
-Darrel
- 14
- Frontpage Programming >> Microsoft VBScript runtime error '800a000d'Hello,
I have an error: Microsoft VBScript runtime error '800a000d'
Type mismatch: 'OpenDB' and it says to go line 4 on the page with the error
here are the 1st 4/5 lines of code that I have
<%
If Request.Form("Operation") <> "Create" AND Request.Form("Operation") <>
"Edit" And Request.Form("Operation") <> "Print" Then
Call OpenDB(SQLConn)
Set RS = Server.CreateObject("ADODB.RecordSet")
'----- Find Number of questions
tempQuestionCount = SQLConn.Execute("Select Count(ID) From PM_Questions")
Session("QuestionCount") = tempQuestionCount(0)
Line 4 is Call OpenDB(SQL Conn)
Do you know what can be the problem ?
- 15
- ASP/Active Server Pages >> request and responsesThe below partial code gets UPS rates. It's based on a request and response.
I can get the request to write to screen with "response.write
server.HTMLEncode(strXML)".
How can I get the response to write to screen so I can see what's being
returned by UPS?
thanks
<%
strXML is established above here.....
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST","https://www.ups.com/ups.app/xml/Rate?",false
xmlhttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= = = = =
'this code writes UPS XML Request and Response to screen
' response.write server.HTMLEncode(strXML)
' response.End()
' = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= = = = =
xmlhttp.send strXML
xml_response = xmlhttp.responseText
Set mydoc=Server.CreateObject("Microsoft.xmlDOM")
mydoc.loadxml( xml_response )
Set Response_NodeList = mydoc.documentElement.selectNodes("Response")
ups_result =
Response_NodeList.Item(0).selectSingleNode("ResponseStatusCode").Text
.....
%>
|
| Author |
Message |
be_675

|
Posted: Fri Jun 29 02:11:54 CDT 2007 |
Top |
ASP.Net >> Permissions Error When Accessing Access Database
When I attempt to access a Microsoft Access database from my website, I
recieve the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Security Exception
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.
Take note that the description says that this can be fixed by modifying the
configuration file, which I am assuming is referring to the Web.config file.
I have successfully run this application on my machine using Visual Studio
2005's Development Server with the settings currently in the Web.config
file, so if modifying the Web.config file will fix it, what do I need to
change? Thanks.
--
Nathan Sokalski
EMail@HideDomain.com
http://www.nathansokalski.com/
Web Programming48
|
| |
|
| |
 |
Alexey

|
Posted: Fri Jun 29 02:11:54 CDT 2007 |
Top |
ASP.Net >> Permissions Error When Accessing Access Database
On Jun 29, 2:50 am, "Nathan Sokalski" <EMail@HideDomain.com> wrote:
> When I attempt to access a Microsoft Access database from my website, I
> recieve the following error:
>
> Server Error in '/' Application.
> -------------------------------------------------------------------------=
--=AD-----
>
> Security Exception
> 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=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089' =
failed.
>
> Take note that the description says that this can be fixed by modifying t=
he
> configuration file, which I am assuming is referring to the Web.config fi=
le.
> I have successfully run this application on my machine using Visual Studio
> 2005's Development Server with the settings currently in the Web.config
> file, so if modifying the Web.config file will fix it, what do I need to
> change? Thanks.
> --
> Nathan Sokalski
> EMail@HideDomain.comhttp://www.nathansokalski.com/
Why do you use OleDb for MS Access?
http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbconnection.=
aspx
An application that creates an instance of the OleDbConnection object
can require all direct and indirect callers to have sufficient
permission to the code by setting declarative or imperative security
demands. OleDbConnection makes security demands using the
OleDbPermission object. Users can verify that their code has
sufficient permissions by using the OleDbPermissionAttribute object.
Users and administrators can also use the Code Access Security Policy
Tool (Caspol.exe) to modify security policy at the computer, user, and
enterprise levels. For more information, see Code Access Security and
ADO.NET.
http://msdn2.microsoft.com/en-us/library/0x4t63kb.aspx
|
| |
|
| |
 |
Nathan

|
Posted: Fri Jun 29 11:40:00 CDT 2007 |
Top |
ASP.Net >> Permissions Error When Accessing Access Database
I use OleDb for MS Access because of the namespaces that are included in the
.NET Framework (or that I have ever heard of from third parties)
System.Data.OleDb is the one that is supposed to be used when accessing a MS
Access database. The reason I am using MS Access for this website rather
than a higher quality database such as SQL Server or Oracle is because the
organization the site is for cannot afford anything else.
I have used System.Data.OleDb for MS Access databases in other sites I have
written, such as my personal website, with no problem, and any books that I
have read that use MS Access as their example database have as well, so I
know that it is the right one to use.
I have never had to deal with any of the objects you mention (except for
OleDbConnection, of course). Could you please either give me a code sample
or direct me to a site that gives one? Thanks.
--
Nathan Sokalski
EMail@HideDomain.com
http://www.nathansokalski.com/
"Alexey Smirnov" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
On Jun 29, 2:50 am, "Nathan Sokalski" <EMail@HideDomain.com> wrote:
> When I attempt to access a Microsoft Access database from my website, I
> recieve the following error:
>
> Server Error in '/' Application.
> --------------------------------------------------------------------------------
>
> Security Exception
> 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.
>
> Take note that the description says that this can be fixed by modifying
> the
> configuration file, which I am assuming is referring to the Web.config
> file.
> I have successfully run this application on my machine using Visual Studio
> 2005's Development Server with the settings currently in the Web.config
> file, so if modifying the Web.config file will fix it, what do I need to
> change? Thanks.
> --
> Nathan Sokalski
> EMail@HideDomain.comhttp://www.nathansokalski.com/
Why do you use OleDb for MS Access?
http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbconnection.aspx
An application that creates an instance of the OleDbConnection object
can require all direct and indirect callers to have sufficient
permission to the code by setting declarative or imperative security
demands. OleDbConnection makes security demands using the
OleDbPermission object. Users can verify that their code has
sufficient permissions by using the OleDbPermissionAttribute object.
Users and administrators can also use the Code Access Security Policy
Tool (Caspol.exe) to modify security policy at the computer, user, and
enterprise levels. For more information, see Code Access Security and
ADO.NET.
http://msdn2.microsoft.com/en-us/library/0x4t63kb.aspx
|
| |
|
| |
 |
Mark

|
Posted: Fri Jun 29 16:29:42 CDT 2007 |
Top |
ASP.Net >> Permissions Error When Accessing Access Database
"Alexey Smirnov" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Why do you use OleDb for MS Access?
How else would you expect to use a Jet database within the .NET
Framework...???
--
http://www.markrae.net
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- ASP.Net >> Silverlight Newsgroup?Yes, I know this isn't a silverlight newsgroup, but...
1) Can anyone tell me where we can discuss Silverlight?
2) Every time I try to install the developer component, I get this error
message:
Error 3010
Silverlight Installation has completed successfully. However, a
restart is required to complete the install. Please save your
work and restart your computer.
When I restart, it's not in my start menu and doesn't appear to be anywhere
in IE. How can I hope to become a silverlight blackbelt when I can't even
find the dang thing?
Thanks.
[win xp, SP 2, IE6, VS2005]
- 2
- Frontpage Client >> Center Alignmenti have a set of links on the splash page of my website. it's a table and some
text
http://www.foxarch.com/
i want to have it centered vertically when the page is expanded.
is there even a code for that. is it even possible?
- 3
- ASP.Net >> enum data typeTrying to declare a enum datatype.
Below works
Public Enum EnumCharSet
IBM037
IBM437
IBM500
End Enum
When I add a new string with a "-", error occur says that "End of statement
expected"
For example
Public Enum EnumCharSet
IBM037
IBM437
IBM500
ASMO-708
End Enum
Does not work because ASMO-708 has a "-" there.
What went wrong and what should I do?
regards,
Guoqi Zheng
http://www.ureader.com
- 4
- 5
- 6
- 7
- 8
- 9
- ASP.Net >> AVERAGE SQL error... help pleaseHi. I have the following sql statement:
SELECT AVG(grade) FROM tblEvalGrades WHERE SSN='123456789'
I get the following error when trying to output my table
in my datagrid:
ERROR: Decimal byte array constructor requires an array
of length four containing valid decimal bytes
I am using Access as my database with ASP.Net c#. This
error is an access error though.
The grades that I have are GPAs. I am using an Access
database, and the field grade is Precision 4, Scale 2,
and Decimal Places 2. Could someone tell me what I need
to do to get rid of the error. Thank you in advance.
Steven
- 10
- 11
- 12
- ASP.Net >> Scope of Shared PropertiesQuick question:
If my page instantiates a class that has a protected shared property,
is that property shared across all instances of the class...even those
that I didn't instantiate, but another user accessing the page did?
Thanks!
- 13
- ASP.Net >> TextBox Control Font SizeI am using textboxes, buttons labels and drop down lists on a web page, but i
noticed that textboxes and buttons font size doesn't change when i change the
font size in IE ( from IE menu: View>>Text Size>>) though the size is
changing for lables and drop down lists, i am using skin for these controls
but all the skin have the same font settings(font size is set to small) i
tried removing the textbox skin to see if this chnages anything but it
doesn't.
any ideas?
I am using .Net 2 and IE 6
- 14
- 15
- ASP.Net >> Creating a imageHi All,
In my application I am having a report page and which is required to
store as image. How can I store the aspx page in image file?
TIA,
Him
|
|
|