|
i got an error when i tried to run this on my webserver but in my local machine its ok... the error is this:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The element 'buildProviders' cannot be defined below the application level.
Source Error:
Line 31: <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
Line 32:
Line 33: <buildproviders>
Line 34: <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Line 35:
Source File: \\smb0\mnt\w0704\d23\s48\b0271eea\www\margz.com\paul\shopftdl\web.config Line: 33
|
|
|
|
|
Your web application is not an application, it's just a subfolder in another application.
You can only use certain settings in web.config when it's in the root folder of the application, but as the folder where you have put your code is not an application, the root folder is not where you think it is.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You can fix this problem either defining the element in the web.config file of the root dir or setting Virtual Directory as APPLICATION in IIS.
For doing this with IIS 6.0, you first have to set the the directory in which your site is present as a Virtual Directory and then define this virtual directory as an Application.
All physical directories under Inetpub\Wwwroot are not considered applications until the following procedure is used.
1. Open IIS Manager.
2. Expand the Default Web Site node and look for the subdirectory that you want to designate as an application root.
3. Right-click the directory that you want to mark as an application root, and then click Properties.
4. On the Directory tab, in the Application Settings section, click Create.
5. In the Application name text box, type the name of the application, and then click OK.
The virtual directory is now an application root.
CUCURACHI GIORGIO
|
|
|
|
|
hi,
I am trying to downloading file with webclient.downloadfile
this method works file all extension except .SVG and .XPT
how can i allow these two extension ?
how can i solve this error ???
thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi all,
At work we are using a third party web service. The web service works in two tiers. First you request general information. The XML returned contains various IDs. It also contains a JSESSIONID field. In the second phase, another method in the web service requests one of the IDs returned. Now, here's the problem.
If we just give the web service the ID requested in the parameter, it asks for the JSESSIONID value. We dug some more and found out we need to pass this JSESSIONID value as a Cookie in the Header section. The actual instruction was:
Also the 'jsessionid' given in the preliminary response has to be handed over in the HTTP-Header 'cookie'. Multiple requests can be performed in one session.
So I created a CookieContainer and appended it to the HTTPWebRequest object I'm passing to the webservice (thanks google) but to no avail!
What can there be wrong? We're at a total loss here...
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
|
Hi coders,
I am using .NET 2008 version. I am currently facing problem with urls. i dont want to show my URL like '.....com/redirect.aspx?ser=..' but instead of same i want to show the fix url like '.....com/'.
I know this can be done by setting 'RewriteRule' in HTACCESSFILE. Can anyone please tell me how to set 'RewriteRule' in .NET?????
Thanks in advance for any help.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi guiys i have to do dropdownlistbox enable/disable using checkbox check changed event in javascript...,
Plz give me some idea abt that
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Whats the reasoning behind using javascript?
Why not use c#?
If you are going to use c# its easy just set the checkbox as autopostback and then when postback dropdownlist.enabled = true
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
the reason postback method i dont want
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Member 3879881 wrote: the reason postback method i dont want
Then you should use AJAX .
cheers,
Abhijit
|
|
|
|
|
i m using asp.net.
there is 2 master page in my application say MasterPage11 and Masterpage22.
if i set masterpagefile = MasterPage11 for my content page then code written in content page works well.
but if i change masterpage of same content page as masterpagefiel = Masgerpage22 then code in content page do not execute i.e code written for linkbutton in content page do not execute also gridview page index changin event is not working.
when i click on any link on page it gives massege on status bar as "error on page" and after double click on error it display the error "object does not support this property or method".
is there any problem with masterpage22 ????/
|
|
|
|
|
a.saurabh wrote: is there any problem with masterpage22 ????
I dont know, is there??
This sounds weird
Make sure that the names of the contentplaceholders are the same for both masterpages
And if you are accesing any property or control in the masterpage from the contentpage, it should be on both masterpages or it wont work
Alexei Rodriguez
|
|
|
|
|
When you are chaning master page from MasterPage11 To MasterPage22 . Did you change the ContentPlaceHolder Name Also. I think there are some problem while changing the name. please check on that.
cheers,
Abhijit
|
|
|
|
|
hy,
how can i lock a particular row of a table in the data base (sql server 2005)when i am working on it...its like locking a account while making a transasction so that no other user can make a transaction concurrently.
|
|
|
|
|
This works
begin tran
update table1 set col1 = col1
......now user hase exclusive lock until you either update or commit the transaction, BUT it does mean nobody else can read the record until the commit/rollback, which could ba a long time - for example user goes to lunch. VERY BAD PRACTICE.
Normally you have a column on your table, (usually a timestamp or sequence number) and you read it before applying changes to ensure the record has not changed since the original read.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Quite true, one observation though:
Depending on database settings, other users can read the original data while X-lock is on the row.
SQL Server uses nowadays multiversioning like for example Oracle. However, if I remember correctly, it's not enabled by default.
The need to optimize rises from a bad design
|
|
|
|
|
Check this out:
Lock
Lock2
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
Hi,
I want to autocomplete the textbox value according to the listbox items in .net 2.0. Please give me an idea to implement this.
Thanks.
|
|
|
|
|
Do you mean you want somone to click on the listbox and then the value from the listbox appears in the textbox?
If so this is fairly simple as you just set the listbox to AutoPostBack = True and on the Postback take the selected value and put it in the textbox.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
|
hy,
can any one tell me that how can i read the contents of a MS word(.doc) file on a webpage(.aspx page).
i tried to use filestream but whenevr i run it..i get a option to open or download the doc file which resluts in opening the word file but not the content of the word file on the web page.
the code that i used was
Response.ContentType = "application/ms-word";
Response.AddHeader("content-disposition", "attachment; filename=SFA & CRM.doc");
string a = Server.MapPath("SFA & CRM.doc");
FileStream sourceFile = new FileStream(a, FileMode.Open);
long FileSize;
FileSize = sourceFile.Length;
byte[] getContent = new byte[(int)FileSize];
sourceFile.Read(getContent, 0, (int)sourceFile.Length);
sourceFile.Close();
Response.BinaryWrite(getContent);
plz helpl me out..
regards
modified on Friday, October 10, 2008 4:00 AM
|
|
|
|
|
Hi,
Please know that Word .doc files are in a proprietary Microsoft binary format. They can only be interpreted correctly by the Office Word engine or a third party control suited for this purpose.
You may consider using the Office PIA (Primary Interop Assemblies), automate Word and open the document in it, and extract the relevant portions from the same, preserving the formatting.
Hope this helps.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
I have been developing web site run on IIS and Internet Explorer 6.0. When That site run different browser 7.0 or 8.0 or opera then Designing view probleam
modified on Friday, October 10, 2008 1:51 AM
|
|
|
|
|
This is normal. Thats why web developers spend hours working around cross-browser compatability issues.
All you can do is make changes to your css to get round it.
Bob
Ashfield Consultants Ltd
|
|
|
|