Click here to Skip to main content
15,900,108 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: dropdownlist problerm Pin
N a v a n e e t h25-Sep-08 21:24
N a v a n e e t h25-Sep-08 21:24 
AnswerRe: dropdownlist problerm Pin
meeram39525-Sep-08 21:24
meeram39525-Sep-08 21:24 
Questionmulti coulmn combobox Pin
cse.vidhya25-Sep-08 19:11
cse.vidhya25-Sep-08 19:11 
AnswerRe: multi coulmn combobox Pin
ChandraRam26-Sep-08 0:53
ChandraRam26-Sep-08 0:53 
QuestionFromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ [modified] Pin
Linda1st25-Sep-08 18:30
Linda1st25-Sep-08 18:30 
AnswerRe: FromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ Pin
Prasanna Kumar Pete25-Sep-08 18:52
Prasanna Kumar Pete25-Sep-08 18:52 
GeneralRe: FromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ Pin
Linda1st26-Sep-08 3:08
Linda1st26-Sep-08 3:08 
Questionasp.net app_code folder sharing between a web application / web service Pin
Member 155433725-Sep-08 18:03
Member 155433725-Sep-08 18:03 
I am developing a site in asp.net 3.5, our appication design is simple – All our application pages communicate with database through a web service – In effect this web service itself is our database layer.
Now in middle of the project, due to some security issues, we dropped the idea of exposing our database layer as a web service.
Though they have dropped this for now, later they have the idea of exposing it as a web service, so that customers can directly communicate with our DB instead of coming through web pages.
So at this point, my suggestion was to pack the whole app_code folder of web service to a .net library(.dll) and reference it locally from the web pages, or
To copy and paste the app_code folder of webservice to the app_code folder of the web application. Since they cannot afford recompiling the data layer for every modification later on, the choice for them was to put it in App_code folder, so that they don’t need to recompile the whole stuff after modifications.

Now here is my problem:
-In future, if they want to make use of same .cs files in this application app_code folder to be exposed as web service, is it possible?
Technically speaking its kinda sharing the app_code folder between 2 application(one is a .net web application and the other one a web service)

I tried to put the whole web service directory(which includes app_code,.asmx files and web.config) inside the app_code of web application, I am able to access those service methods inside my pages.
But it gives a compilation error “it is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS”. If I configure this as a virtual directory in IIS, we cannot access these classes inside the pages. (What I was thinking is of creating a separate virtual directory on the same level of web application and not as a subfolder to it.)
As you know, this error is basically bcoz of the authentication entry in web service web.config file. AS when I googled, I came to know that, a web application can have any number of web.config in its subfolders, but they cannot have <authentication> entries in any other than the root web.config.
Though I can change the allowDefinition attribute for authentication in machine.config file, I don’t want to do that,as its risky!

Is there a way to resolve this?

Contraints are:
- I don’t want to re-compile the code every time I make change or for a minor release
- I don’t want multiple versions of same file to be maintained – so I need to share the .cs files between a webapplication and a web service.

Please let me know your suggestion on this one.

Thanks
Ben
AnswerRe: asp.net app_code folder sharing between a web application / web service Pin
Prasanna Kumar Pete25-Sep-08 18:13
Prasanna Kumar Pete25-Sep-08 18:13 
GeneralRe: asp.net app_code folder sharing between a web application / web service Pin
Member 155433725-Sep-08 20:46
Member 155433725-Sep-08 20:46 
GeneralRe: asp.net app_code folder sharing between a web application / web service Pin
Prasanna Kumar Pete25-Sep-08 21:04
Prasanna Kumar Pete25-Sep-08 21:04 
GeneralRe: asp.net app_code folder sharing between a web application / web service Pin
Member 155433727-Sep-08 16:15
Member 155433727-Sep-08 16:15 
QuestionTiming the call of a .js file Pin
Cyberpulse25-Sep-08 14:50
Cyberpulse25-Sep-08 14:50 
AnswerRe: Timing the call of a .js file Pin
Steve Echols25-Sep-08 17:55
Steve Echols25-Sep-08 17:55 
GeneralRe: Timing the call of a .js file Pin
Cyberpulse26-Sep-08 7:49
Cyberpulse26-Sep-08 7:49 
QuestionScript manager in masterpage Pin
AlexeiXX325-Sep-08 13:24
AlexeiXX325-Sep-08 13:24 
AnswerRe: Script manager in masterpage Pin
Abhijit Jana25-Sep-08 17:04
professionalAbhijit Jana25-Sep-08 17:04 
Questionstoring data in cache [modified] Pin
geekfromindia25-Sep-08 13:14
geekfromindia25-Sep-08 13:14 
AnswerRe: storing data in cache Pin
Abhijit Jana25-Sep-08 17:07
professionalAbhijit Jana25-Sep-08 17:07 
QuestionSet 100% height for divs [modified] Pin
AlexeiXX325-Sep-08 13:02
AlexeiXX325-Sep-08 13:02 
AnswerRe: Set 100% height for divs Pin
Steve Echols25-Sep-08 17:59
Steve Echols25-Sep-08 17:59 
QuestionAutocomplete textbox issue Pin
enthusiastic47725-Sep-08 10:43
enthusiastic47725-Sep-08 10:43 
AnswerRe: Autocomplete textbox issue Pin
Prasanna Kumar Pete25-Sep-08 17:46
Prasanna Kumar Pete25-Sep-08 17:46 
GeneralRe: Autocomplete textbox issue Pin
enthusiastic47726-Sep-08 4:55
enthusiastic47726-Sep-08 4:55 
GeneralDataGrid EditItemTemplate Problem Pin
Brady Kelly25-Sep-08 7:21
Brady Kelly25-Sep-08 7:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.