infopath error: The form cannot be submitted because of an error. - infopath

I am working with sharepoint 2010 and using Infopath designer 2013. I am using sharepoint list as my data source.
I am getting an error: The form cannot be submitted because of an error.
InfoPath cannot submit the form.
An error occurred while the form was being submitted.
Access is denied.
When i click the submit button i get the error. Not sure why i am getting this error. Any help will be appreciated. I added the url for the sharepoint site to the trusted sites. I
Thanks,
michael

If your form has any code behind, then it will likely require a site collection administrator to publish it. If that doesn't work, it's possible your farm administrator has done the same as mine and disabled the ability to publish forms with Code Behind. If that is the case, then only a farm administrator can publish the form as trusted.
EDIT
In my case, I was able to get my security team to issue me a 'code signing certificate'. With that certificate attached to the form, I was able to publish a code behind form to Sharepoint 2010 as the site collection administrator.

Related

ReportViewer prompt for credentials when using viewer control

I have a MVC web application that uses the ReportViewer control on a web forms page to view reports and a separate code routine to export the same reports directly to PDF. The export to PDF code works well, but when I try to view the same report in the ReportViewer control using the same path/credentials, I am getting the windows prompt to login.
The export code does not use the ReportViewer server control but instead the Render method the Report class, so I think the problem is likely in there somewhere.
I have successfully deployed this same code on other web servers with success, so I suspect it has something to do with configuration or version of the report viewer control. I tried updating from the version i was using (ReportViewer version 10.0.0.0) to version 12.0.0.0, but the problem remained after the update.
Thanks in advance for any help,
I was able to solve this after figuring out that it had nothing to do with the report viewer control but rather with my routing configuration. The clue was that after entering credentials, I was getting a 404 error. The page that is displaying the report viewer is a web forms page, so then I started looking into issues with running Web forms side-by-side with mvc and came across this link which showed how to setup routes to execute .aspx web forms. After tweaking the route, the report viewer web form page come up and executed just fine.

Create Login page and generate logs in asp.net

I am a total newbie.
I create a website with 2 pages
Update data (update.aspx)
Add data to database (add.aspx)
I want to create login page before they can access this pages.
Even if they tried accessing by typing direct url like : www.example.com/add.aspx
they should not be allowed
And secondly,
I want to generate txt log files when they click update or add button
example
User: abc updated current field in databse on (time and date)
I hope you guys help me out. :)
am using visual studio 2012 and SQL Server
As I understand of your question, you want to activate authentication in your project. In this way there is a great article about Authentication in ASP.NET that is suitable for newbies.
ASP.NET authentication and authorization
The "Forms Authentication" section in the article can fulfill you expectation.
Also, there are some logging libraries like NLog, Log4Net, Logging Application Block that are advanced and have lots of facilities, but for starting I recommend you reading Create Simple Error Log Files using ASP.NET and C#. With a bit change in the code you can log the text that you've mentioned.

Visual Web Developer to access DB with password

I am using Visual Web Developer Express 2010. It is running on Server 2003 with ASP.NET 4.
As I add my GridView and choose my DataSource (which is a password protected MDB file) it connects just fine. It does ask me for the password twice throughout the process. I enter it and I perform the test query option and all seems fine.
However, once I test the page in the browser I receive a rude error page stating: [OleDbException (0x80040e4d): Not a valid password.]
I am guessing that the password I entered during the setup of the DataSource is not being saved. How do I enter in the password so the form keeps it? Web.config or code? I have gone crossed eyed searching for this with VWD Express.

how to enable role in asp.net?

i am trying to enable roles in asp.net but,i am getting few errors and after trying my best i am not able to get them resolved.
I am new to visual studio interface. I tried creating a login page as ASP.NET web application. Then as we have to configure the page to connect to the database to retrieve user details, i clicked on the ASP.NET configuration under Website control.. I was taken to the configuration page with three tabs.. Security was the tab that i was supposed to configure.. But i am not able to go through to the security tab. I get the following error message.
There is a problem with your selected
data store. This can be caused by an
invalid server name or credentials, or
by insufficient permission. It can
also be caused by the role manager
feature not being enabled. Click the
button below to be redirected to a
page where you can choose a new data
store. The following message may help
in diagnosing the problem: Unable to
connect to SQL Server database.
I also clicked on the button to select a new data store, but there was only one default data store available.
i enabled my role manager tag to true,but again i am facing the same problem
Any process to configure the security tab would be helpful.
Use steps below:
Configure your database in order to maintain ASP.NET Application Services. You can see here how to do it
Edit your web.config file. See details here
Go to ASP.NET Configuration Tool under Website control and create required roles.

how to publish an infopath form with code behind on to the sharpeoint server? (Sharepoitn 2007)

hey guyz i am having an issue with the infopath forms in sharepoint. can anybody help me how to deploy an infopath form with code behind it on to the sharepoint server. I dont have the access to the server as an administrator. can anybody tell me how many ways can i publish the infopath form so that i can view it on a browser and use it.
Here's a good article covering this. Try googling next time.
http://platinumdogs.wordpress.com/2007/12/17/deploy-an-infopath-2007-form-with-managed-code-to-a-browser-enabled-sharepoint-document-library/
You'll need someone with administrative privileges to publish the form to end users.

Resources