Configuration :: Custom Web App Integration Into Sharepoint With MS-Access Connectivity?

Jan 10, 2011

Ive integrated a custom asp.net web application into a Sharepoint site by creating a virual directory, that contains my web app files, that points to a directory in the Sharepoint inetpub folder.

On my local dev server I can access all my web app pages just fine by typing in /virtualdirectoryname/page.aspx

My Problem is that: When I deploy to my Live Test server that is internet facing, none of the pages that make a MS-Access database call will work.

The Error I receive is '[SecurityException: Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]'

I have researched the issue online and tried numerous solutions which include giving all the assemblies in my application a strong name, and modifying the security policy to trust this strong name.

My Custom Web App consists of 2 projects

1. A Class Library Project (Data Layer)

2. A Web Application Project (Web Layer)

My .mdb database file is stored at root level within the Virtual Directory.

I have 1 class in the Data Layer (ClassConnect.cs) that when instantiated, creates the ODBC connection for all other pages to use (OdbcConnection dbConn = new OdbcConnection();)

I have a Connection String stored in the web.config file that is as such. When I deploy to the Live Test Server I change the path in this connection string, because I haven't figured out yet how to get a relative path that works.

I also place the dll's for my 2 projects in the Sharepoint bin folder.

Could anyone suggest what might be the dfference between my Local Dev Server and the Live Test Server and why I might be getting these errors.

View 1 Replies


Similar Messages:

Unable To Call The SharePoint Custom Web Service From Another SharePoint Farm

Jan 12, 2011

I have deployed a custom SharePoint Web service on Farm A. I am trying to access this Web service from a SharePoint timer job on Farm B. On Farm B, I am creating Class Library project, packaging it (wsp) and then deploying to GAC. The problem is I'm unable to access the Web Service using the following code. TodaysNewSVC is a service reference

TodaysNewSVC.GetTodaysnewsfromInsite objGetNews = new TodaysNewSVC.GetTodaysnewsfromInsite();
objGetNews.PreAuthenticate = true;
objGetNews.Credentials = CredentialCache.DefaultCredentials;
objGetNews.Url = "http://insite-dev.portal/_vti_bin/todaysnews.asmx";
DataTable dt2 = objGetNews.getNewsFromInsite(true, true);

//getNewsFromInsite is a WebMethod which returns the DataTable.

Note: Both farms use the same active directory authentication. I have also done the debugging for Timer Job and feature activation and they are working fine. The problem occurs during the call i.e. getNewsFromInsite
The asmx and wsdl files are accessible from Internet Explorer and also from Windows Console application. Here is the code which I use from console application:

GetTodaysnewsfromInsiteSoapClient objWSClient = new GetTodaysnewsfromInsiteSoapClient();
objWSClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;[code]...

Here is the error message:The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fPages%2fproblem-with-page.aspx%3fc%3d500">here</a>.</h2>
</body></html>

View 1 Replies

Sharepoint - Simple Web Form That Writes To A Database... Access Web Form Or Custom .NET?

Feb 21, 2011

I am working in a school and we recently installed a new server running WinServer 2008R2. I want to be able to point people to a URL on our intranet and have them fill out a simple registration form and have this data written to a database. It would also be nice to have some data auto-populate (such as their name).

Is it overkill to set up a sharepoint server and try to do this with Access Webforms? Could I use something like dotnetnuke and find a module that works? Or how about options for writing custom forms?

View 3 Replies

Database Connectivity Mvca[[lication -looking For Configuration Setting?

Feb 14, 2011

I have Visual Studio.When a create a new ASP website (so not a project), I can go to the configuration management and enable roles and an aspnetdb.mdf is automatically created in the app_data directory.When I create a new ASP (MVC 3) project, the configuration management says: can not load MvcApplication1.MvcApplication .Is there some configuration setting for this?

View 3 Replies

C# - How To Create A Custom Web Part From A Custom List In Sharepoint 2007

Dec 19, 2010

I want to create a custom web part in SharePoint 2007 that allows me to take items from an existing custom list (i.e. Title, Hyperlink, Description and photo) and then render it in a format of my choice. How can I do this using C# asp.net and a web part?

View 1 Replies

Access :: Integration Of Ms Accessdb With Application?

Mar 31, 2010

i am saikiran new to this site and i am a begineer of asp.net i faced small error when i tried to integrate ms access 2007 database with an asp.net application.error is:could not find installable ISAM. i have given the code i used in

Imports System.Data.OleDb
Partial Class dealerreg
Inherits System.Web.UI.Page

[code]...

View 9 Replies

Configuration :: Modify Web.Config For Continuous Integration

Mar 9, 2010

i am using CruiseControl.Net for my continous integration process. using ccnet i build and publish my asp.net application into a server in Release mode. but i am not able to change debug="true" to debug="false" in my Web.Config during publishing. what can i do?

View 2 Replies

Web Forms :: Create Custom Templates In Sharepoint?

Jun 29, 2010

I am new to sharepoint I am familiar with creating webparts and using them in sharepoint, but how to create an entire site as template and make it to use in another sites

View 2 Replies

C# - Page Inheritance In Custom Sharepoint Application?

Aug 2, 2010

I have a default.aspx in a folder _layouts/sandbox on the sharepoint server.

It has the following code:

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;

[Code]....

View 1 Replies

C# - Creating Custom Webapp In Sharepoint _layouts Folder?

Jul 20, 2010

I am attempting to for the first time create a custom asp.net website on a sharepoint web server, i have created the following Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="~/_layouts/application.master" %>
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages,Version=12.0.0.0, Culture=neutral,

[code]...

View 1 Replies

DateTimeControl Custom OnDateChange Event Not Firing In SharePoint?

Feb 3, 2011

The custom event for a DateTimeControl is not firing. Instead the CreateChildControls() is firing, every-time I change the date on Calendar.

namespace myn
{
class StopTimeFieldControl : BaseFieldControl
{
protected DateTimeControl dateTime;

[Code]....

View 2 Replies

Sharepoint Custom Aspx Page With Database Connection?

May 7, 2010

i have created a custom aspx page whithin my sharepoint site with a sql server connection to a database on that server to select data when i view the page it works but when another user tries to view it it gives the following error :Server Error in '/' Application. Login failed for user 'GRINCORGuguK'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'GRINCORGuguK'.Source Error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:2) Add the following section to the configuration file of your application:Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. tack Trace:

[SqlException (0x80131904): Login failed for user 'GRINCORGuguK'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +248
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245

[code]...

View 4 Replies

Custom Master Pages In WSS3.0 / SharePoint 2007 DOC TYPE?

Mar 23, 2011

I have a custom master page that I use in WSS3.0 (SharePoint 2007) and I am using a HTML 'DOC TYPE' which I am declaring at the top of the master page. The site all works very well with my master page apart from some of SharePoint controls which are acting a little funny, namely the People Picker for a People and Group field.If I remove the DOC TYPE declaration then the People Picker and other controls work perfectly and behave as they should but it sends some of my customisations/layout all over.

Before I spend a lot of time reviewing fixing the issues I get to my design without having the DOC TYPE declared, does anyone know if there is a certain DOC TYPE that is compatible with WSS3.0 / SharePoint 2007 and all of its features (i.e. People Picker Fields)?

View 1 Replies

Configuration :: Web App Forms Authentication Vs Sharepoint Services

Apr 22, 2010

I am having difficulty getting an asp.net web application to run on a new server. This same app has been deployed to at least a dozen other servers without issue. The x-factor seems to be that Sharepoint Services (WSS 2.0) is present on the new machine.

The app is configured to use Forms Authentication with a redirect to a specified login page, the first symptom is that no attempt is apparently made to redirect new requests, requests proceed directly and then error out when that page attempts to look at the HttpContext.Current.User.Identity.Name.

Second, when navigating directly to the Login.aspx page, the login and authentication check appear to proceed normally, but again HttpContext.Current.User.Identity.Name is blank where is should now have the users login name, and an application error occurs. I have confirmed that the same code on other servers behaves as expected (the Name is set at this point). IIS virtual directory settings are identical as well.

It would seem that something is interfereing with the normal Forms Authentication processes and that something appears to be Sharepoint. We have already listed the web app's path as excluded in the Sharepoint Admin section. Is there something else that needs to be done?

View 2 Replies

Use Sharepoint As The Back - End Versioning And Storage For Custom Document Management Website?

Apr 16, 2010

I want to build a custom document management web application that ties in with sharepoint for the actual document versioning and storage. I'm hoping for something like a sharepoint widget that I can plug into my web application that would allow me to tie in with sharepoint and download documents, make edits to them, and upload them back to sharepoint, with sharepoint handling all of the versioning and storage. Basically I'm looking for a sharepoint API. If WSS is the answer to this, are there licensing issues that I need to consider?

View 4 Replies

Web Forms :: Microsoft Report Viewer 10 In Custom Web Part For SharePoint 2007

Apr 20, 2010

i downloaded Microsoft Report Viewer 2010 Redistributable Package and used in asp.net page and it works fine without post back all the page BUT, when i created costume web part including report viewer , default page shows javascript error and the report papers as disabled , and when i click viwer the whole page getting post back

View 2 Replies

Access :: Can Create Data Source From A Sharepoint Site

Jul 6, 2010

So I've created an asp.net web application on the same server the sharepoint site is located on. If I create an Access view of a list on the sharepoint site, which will then create an Access Database, can I then use that Access database in an access data source in my web application?

If not, what's the best method of attack to access sharepoint list data from thisasp.net app?

View 4 Replies

Configuration :: Error When Deploying Visual Webpart In Sharepoint

Mar 25, 2011

I am facing error when I am deploying Visual Webpart in Sharepoint . Then its showing following error Could not load file or assembly 'Microsoft.Practices.ObjectBuilder2, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

View 1 Replies

Configuration :: Sharepoint Internet Portal With AD And FBA Login Option?

Oct 19, 2010

How to implement AD(AD users) + FBA(external users, suppliers and job seekers) login option in SharePoint 2007 internet bilingual site. How to proceed with this?

View 1 Replies

Detect Wifi Connectivity In C#?

Jul 18, 2010

I am working on an asp.net (or winforms) app that is supposed to detect wifi connectivity and strength. The intention is to provide the field agents with an indicator that they can connect to our main office

What would I need to detect wifi connectivity?

View 3 Replies

C# - Is It Possible To Integrate Nokia Connectivity API

Jun 14, 2010

Is it possible to integrate Nokia connectivity API with asp.net? If so, How to get started?

View 1 Replies

C# Database Connectivity Getting Into Mess

Jan 31, 2011

I'm just starting development on a new website and am trying to do it correctly, that is, with a DAL and not with queries in code which I had before. I understand the principles of it all, but I am finding this DAL with table adapters and wizards that do too much to be really messy to work with. Does anyone have any recommendations on what I should be using instead and a link to a tutorial on how to get going quickly with it?

View 5 Replies

Configuration :: Give Password In Connection String For Ms Access Database In Configuration File?

May 2, 2010

I have an ms access db file and now i want to use it in my app. i have given like

Provider=MSDASQL.1;Password=pwd123;Persist Security Info=True;User ID=swgp;Data Source=SWGP;Initial Catalog=C:swgp BJswgp

but it is giving error to me.If anybody know how to give this connection string for password enabled ms access database,

View 2 Replies

Configuration :: Writing To A Custom Configuration File?

Jul 27, 2010

I have custom section in my Web config file

<userSettingTemplate configSource="userSetting.config"> </userSettingTemplate>

In the separate userSetting.config file I have some template user details. When a new user is crated the template details are stored in the userSetting.config file. I am trying to write to this filebut not having much luck.

[Code]....

[Code]....

The issue is that the new entryis not saved at all. There are no errors generated. Initially I was getting an error: A configuration file cannot be created for the requested Configuration object.

View 2 Replies

SQL Server Connectivity Using ConfigurationManager.ConnectionString?

Jun 5, 2010

I am not able to use

String connectionString = ConfigurationManager.ConnectionStrings["DevBackup"].ConnectionString;

I am getting error 'The name 'ConfigurationManager' does not exist in the current context' I have used namespaces

using System.Data.SqlClient;
using System.Data.Sql;

what should be done..?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved